|
@@ -1,8 +1,11 @@
|
|
|
# Support for device tree generation
|
|
|
-PACKAGES_append = " \
|
|
|
- ${KERNEL_PACKAGE_NAME}-devicetree \
|
|
|
- ${@[d.getVar('KERNEL_PACKAGE_NAME') + '-image-zimage-bundle', ''][d.getVar('KERNEL_DEVICETREE_BUNDLE') != '1']} \
|
|
|
-"
|
|
|
+python () {
|
|
|
+ if not bb.data.inherits_class('nopackages', d):
|
|
|
+ d.appendVar("PACKAGES", " ${KERNEL_PACKAGE_NAME}-devicetree")
|
|
|
+ if d.getVar('KERNEL_DEVICETREE_BUNDLE') == '1':
|
|
|
+ d.appendVar("PACKAGES", " ${KERNEL_PACKAGE_NAME}-image-zimage-bundle")
|
|
|
+}
|
|
|
+
|
|
|
FILES_${KERNEL_PACKAGE_NAME}-devicetree = "/${KERNEL_IMAGEDEST}/*.dtb /${KERNEL_IMAGEDEST}/*.dtbo"
|
|
|
FILES_${KERNEL_PACKAGE_NAME}-image-zimage-bundle = "/${KERNEL_IMAGEDEST}/zImage-*.dtb.bin"
|
|
|
|