mkproject: allow to set an empty string as variant
This allows to set MACHINE_VARIANT to the empty string: MACHINE_VARIANT = "" in the project's local.conf by running something like: . /path/to/mkproject.sh -v "" -p <platform> Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
d176828980
commit
7b7fcbee60
|
|
@ -77,7 +77,7 @@ do_mkproject() {
|
|||
sed -i -e "/^#BB_NUMBER_THREADS =/cBB_NUMBER_THREADS = \"${NCPU}\"" \
|
||||
-e "/^#PARALLEL_MAKE =/cPARALLEL_MAKE = \"-j ${NCPU}\"" \
|
||||
${MKP_PROJECTPATH}/conf/local.conf
|
||||
if [ -n "${MKP_VARIANT}" ]; then
|
||||
if [ -n "${MKP_VARIANT+x}" ]; then
|
||||
sed -i -e "/^MACHINE_VARIANT =/cMACHINE_VARIANT = \"${MKP_VARIANT}\"" \
|
||||
${MKP_PROJECTPATH}/conf/local.conf
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue