arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit ef785eeedfb19d89d7a85c66e030d54b8ca9eb4f
parent 986a63f50c76bd90b7f9d6ac20745200b87a1b6a
Author: parazyd <parazyd@dyne.org>
Date:   Wed,  3 Jan 2018 16:06:20 +0100

Update beaglebone black script.

Diffstat:
Mboards/beaglebone-black.sh | 31+++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)

diff --git a/boards/beaglebone-black.sh b/boards/beaglebone-black.sh @@ -168,22 +168,29 @@ build_kernel_armhf() { get-kernel-sources pushd $R/tmp/kernels/$device_name/${device_name}-linux - ARCH=arm make bb.org_defconfig - make $MAKEOPTS || zerr - sudo cp $CPVERBOSE arch/arm/boot/zImage $strapdir/boot/zImage + make \ + ARCH=arm \ + CROSS_COMPILE=$compiler \ + bb.org_defconfig || zerr + + make \ + $MAKEOPTS \ + ARCH=arm \ + CROSS_COMPILE=$compiler || zerr + + sudo cp -v arch/arm/boot/zImage $strapdir/boot/zImage sudo mkdir -p $strapdir/boot/dtbs - sudo cp $CPVERBOSE arch/arm/boot/dts/*.dtb $strapdir/boot/dtbs/ - sudo -E PATH="$PATH" \ - make INSTALL_MOD_PATH=$strapdir modules_install || zerr - popd + sudo cp -v arch/arm/boot/dts/*.dtb $strapdir/boot/dtbs/ - pushd $R/tmp/kernels/$device_name/${device_name}-linux sudo -E PATH="$PATH" \ - make INSTALL_MOD_PATH=$strapdir firmware_install || zerr - make mrproper - ARCH=arm make bb.org_defconfig + make \ + INSTALL_MOD_PATH=$strapdir \ + modules_install || zerr + sudo -E PATH="$PATH" \ - make modules_prepare || zerr + make \ + INSTALL_MOD_PATH=$strapdir \ + firmware_install || zerr popd postbuild || zerr