Index: src/scripts/build_gpt.sh |
diff --git a/src/scripts/build_gpt.sh b/src/scripts/build_gpt.sh |
index 96e66e431722719cf1c74945cd9f8c06e3ab95e8..0201ca516e14632fb5cf3b4b09f7373fe26320ab 100755 |
--- a/src/scripts/build_gpt.sh |
+++ b/src/scripts/build_gpt.sh |
@@ -21,8 +21,6 @@ DEFINE_string arch "" \ |
"The target architecture (\"arm\" or \"x86\")." |
DEFINE_string board "$DEFAULT_BOARD" \ |
"The board to build an image for." |
-DEFINE_string board_root "" \ |
- "The build directory, needed to find tools for ARM." |
# Usage. |
FLAGS_HELP=$(cat <<EOF |
@@ -70,10 +68,6 @@ else |
esac |
fi |
-if [[ -z "$FLAGS_board_root" ]]; then |
- FLAGS_board_root="/build/${FLAGS_board}" |
-fi |
- |
# Only now can we die on error. shflags functions leak non-zero error codes, |
# so will die prematurely if 'set -e' is specified before now. |
set -e |
@@ -130,7 +124,7 @@ if [[ "$ARCH" = "arm" ]]; then |
"setenv bootargs ${BOOTARGS}\n" \ |
"mmc read 1 C0008000 $KERNEL_OFFSET $KERNEL_SECS_HEX\n" \ |
"bootm C0008000" > ${MBR_SCRIPT} |
- MKIMAGE="${FLAGS_board_root}/u-boot/mkimage" |
+ MKIMAGE="/usr/bin/mkimage" |
if [[ -f "$MKIMAGE".gz ]]; then |
sudo gunzip "$MKIMAGE".gz |
fi |