URI: 
       tupdate raspi3 build script - arm-sdk - os build toolkit for various embedded devices
  HTML git clone https://git.parazyd.org/arm-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 9e437516e4d02842c6cdaebf698b4ef32fa44397
   DIR parent cf43ea0adcff25855b522b124e13a8997b4246c0
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Fri, 27 Oct 2017 20:54:23 +0200
       
       update raspi3 build script
       
       Diffstat:
         M boards/raspberry-pi3.sh             |      51 +++++++++++++++----------------
       
       1 file changed, 24 insertions(+), 27 deletions(-)
       ---
   DIR diff --git a/boards/raspberry-pi3.sh b/boards/raspberry-pi3.sh
       t@@ -59,7 +59,7 @@ postbuild() {
        
                copy-root-overlay
        
       -        notice "downloading raspberry pi 3 firmware for bt/wifi"
       +        notice "downloading broadcom firmware for bt/wifi"
                sudo mkdir -p $strapdir/lib/firmware/brcm
                # https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/brcm
                sudo wget -q -O "$strapdir/lib/firmware/brcm/brcmfmac43430-sdio.bin" \
       t@@ -80,15 +80,20 @@ build_kernel_arm64() {
        
                get-kernel-sources || zerr
                pushd $R/tmp/kernels/$device_name/${device_name}-linux
       +                # pi3 defconfig
                        make \
                                $MAKEOPTS \
                                ARCH=arm64 \
                                CROSS_COMPILE=$compiler \
                                        bcmrpi3_defconfig || zerr
       +
       +                # compile kernel and modules
                        make \
                                $MAKEOPTS \
                                ARCH=arm64 \
                                CROSS_COMPILE=$compiler || zerr
       +
       +                # install kernel modules
                        sudo -E PATH="$PATH" \
                                make \
                                        $MAKEOPTS \
       t@@ -96,6 +101,24 @@ build_kernel_arm64() {
                                        CROSS_COMPILE=$compiler \
                                        INSTALL_MOD_PATH=$strapdir \
                                                modules_install || zerr
       +
       +                # install kernel headers
       +                sudo -E PATH="$PATH" \
       +                        make \
       +                                $MAKEOPTS \
       +                                ARCH=arm64 \
       +                                CROSS_COMPILE=$compiler \
       +                                INSTALL_HDR_PATH=$strapdir/usr \
       +                                        headers_install || zerr
       +
       +                # install kernel firmware
       +                sudo -E PATH="$PATH" \
       +                        make \
       +                                $MAKEOPTS \
       +                                ARCH=arm64 \
       +                                CROSS_COMPILE=$compiler \
       +                                INSTALL_MOD_PATH=$strapdir \
       +                                        firmware_install || zerr
                popd
        
                clone-git "$rpifirmware" "$R/tmp/kernels/$device_name/${device_name}-firmware"
       t@@ -109,31 +132,5 @@ build_kernel_arm64() {
                        sudo cp arch/arm64/boot/dts/overlays/README   $strapdir/boot/overlays/
                popd
        
       -        pushd $R/tmp/kernels/$device_name/${device_name}-linux
       -                sudo -E PATH="$PATH" \
       -                        make \
       -                                $MAKEOPTS \
       -                                ARCH=arm64 \
       -                                CROSS_COMPILE=$compiler \
       -                                INSTALL_MOD_PATH=$strapdir \
       -                                        firmware_install || zerr
       -                make \
       -                        $MAKEOPTS \
       -                        ARCH=arm64 \
       -                        CROSS_COMPILE=$compiler \
       -                                mrproper
       -                make \
       -                        $MAKEOPTS \
       -                        ARCH=arm64 \
       -                        CROSS_COMPILE=$compiler \
       -                                bcmrpi3_defconfig
       -                sudo -E PATH="$PATH"\
       -                        make \
       -                                $MAKEOPTS \
       -                                ARCH=arm64 \
       -                                CROSS_COMPILE=$compiler \
       -                                        modules_prepare || zerr
       -        popd
       -
                postbuild || zerr
        }