Compare commits

...

1 Commits

Author SHA1 Message Date
Janusz Dziedzic
e1c5896e2b iop: genconfig multiple customers
In case of multiple customers generate
correct CONFIG_TARGET_CUSTOMER

We need to remove CONFIG_TARGET_CUSTOMER
definitions from profiles common.diff

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-04-07 10:48:00 +02:00

View File

@@ -359,6 +359,21 @@ function genconfig {
done
fi
# Setup CONFIG_TARGET_CUSTOMER
if [ -n "$CUSTOMERS" ]; then
_CONFIG_TARGET_CUSTOMER=""
for CUSTOMER in $CUSTOMERS; do
if [ "$_CONFIG_TARGET_CUSTOMER" = "" ]; then
_CONFIG_TARGET_CUSTOMER="$CUSTOMER"
else
_CONFIG_TARGET_CUSTOMER="${_CONFIG_TARGET_CUSTOMER}_$CUSTOMER"
fi
done
echo "CONFIG_TARGET_CUSTOMER=\"${_CONFIG_TARGET_CUSTOMER}\"" >> .config
fi
# Set target version
local GIT_TAG=$(git describe --abbrev=0 --tags)
local GIT_REV=$(git rev-parse --short HEAD)