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:
parent
64c488a821
commit
ac740b7fdc
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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", "")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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", "")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue