From 34d9679fc3487ff9589049bd5196971c15086b3d Mon Sep 17 00:00:00 2001 From: Alexandre Santos Date: Wed, 20 Feb 2019 18:37:52 +0000 Subject: [PATCH] Get only the first CONFIG_ENV_SECT_SIZE --- build-config/scripts/onie-mk-bin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-config/scripts/onie-mk-bin.sh b/build-config/scripts/onie-mk-bin.sh index f168f3942..04afaa684 100755 --- a/build-config/scripts/onie-mk-bin.sh +++ b/build-config/scripts/onie-mk-bin.sh @@ -74,7 +74,7 @@ MACHINE_CONFIG="$uboot_src/include/configs/${uboot_machine}.h" if [ -z "$env_sector_size" ] ; then # try to figure it out from the $MACHINE_CONIFG - env_sector_size=$(grep CONFIG_ENV_SECT_SIZE $MACHINE_CONFIG | awk '{print $3}') + env_sector_size=$(grep -m 1 CONFIG_ENV_SECT_SIZE $MACHINE_CONFIG | awk '{print $3}') fi env_sector_size=$(( $env_sector_size + 0 ))