Skip to content

Commit

Permalink
quickstart: Do not build inside kernel sources
Browse files Browse the repository at this point in the history
Use an absolute path for KERNELBUILDDIR so that it can be set outside
of the Kernel Source Tree
  • Loading branch information
kbingham committed Feb 16, 2016
1 parent 973d396 commit 8d44978
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/* //'`
Expand All @@ -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 "###################################################"
Expand Down

0 comments on commit 8d44978

Please sign in to comment.