mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
classes/recipes/lib: Fix various python whitespace issues
There are some left over tab characters in the python functions. This removes them and resolves python 3 errors. (From OE-Core rev: fafeb381c48291fa65c634c01c244843c8d7fad3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -7,9 +7,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
python __anonymous () {
|
||||
major = d.getVar("PV",True).split('.')[0]
|
||||
if major == "3":
|
||||
d.setVar("HEADER_FETCH_VER", "3.0")
|
||||
d.setVar("HEADER_FETCH_VER", "3.0")
|
||||
else:
|
||||
d.setVar("HEADER_FETCH_VER", "2.6")
|
||||
d.setVar("HEADER_FETCH_VER", "2.6")
|
||||
}
|
||||
|
||||
inherit kernel-arch
|
||||
|
||||
@@ -5,10 +5,10 @@ KERNEL_DEVICETREE_FLAGS ?= "-R 8 -p 0x3000"
|
||||
python __anonymous () {
|
||||
devicetree = d.getVar("KERNEL_DEVICETREE", True) or ''
|
||||
if devicetree:
|
||||
depends = d.getVar("DEPENDS", True)
|
||||
d.setVar("DEPENDS", "%s dtc-native" % depends)
|
||||
packages = d.getVar("PACKAGES", True)
|
||||
d.setVar("PACKAGES", "%s kernel-devicetree" % packages)
|
||||
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_install_append() {
|
||||
|
||||
Reference in New Issue
Block a user