mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
rpi-config: Take into consideration ENABLE_UART value of 0
Also, validate if the value of it is not 0 or 1. Fixes: https://github.com/agherzan/meta-raspberrypi/issues/567 Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
This commit is contained in:
parent
690b4a5e98
commit
b1570cff21
|
@ -174,9 +174,11 @@ do_deploy() {
|
|||
fi
|
||||
|
||||
# UART support
|
||||
if [ "${ENABLE_UART}" = "1" ]; then
|
||||
if [ "${ENABLE_UART}" = "1" ] || [ "${ENABLE_UART}" = "0" ] ; then
|
||||
echo "# Enable UART" >>$CONFIG
|
||||
echo "enable_uart=1" >>$CONFIG
|
||||
echo "enable_uart=${ENABLE_UART}" >>$CONFIG
|
||||
else
|
||||
bbfatal "Invalid value for ENABLE_UART [${ENABLE_UART}]. The value for ENABLE_UART can be 0 or 1."
|
||||
fi
|
||||
|
||||
# Infrared support
|
||||
|
|
Loading…
Reference in New Issue
Block a user