From d492d4a34c57bf9f3d41b9f1e9a69ab3f9551e9e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 7 Jul 2021 13:05:00 +0200 Subject: setup_target: Remove mystery overlay target feature --- core/bin/setup_target | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'core/bin') diff --git a/core/bin/setup_target b/core/bin/setup_target index 30fafbf5..1f2327e9 100755 --- a/core/bin/setup_target +++ b/core/bin/setup_target @@ -52,7 +52,6 @@ # ----------------------------------------------------------------------------- # CORE_DIR="${ROOT_DIR}/core" -OVERLAY_DIR="${ROOT_DIR}/overlay" EXPORT_DIR="/export/build" [ -z "$REMOTE_EXPORT_DIR" ] || EXPORT_DIR=$REMOTE_EXPORT_DIR @@ -61,15 +60,6 @@ initial_checks () { detect_distribution } -# WTF!? -set_target_dir () { - if [ -d "${OVERLAY_DIR}/targets/${TARGET}" ]; then - TARGET_DIR="${OVERLAY_DIR}/targets/${TARGET}" - elif [ -d "${CORE_DIR}/targets/${TARGET}" ]; then - TARGET_DIR="${CORE_DIR}/targets/${TARGET}" - fi -} - # # generic function to read the config file of the current $MODULE # @@ -295,7 +285,7 @@ generate_target() { TARGET="$1" shift - set_target_dir + TARGET_DIR="${CORE_DIR}/targets/${TARGET}" if [[ "$TARGET" == *@* ]]; then VARNAME="${TARGET#*@}" TARGET="${TARGET%@*}" -- cgit v1.2.3-55-g7522