From 8d449789f52d6b88256edb5e39221ef10827e94f Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 16 Feb 2016 09:50:19 +0000 Subject: [PATCH] quickstart: Do not build inside kernel sources Use an absolute path for KERNELBUILDDIR so that it can be set outside of the Kernel Source Tree --- quickstart.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickstart.sh b/quickstart.sh index 25d092a..4acc16d 100755 --- a/quickstart.sh +++ b/quickstart.sh @@ -192,9 +192,9 @@ cpio() kernel() { - KERNELBUILDDIR=build-stm32 + KERNELBUILDDIR=$TOPDIR/build-stm32 echo "###################################################" - echo "Building the kernel - output will be in $KERNELDIR/$KERNELBUILDDIR" + echo "Building the kernel - output will be in $KERNELBUILDDIR" echo "###################################################" cd $KERNELDIR BRANCH=`git branch | grep "*" | sed 's/* //'` @@ -220,13 +220,13 @@ kernel() flash() { - DTB=$KERNELDIR/$KERNELBUILDDIR/arch/arm/boot/dts/$BOARDDTB.dtb + DTB=$KERNELBUILDDIR/arch/arm/boot/dts/$BOARDDTB.dtb echo "###################################################" echo "Flashing DTB ($DTB)" echo "###################################################" - st-flash --reset write $KERNELDIR/$KERNELBUILDDIR/arch/arm/boot/dts/$BOARDDTB.dtb 0x08004000 + st-flash --reset write $KERNELBUILDDIR/arch/arm/boot/dts/$BOARDDTB.dtb 0x08004000 - KERNEL=$KERNELDIR/$KERNELBUILDDIR/arch/arm/boot/xipImage + KERNEL=$KERNELBUILDDIR/arch/arm/boot/xipImage echo "###################################################" echo "Flashing Kernel ($KERNEL)" echo "###################################################"