diff options
Diffstat (limited to 'meta-xilinx-core')
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb | 14 |
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. |
| 18 | SYSTEM_DTFILE ??= "" | 18 | SYSTEM_DTFILE ??= "" |
| 19 | CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" | 19 | CONFIG_DTFILE ??= "${SYSTEM_DTFILE}" |
| 20 | DT_FILES_PATH = "${@os.path.dirname(d.getVar('CONFIG_DTFILE')) if d.getVar('CONFIG_DTFILE') else d.getVar('S')}" | ||
| 21 | 20 | ||
| 22 | EXTRA_DT_FILES ?= "" | 21 | EXTRA_DT_FILES ?= "" |
| 23 | EXTRA_DTFILE_PREFIX ?= "system-top" | 22 | EXTRA_DTFILE_PREFIX ?= "system-top" |
| @@ -32,6 +31,11 @@ CONFIG_DTFILE[doc] = "Domain Specific Device Tree which accepts 0...1 dts file" | |||
| 32 | EXTRA_DT_FILES[doc] = "Add extra files to DT_FILES_PATH, it accepts 1...n dtsi files and adds to SRC_URI" | 31 | EXTRA_DT_FILES[doc] = "Add extra files to DT_FILES_PATH, it accepts 1...n dtsi files and adds to SRC_URI" |
| 33 | EXTRA_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" | 32 | EXTRA_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 | ||
| 36 | FILESEXTRAPATHS:prepend := "${@'%s:' % os.path.dirname(d.getVar('CONFIG_DTFILE') or '') if (d.getVar('CONFIG_DTFILE')) else ''}" | ||
| 37 | SRC_URI:append := " ${@'file://%s' % os.path.basename(d.getVar('CONFIG_DTFILE') or '') if (d.getVar('CONFIG_DTFILE')) else ''}" | ||
| 38 | |||
| 35 | SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_DT_FILES') or "").split()])}" | 39 | SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_DT_FILES') or "").split()])}" |
| 36 | SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_OVERLAYS') or "").split()])}" | 40 | SRC_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 | ||
| 143 | python() { | 139 | python() { |
| 144 | # Need to allow bbappends to change the check | 140 | # Need to allow bbappends to change the check |
