summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2023-04-20 21:14:07 -0600
committerMark Hatle <mark.hatle@amd.com>2023-05-13 10:20:48 -0500
commitccff8f7cce68bcf5c0a2251f63200caea6adad98 (patch)
tree1d02d8bdcc7ff08a19f9c17c6b80471344bfc905
parent97c4f48bdf06c5a2e338c94a6d0e1de2171da79c (diff)
downloadmeta-xilinx-ccff8f7cce68bcf5c0a2251f63200caea6adad98.tar.gz
device-tree: Add documentation for key variables
Add documentation for SYSTEM_DTFILE, CONFIG_DTFILE, EXTRA_DT_FILE. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb6
1 files changed, 6 insertions, 0 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 fbc1797d..df63d4a1 100644
--- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
+++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb
@@ -27,6 +27,11 @@ UBOOT_DTFILE_PREFIX ?= "system-top"
27UBOOT_DTFILES_BUNDLE ?= "" 27UBOOT_DTFILES_BUNDLE ?= ""
28EXTRA_OVERLAYS ?= "" 28EXTRA_OVERLAYS ?= ""
29 29
30SYSTEM_DTFILE[doc] = "System Device Tree which accepts at 0...1 dts file"
31CONFIG_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"
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"
34
30SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_DT_FILES') or "").split()])}" 35SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_DT_FILES') or "").split()])}"
31SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_OVERLAYS') or "").split()])}" 36SRC_URI:append = " ${@" ".join(["file://%s" % f for f in (d.getVar('EXTRA_OVERLAYS') or "").split()])}"
32 37
@@ -87,6 +92,7 @@ devicetree_do_compile:append() {
87} 92}
88 93
89FILES:${PN} += "/boot/system.dtb" 94FILES:${PN} += "/boot/system.dtb"
95
90devicetree_do_install:append() { 96devicetree_do_install:append() {
91 if [ -n "${DTB_FILE_NAME}" ]; then 97 if [ -n "${DTB_FILE_NAME}" ]; then
92 # If it's already a dtb, we have to copy from the original location 98 # If it's already a dtb, we have to copy from the original location