mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/check_kernel_config: handle string options
This commit is contained in:
parent
d546803ae4
commit
4af06750d7
@ -179,7 +179,7 @@ pre_make_target() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(${PKG_BUILD}/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then
|
if [ "$(${PKG_BUILD}/scripts/config --state ${OPTION%%=*})" != "$(echo ${OPTION##*=} | tr -d '"')" ]; then
|
||||||
MISSING_KERNEL_OPTIONS+="\t${OPTION}\n"
|
MISSING_KERNEL_OPTIONS+="\t${OPTION}\n"
|
||||||
fi
|
fi
|
||||||
done < ${DISTRO_DIR}/${DISTRO}/kernel_options
|
done < ${DISTRO_DIR}/${DISTRO}/kernel_options
|
||||||
|
@ -26,6 +26,12 @@ if [ -f "${DISTRO_DIR}/${DISTRO}/kernel_options" ]; then
|
|||||||
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --disable ${OPTION%%=*}
|
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --disable ${OPTION%%=*}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# must be a string if it contains double quotes
|
||||||
|
if [ -n "$(echo ${OPTION##*=} | grep '"')" ]; then
|
||||||
|
echo "[${OPTION##*=}] ${OPTION%%=*}"
|
||||||
|
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --set-str ${OPTION%%=*} $(echo ${OPTION##*=} | tr -d '"')
|
||||||
|
fi
|
||||||
|
|
||||||
done < ${DISTRO_DIR}/${DISTRO}/kernel_options
|
done < ${DISTRO_DIR}/${DISTRO}/kernel_options
|
||||||
else
|
else
|
||||||
echo "kernel options file doesn't exist: ${DISTRO_DIR}/${DISTRO}/kernel_options"
|
echo "kernel options file doesn't exist: ${DISTRO_DIR}/${DISTRO}/kernel_options"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user