meta-digi-dey: trustfence: Explicitely check for "1" for variable enable

https://jira.digi.com/browse/DEL-2603

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2016-06-07 10:50:05 +02:00
parent 64c488a821
commit ac740b7fdc
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ python () {
import hashlib
# Secure console configuration
if d.getVar("TRUSTFENCE_CONSOLE_DISABLE", True):
if (d.getVar("TRUSTFENCE_CONSOLE_DISABLE", True) == "1"):
d.appendVar("UBOOT_EXTRA_CONF", "CONFIG_CONSOLE_DISABLE=y ")
if d.getVar("TRUSTFENCE_CONSOLE_PASSPHRASE_ENABLE", True):
passphrase_hash = hashlib.sha256(d.getVar("TRUSTFENCE_CONSOLE_PASSPHRASE_ENABLE")).hexdigest()

View File

@ -1,6 +1,6 @@
# Copyright (C) 2016 Digi International.
python __anonymous () {
if d.getVar("TRUSTFENCE_CONSOLE_DISABLE", True):
if (d.getVar("TRUSTFENCE_CONSOLE_DISABLE", True) == "1"):
d.setVar("SERIAL_CONSOLES", "")
}

View File

@ -1,6 +1,6 @@
# Copyright (C) 2016 Digi International.
python __anonymous () {
if d.getVar("TRUSTFENCE_CONSOLE_DISABLE", True):
if (d.getVar("TRUSTFENCE_CONSOLE_DISABLE", True) == "1"):
d.setVar("SERIAL_CONSOLES", "")
}