Browse Source

build.sh: execute make commands for $VERSION and $TARGETS in the right directory

Karsten Böddeker 8 years ago
parent
commit
aec3ed3994
1 changed files with 2 additions and 0 deletions
  1. 2 0
      build.sh

+ 2 - 0
build.sh

@@ -155,6 +155,7 @@ fi
 progress "Preparing the build environment (make update) ..."
 make update
 [ "$?" -eq "0" ] || abort "Failed to update the build environment, mimimi."
+popd > /dev/null #${CODE_DIR}
 
 ### set reasonable defaults for ${TARGETS} and ${BRANCH} if unset
 if [ -z "${TARGETS}" ]; then
@@ -190,6 +191,7 @@ fi
 
 ### BUILD FIRMWARE
 progress "Building the firmware - please stand by!"
+pushd ${CODE_DIR} > /dev/null
 
 for target in ${TARGETS} ; do
 	# configure build environment for our current target