commit 36a8f8a9c413c6fe2770a247ce4cef1ba40f478a parent 8ed4f5a52f35c5b288074b7ef00f0776cd8515a3 Author: parazyd <parazyd@dyne.org> Date: Fri, 30 Sep 2016 15:18:38 +0200 add debugging options Diffstat:
M | boards/raspberry-pi.sh | | | 14 | +++++++------- |
M | sdk | | | 6 | ++++++ |
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/boards/raspberry-pi.sh b/boards/raspberry-pi.sh @@ -131,17 +131,17 @@ build_kernel_armhf() { $R/tmp/kernels/$device_name/${device_name}-firmware fi - sudo cp -rfv $R/tmp/kernels/$device_name/${device_name}-firmware/boot/* $strapdir/boot/ + sudo cp $CPVERBOSE -rf $R/tmp/kernels/$device_name/${device_name}-firmware/boot/* $strapdir/boot/ - pushd ${device_name}-linux + pushd $R/tmp/kernels/$device_name/${device_name}-linux sudo perl scripts/mkknlimg --dtok arch/arm/boot/zImage $strapdir/boot/kernel7.img - sudo cp -v arch/arm/boot/dts/bcm*.dtb $strapdir/boot/ - sudo cp -v arch/arm/boot/dts/overlays/*overlay*.dtb $strapdir/boot/overlays/ + sudo cp $CPVERBOSE arch/arm/boot/dts/bcm*.dtb $strapdir/boot/ + sudo cp $CPVERBOSE arch/arm/boot/dts/overlays/*overlay*.dtb $strapdir/boot/overlays/ popd sudo rm -rf $strapdir/lib/firmware get-kernel-firmware - sudo cp -ra $R/tmp/linux-firmware $strapdir/lib/firmware + sudo cp $CPVERBOSE -ra $R/tmp/linux-firmware $strapdir/lib/firmware pushd $R/tmp/kernels/$device_name/${device_name}-linux sudo -E make INSTALL_MOD_PATH=$strapdir firmware_install @@ -169,8 +169,8 @@ EOF notice "installing raspberry pi 3 firmware for bt/wifi" sudo mkdir -p $strapdir/lib/firmware/brcm - sudo cp -v $R/extra/rpi3/brcmfmac43430-sdio.txt $strapdir/lib/firmware/brcm/ - sudo cp -v $R/extra/rpi3/brcmfmac43430-sdio.bin $strapdir/lib/firmware/brcm/ + sudo cp $CPVERBOSE $R/extra/rpi3/brcmfmac43430-sdio.txt $strapdir/lib/firmware/brcm/ + sudo cp $CPVERBOSE $R/extra/rpi3/brcmfmac43430-sdio.bin $strapdir/lib/firmware/brcm/ postbuild || zerr } diff --git a/sdk b/sdk @@ -26,6 +26,12 @@ R=${ARM_SDK:-$PWD} ## load zsh extension "Zuper" DEBUG=1 + +[[ $DEBUG = 1 ]] && { + ## add -v to cp calls + CPVERBOSE="-v" +} + source lib/zuper/zuper ## global vars