diff options
-rw-r--r-- | recipes-kernel/linux/linux-toradex-mainline.inc | 10 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-toradex.inc | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline.inc b/recipes-kernel/linux/linux-toradex-mainline.inc index 47ee82e..56a8dd1 100644 --- a/recipes-kernel/linux/linux-toradex-mainline.inc +++ b/recipes-kernel/linux/linux-toradex-mainline.inc @@ -35,12 +35,12 @@ python __anonymous () { import bb - devicetree = bb.data.getVar('KERNEL_DEVICETREE', d, 1) or '' + devicetree = d.getVar('KERNEL_DEVICETREE', True) or '' if devicetree: - depends = bb.data.getVar("DEPENDS", d, 1) - bb.data.setVar("DEPENDS", "%s dtc-native" % depends, d) - packages = bb.data.getVar("PACKAGES", d, 1) - bb.data.setVar("PACKAGES", "%s kernel-devicetree" % packages, d) + depends = d.getVar("DEPENDS", True) + d.setVar("DEPENDS", "%s dtc-native" % depends) + packages = d.getVar("PACKAGES", True) + d.setVar("PACKAGES", "%s kernel-devicetree" % packages) } do_configure_append() { diff --git a/recipes-kernel/linux/linux-toradex.inc b/recipes-kernel/linux/linux-toradex.inc index 47ee82e..56a8dd1 100644 --- a/recipes-kernel/linux/linux-toradex.inc +++ b/recipes-kernel/linux/linux-toradex.inc @@ -35,12 +35,12 @@ python __anonymous () { import bb - devicetree = bb.data.getVar('KERNEL_DEVICETREE', d, 1) or '' + devicetree = d.getVar('KERNEL_DEVICETREE', True) or '' if devicetree: - depends = bb.data.getVar("DEPENDS", d, 1) - bb.data.setVar("DEPENDS", "%s dtc-native" % depends, d) - packages = bb.data.getVar("PACKAGES", d, 1) - bb.data.setVar("PACKAGES", "%s kernel-devicetree" % packages, d) + depends = d.getVar("DEPENDS", True) + d.setVar("DEPENDS", "%s dtc-native" % depends) + packages = d.getVar("PACKAGES", True) + d.setVar("PACKAGES", "%s kernel-devicetree" % packages) } do_configure_append() { |