diff options
author | Carton <joel.carron@eeproperty.ch> | 2019-07-18 12:18:51 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2019-07-20 21:56:21 +0100 |
commit | 290c152a22d8a65e87aa5198aeda4558231470b9 (patch) | |
tree | 1a51da970599621136e25540b4bebf4c6493a91b /recipes-devtools/python/rpi-gpio/0001-Remove-nested-functions.patch | |
parent | 43c1696ea50f27f8a8d05886c0124de8e8480f2b (diff) | |
download | meta-raspberrypi-290c152a22d8a65e87aa5198aeda4558231470b9.tar.gz |
rpi-config: Check some config values against "1"
When we read the docs, we have the feelings that theses variables are
boolean ones. So I was setting, for example in my distro.conf file the
variable ' ENABLE_I2C = "1" ' to enable I2C. Then I wanted to disable it
by simply setting 'ENABLE_I2C' to "0" but it wasn't working. So I
noticed that, for example, ' ENABLE_UART ' was checked with ' = "1" '
condition and some other "boolean" was checked against ' -n ' like for
ENABLE_I2C.
This commit tries to have an uniform behavior for all variables that are
shown in the doc under the format ' VARIABLE = "1" ' to enable them and
the reader can think they are kind of 'boolean' values.
Signed-off-by: Joël Carron <joel.carron@eeproperty.ch>
Diffstat (limited to 'recipes-devtools/python/rpi-gpio/0001-Remove-nested-functions.patch')
0 files changed, 0 insertions, 0 deletions