From 791a4e765cc27d53aab05f7733b599b8c990c1df Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Wed, 11 Jul 2018 16:32:32 -0300 Subject: imx-base.inc: Use KERNEL_DEVICETREE variable in IMAGE_BOOT_FILES 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 Signed-off-by: Otavio Salvador --- conf/machine/include/utilities.inc | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 conf/machine/include/utilities.inc (limited to 'conf/machine/include/utilities.inc') diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc deleted file mode 100644 index bcb1c2a7b..000000000 --- a/conf/machine/include/utilities.inc +++ /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]) -- cgit v1.2.3-54-g00ecf