diff options
author | Fabio Berton <fabio.berton@ossystems.com.br> | 2018-07-11 16:32:32 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2018-07-11 16:54:50 -0300 |
commit | 791a4e765cc27d53aab05f7733b599b8c990c1df (patch) | |
tree | 1717ba32b6c31e67e0a6473fcaaac6ebaab20439 /conf/machine/include/utilities.inc | |
parent | 291060cd3b0dc49aeb9a745f898f690949f24cc2 (diff) | |
download | meta-freescale-791a4e765cc27d53aab05f7733b599b8c990c1df.tar.gz |
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 <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'conf/machine/include/utilities.inc')
-rw-r--r-- | conf/machine/include/utilities.inc | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/conf/machine/include/utilities.inc b/conf/machine/include/utilities.inc deleted file mode 100644 index bcb1c2a7..00000000 --- a/conf/machine/include/utilities.inc +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | ### Machine definition file utilities | ||
2 | |||
3 | def make_dtb_boot_files(d): | ||
4 | # Generate IMAGE_BOOT_FILES entries for device tree files listed in | ||
5 | # KERNEL_DEVICETREE. | ||
6 | alldtbs = d.getVar('KERNEL_DEVICETREE') | ||
7 | imgtyp = d.getVar('KERNEL_IMAGETYPE') | ||
8 | |||
9 | def transform(dtb): | ||
10 | if dtb.endswith('dtb'): | ||
11 | # eg: whatever/bcm2708-rpi-b.dtb has: | ||
12 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb | ||
13 | # destination: bcm2708-rpi-b.dtb | ||
14 | base = os.path.basename(dtb) | ||
15 | src = '{}-{}'.format(imgtyp, base) | ||
16 | dst = base | ||
17 | return '{};{}'.format(src, dst) | ||
18 | elif dtb.endswith('dtbo'): | ||
19 | # overlay dtb: | ||
20 | # eg: overlays/hifiberry-amp.dtbo has: | ||
21 | # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbo | ||
22 | # destination: overlays/hifiberry-amp.dtbo | ||
23 | base = os.path.basename(dtb) | ||
24 | src = '{}-{}'.format(imgtyp, base) | ||
25 | dst = dtb | ||
26 | return '{};{}'.format(src, dtb) | ||
27 | |||
28 | return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) | ||