summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core')
-rw-r--r--meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb14
1 files changed, 5 insertions, 9 deletions
diff --git a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
index df63d4a1..4662c558 100644
--- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
+++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
@@ -17,7 +17,6 @@ inherit devicetree image-artifact-names
17# system. 17# system.
18SYSTEM_DTFILE ??= "" 18SYSTEM_DTFILE ??= ""
19CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" 19CONFIG_DTFILE ??= "${SYSTEM_DTFILE}"
20DT_FILES_PATH = "${@os.path.dirname(d.getVar('CONFIG_DTFILE')) if d.getVar('CONFIG_DTFILE') else d.getVar('S')}"
21 20
22EXTRA_DT_FILES ?= "" 21EXTRA_DT_FILES ?= ""
23EXTRA_DTFILE_PREFIX ?= "system-top" 22EXTRA_DTFILE_PREFIX ?= "system-top"
@@ -32,6 +31,11 @@ CONFIG_DTFILE[doc] = "Domain Specific Device Tree which accepts 0...1 dts file"
32EXTRA_DT_FILES[doc] = "Add extra files to DT_FILES_PATH, it accepts 1...n dtsi files and adds to SRC_URI" 31EXTRA_DT_FILES[doc] = "Add extra files to DT_FILES_PATH, it accepts 1...n dtsi files and adds to SRC_URI"
33EXTRA_OVERLAYS[doc] = "Add extra files to DT_FILES_PATH and adds a #include for each to the BASE_DTS, it access 1..n dtsi files and adds to SRC_URI" 32EXTRA_OVERLAYS[doc] = "Add extra files to DT_FILES_PATH and adds a #include for each to the BASE_DTS, it access 1..n dtsi files and adds to SRC_URI"
34 33
34# There should only be ONE CONFIG_DTFILE listed
35# These need to be passed in from global, not from a bbappend
36FILESEXTRAPATHS:prepend := "${@'%s:' % os.path.dirname(d.getVar('CONFIG_DTFILE') or '') if (d.getVar('CONFIG_DTFILE')) else ''}"
37SRC_URI:append := " ${@'file://%s' % os.path.basename(d.getVar('CONFIG_DTFILE') or '') if (d.getVar('CONFIG_DTFILE')) else ''}"
38
35SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_DT_FILES') or "").split()])}" 39SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_DT_FILES') or "").split()])}"
36SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_OVERLAYS') or "").split()])}" 40SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_OVERLAYS') or "").split()])}"
37 41
@@ -131,14 +135,6 @@ def check_devicetree_variables(d):
131 135
132 if not d.getVar('CONFIG_DTFILE'): 136 if not d.getVar('CONFIG_DTFILE'):
133 raise bb.parse.SkipRecipe("CONFIG_DTFILE or SYSTEM_DTFILE is not defined.") 137 raise bb.parse.SkipRecipe("CONFIG_DTFILE or SYSTEM_DTFILE is not defined.")
134 else:
135 if not os.path.exists(d.getVar('CONFIG_DTFILE')):
136 if not d.getVar('WITHIN_EXT_SDK'):
137 raise bb.parse.SkipRecipe("The device tree %s is not available." % d.getVar('CONFIG_DTFILE'))
138 else:
139 d.appendVar('SRC_URI', ' file://${CONFIG_DTFILE}')
140 d.setVarFlag('do_install', 'file-checksums', '${CONFIG_DTFILE}:True')
141 d.setVarFlag('do_deploy', 'file-checksums', '${CONFIG_DTFILE}:True')
142 138
143python() { 139python() {
144 # Need to allow bbappends to change the check 140 # Need to allow bbappends to change the check