Nico Huber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39382 )
Change subject: [TEST] Let abuild always build the default config ......................................................................
[TEST] Let abuild always build the default config
Change-Id: I94075dbaa6fabeb75bdbc92e56f237df80c15cef Signed-off-by: Nico Huber nico.h@gmx.de --- M util/abuild/abuild 1 file changed, 13 insertions(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/82/39382/1
diff --git a/util/abuild/abuild b/util/abuild/abuild index 676a446..b548519 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -516,26 +516,21 @@ local MAINBOARD_LC MAINBOARD_LC=$(echo "$MAINBOARD" | tr '[:upper:]' '[:lower:]')
- # look for config files in the config directory that match the boardname - if [ -n "$( find "$configdir" -maxdepth 1 -name "config.${MAINBOARD_LC}*" -print -quit )" ]; then - for config in "$configdir/config.${MAINBOARD_LC}"*; do - BUILD_NAME="${config##*/}" - BUILD_NAME="${BUILD_NAME##config.}" - BUILD_NAME=$(echo "${BUILD_NAME}" | tr '[:lower:]' '[:upper:]') - echo "Building config $BUILD_NAME" - build_dir=$TARGET/${BUILD_NAME} - build_config "$MAINBOARD" "$build_dir" "$BUILD_NAME" "$config" - remove_target "$BUILD_NAME" + for config in "$configdir/config.${MAINBOARD_LC}"*; do + BUILD_NAME="${config##*/}" + BUILD_NAME="${BUILD_NAME##config.}" + BUILD_NAME=$(echo "${BUILD_NAME}" | tr '[:lower:]' '[:upper:]') + echo "Building config $BUILD_NAME" + build_dir=$TARGET/${BUILD_NAME} + build_config "$MAINBOARD" "$build_dir" "$BUILD_NAME" "$config" + remove_target "$BUILD_NAME" + done
- done - else - echo "Building board $MAINBOARD (using default config)" - build_dir=$TARGET/${MAINBOARD} + echo "Building board $MAINBOARD (using default config)" + build_dir=$TARGET/${MAINBOARD}
- build_config "$MAINBOARD" "$build_dir" "$MAINBOARD" - remove_target "$MAINBOARD" - fi - + build_config "$MAINBOARD" "$build_dir" "$MAINBOARD" + remove_target "$MAINBOARD" }
function remove_target