summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranz Forstmayr <f.forstmayr@gmail.com>2018-02-01 02:20:19 +1000
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-01-01 20:03:46 -0800
commitcbfe41738984142e8b7e18da4fa6d43a3b23538e (patch)
tree5cec487502c8288bea4f1d2bd044be053b33a36e
parent6cb8c0d6a0d46937c78d1d7d7d9045fda9275985 (diff)
downloadmeta-xilinx-cbfe41738984142e8b7e18da4fa6d43a3b23538e.tar.gz
get_dtb_list function which formats the dtb files properly before adding to IMAGE_BOOT_FILES
Replaced the hard-coded devicetree files in IMAGE_BOOT_FILES with a function, which formats the KERNEL_DEVICETREE list properly. Signed-off-by: Franz Forstmayr <f.forstmayr@gmail.com> Reviewed-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc8
-rw-r--r--meta-xilinx-bsp/conf/machine/zc702-zynq7.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zc706-zynq7.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf2
-rw-r--r--meta-xilinx-bsp/conf/machine/zybo-zynq7.conf2
8 files changed, 15 insertions, 7 deletions
diff --git a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
index 0f2ced48..b07362a2 100644
--- a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
+++ b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
@@ -42,6 +42,14 @@ XSERVER ?= " \
42 ${XSERVER_EXT} \ 42 ${XSERVER_EXT} \
43 " 43 "
44 44
45def get_dtb_list(d):
46 if d.getVar("KERNEL_DEVICETREE"):
47 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
48 dtbs = [os.path.basename(d) for d in dtbs]
49 if len(dtbs) != 0:
50 return " ".join([d.getVar("KERNEL_IMAGETYPE") + "-" + dtb for dtb in dtbs])
51 return ""
52
45XSERVER_EXT ?= "" 53XSERVER_EXT ?= ""
46XSERVER_EXT_zynqmp ?= "xf86-video-armsoc" 54XSERVER_EXT_zynqmp ?= "xf86-video-armsoc"
47 55
diff --git a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
index 9b08d1be..e64f87e7 100644
--- a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
@@ -31,7 +31,7 @@ SERIAL_CONSOLE = "115200 ttyPS0"
31 31
32KERNEL_DEVICETREE = "zynq-zc702.dtb" 32KERNEL_DEVICETREE = "zynq-zc702.dtb"
33 33
34IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zc702.dtb" 34IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${@get_dtb_list(d)}"
35 35
36# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine 36# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine
37IMAGE_CLASSES += "qemuboot" 37IMAGE_CLASSES += "qemuboot"
diff --git a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
index 628d4046..c1f4ffff 100644
--- a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
@@ -34,7 +34,7 @@ KERNEL_DEVICETREE = "zynq-zc706.dtb"
34 34
35IMAGE_BOOT_FILES += " \ 35IMAGE_BOOT_FILES += " \
36 boot.bin \ 36 boot.bin \
37 ${KERNEL_IMAGETYPE}-zynq-zc706.dtb \ 37 ${@get_dtb_list(d)} \
38 uEnv.txt \ 38 uEnv.txt \
39 " 39 "
40 40
diff --git a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf
index f04a42ca..c62d908b 100644
--- a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf
+++ b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf
@@ -35,7 +35,7 @@ EXTRA_IMAGEDEPENDS += " \
35 virtual/boot-bin \ 35 virtual/boot-bin \
36 " 36 "
37 37
38IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${KERNEL_IMAGETYPE}-zynqmp-zcu102-rev1.0.dtb" 38IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${@get_dtb_list(d)}"
39 39
40# This machine has a QEMU model, runqemu setup: 40# This machine has a QEMU model, runqemu setup:
41IMAGE_CLASSES += "qemuboot-xilinx" 41IMAGE_CLASSES += "qemuboot-xilinx"
diff --git a/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf
index dda099d8..3d3cf277 100644
--- a/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf
+++ b/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf
@@ -32,7 +32,7 @@ EXTRA_IMAGEDEPENDS += " \
32 arm-trusted-firmware \ 32 arm-trusted-firmware \
33 virtual/boot-bin \ 33 virtual/boot-bin \
34 " 34 "
35IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${KERNEL_IMAGETYPE}-zynqmp-zcu104-revC.dtb" 35IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${@get_dtb_list(d)}"
36 36
37MACHINE_HWCODECS = "libomxil-xlnx" 37MACHINE_HWCODECS = "libomxil-xlnx"
38 38
diff --git a/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf
index edc95c13..364e551f 100644
--- a/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf
+++ b/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf
@@ -31,6 +31,6 @@ EXTRA_IMAGEDEPENDS += " \
31 virtual/boot-bin \ 31 virtual/boot-bin \
32 " 32 "
33 33
34IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${KERNEL_IMAGETYPE}-zynqmp-zcu106-revA.dtb" 34IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${@get_dtb_list(d)}"
35 35
36MACHINE_HWCODECS = "libomxil-xlnx" 36MACHINE_HWCODECS = "libomxil-xlnx"
diff --git a/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf b/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf
index a329074e..42d1eff5 100644
--- a/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf
@@ -28,5 +28,5 @@ SERIAL_CONSOLE = "115200 ttyPS0"
28 28
29KERNEL_DEVICETREE = "zynq-zed.dtb" 29KERNEL_DEVICETREE = "zynq-zed.dtb"
30 30
31IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zed.dtb" 31IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${@get_dtb_list(d)}"
32 32
diff --git a/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf b/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf
index 5b405637..ada8c0d8 100644
--- a/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf
@@ -31,7 +31,7 @@ KERNEL_DEVICETREE = "zynq-zybo.dtb"
31 31
32IMAGE_BOOT_FILES += " \ 32IMAGE_BOOT_FILES += " \
33 boot.bin \ 33 boot.bin \
34 ${KERNEL_IMAGETYPE}-zynq-zybo.dtb \ 34 ${@get_dtb_list(d)} \
35 uEnv.txt \ 35 uEnv.txt \
36 " 36 "
37 37