]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-base.inc: Use KERNEL_DEVICETREE variable in IMAGE_BOOT_FILES
authorFabio Berton <fabio.berton@ossystems.com.br>
Wed, 11 Jul 2018 19:32:32 +0000 (16:32 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 11 Jul 2018 19:54:50 +0000 (16:54 -0300)
OE-Core commit 1860d9d3c62e2e94cd68a809385873ffd8270b6d removed
KERNEL_IMAGETYPE prefix from device tree name, so we don't need
to use utilities.inc and we can just use KERNEL_DEVICETREE variable
in IMAGE_BOOT_FILES.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/imx-base.inc
conf/machine/include/utilities.inc [deleted file]

index 89df1decc9831a0877ee81b48beafda13a32ca37..b6b5c9b9a7fa7428f354a724997160cd19af2196 100644 (file)
@@ -3,8 +3,6 @@
 include conf/machine/include/fsl-default-settings.inc
 include conf/machine/include/fsl-default-versions.inc
 
-require conf/machine/include/utilities.inc
-
 # Set specific make target and binary suffix
 PREFERRED_PROVIDER_u-boot ??= "u-boot-fslc"
 PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-fslc"
@@ -293,7 +291,7 @@ IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}"
 
 IMAGE_BOOT_FILES ?= " \
     ${KERNEL_IMAGETYPE} \
-    ${@make_dtb_boot_files(d)} \
+    ${KERNEL_DEVICETREE} \
 "
 
 ### wic default support
diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc
deleted file mode 100644 (file)
index bcb1c2a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-### Machine definition file utilities
-
-def make_dtb_boot_files(d):
-    # Generate IMAGE_BOOT_FILES entries for device tree files listed in
-    # KERNEL_DEVICETREE.
-    alldtbs = d.getVar('KERNEL_DEVICETREE')
-    imgtyp = d.getVar('KERNEL_IMAGETYPE')
-
-    def transform(dtb):
-        if dtb.endswith('dtb'):
-            # eg: whatever/bcm2708-rpi-b.dtb has:
-            #     DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb
-            #     destination: bcm2708-rpi-b.dtb
-            base = os.path.basename(dtb)
-            src = '{}-{}'.format(imgtyp, base)
-            dst = base
-            return '{};{}'.format(src, dst)
-        elif dtb.endswith('dtbo'):
-            # overlay dtb:
-            # eg: overlays/hifiberry-amp.dtbo has:
-            #     DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbo
-            #     destination: overlays/hifiberry-amp.dtbo
-            base = os.path.basename(dtb)
-            src = '{}-{}'.format(imgtyp, base)
-            dst = dtb
-            return '{};{}'.format(src, dtb)
-
-    return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb])