Skip to content

Commit

Permalink
Add Friendlyarm U-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
denismosolov committed Sep 6, 2019
1 parent 085e1ce commit 51994ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions essentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ UBOOT_MENDOR_BRANCH="mender-rpi-2017.09"

UBOOT_MENDOR_COMMIT="988e0ec54"

UBOOT_FRIENDLYARM_H5_BRANCH="sunxi-v2017.x"

text_in_red_color=$(tput setaf 1)

text_in_green_color=$(tput setaf 2)
Expand Down
17 changes: 17 additions & 0 deletions toolset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,23 @@ if $(init_installation_if_needed "${TOOLSET_FULL_PATH}/uboot-${UBOOT_VER}"); the
popd
fi

if $(init_installation_if_needed "${TOOLSET_FULL_PATH}/friendlyarm"); then
pushd "${TOOLSET_FULL_PATH}/friendlyarm"
info "fetching Das U-Boot (FriendlyARM flavour) ${UBOOT_FRIENDLYARM_H5_BRANCH}"
git clone --depth=1 -b "${UBOOT_FRIENDLYARM_H5_BRANCH}" https://github.com/friendlyarm/u-boot.git "u-boot-${UBOOT_FRIENDLYARM_H5_BRANCH}"
popd

pushd "${TOOLSET_FULL_PATH}/friendlyarm/u-boot-${UBOOT_FRIENDLYARM_H5_BRANCH}"
info "building Das U-Boot (FriendlyARM flavour) ${UBOOT_FRIENDLYARM_H5_BRANCH}"

ARCH=arm CROSS_COMPILE="${cross_compiler_64bit}" make nanopi_h5_defconfig
ARCH=arm CROSS_COMPILE="${cross_compiler_64bit}" PYTHON=python2 make -j $(number_of_cores)

cp spl/sunxi-spl.bin "${TOOLSET_FULL_PATH}/friendlyarm"/sunxi-spl.bin
cp u-boot.itb "${TOOLSET_FULL_PATH}/friendlyarm"/u-boot.itb
popd
fi

# Correct ownership if needed
pieman_dir_ownership="$(get_ownership "${PIEMAN_DIR}")"
if [ "$(get_ownership "${TOOLSET_FULL_PATH}")" != "${pieman_dir_ownership}" ]; then
Expand Down

0 comments on commit 51994ef

Please sign in to comment.