summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2018-02-01 02:20:19 +1000
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2019-01-01 20:03:46 -0800
commitc2823e683db1207e6bff7055c77d215301b4c163 (patch)
tree5628019cf6419fd1ab24605b3d74fe53594439db
parentcbfe41738984142e8b7e18da4fa6d43a3b23538e (diff)
downloadmeta-xilinx-c2823e683db1207e6bff7055c77d215301b4c163.tar.gz
machine-xilinx-default.inc: Default IMAGE_BOOT_FILES using function
Replace the definition of IMAGE_BOOT_FILES in machine-xilinx-board.inc with the use of a function which automatically selects available images that should be included. This includes the existing implementation of `get_dtb_list` and replaces it with a function that covers all image files including the existing default for KERNEL_IMAGETYPE(S) and UBOOT_BINARY. Also remove the use of `get_dtb_list` from individual machines which is replaced by the default value. 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-board.inc2
-rw-r--r--meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc21
-rw-r--r--meta-xilinx-bsp/conf/machine/zc702-zynq7.conf5
-rw-r--r--meta-xilinx-bsp/conf/machine/zc706-zynq7.conf1
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf5
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf5
-rw-r--r--meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf5
-rw-r--r--meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf5
-rw-r--r--meta-xilinx-bsp/conf/machine/zybo-zynq7.conf1
9 files changed, 38 insertions, 12 deletions
diff --git a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-board.inc b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-board.inc
index ba9a36be..17041e41 100644
--- a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-board.inc
+++ b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-board.inc
@@ -2,5 +2,3 @@
2 2
3EXTRA_IMAGEDEPENDS += "virtual/bootloader" 3EXTRA_IMAGEDEPENDS += "virtual/bootloader"
4 4
5IMAGE_BOOT_FILES ?= "${KERNEL_IMAGETYPE} ${UBOOT_BINARY}"
6
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 b07362a2..e4c99b8f 100644
--- a/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
+++ b/meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc
@@ -42,13 +42,28 @@ XSERVER ?= " \
42 ${XSERVER_EXT} \ 42 ${XSERVER_EXT} \
43 " 43 "
44 44
45def get_dtb_list(d): 45IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}"
46
47def get_default_image_boot_files(d):
48 files = []
49
50 # kernel images
51 kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split())
52 kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split())
53 for i in kerneltypes:
54 files.append(i)
55
56 # u-boot image
57 if d.getVar("UBOOT_BINARY"):
58 files.append(d.getVar("UBOOT_BINARY"))
59
60 # device trees (kernel only)
46 if d.getVar("KERNEL_DEVICETREE"): 61 if d.getVar("KERNEL_DEVICETREE"):
47 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ") 62 dtbs = d.getVar("KERNEL_DEVICETREE").split(" ")
48 dtbs = [os.path.basename(d) for d in dtbs] 63 dtbs = [os.path.basename(d) for d in dtbs]
49 if len(dtbs) != 0: 64 if len(dtbs) != 0:
50 return " ".join([d.getVar("KERNEL_IMAGETYPE") + "-" + dtb for dtb in dtbs]) 65 files += [d.getVar("KERNEL_IMAGETYPE") + "-" + dtb for dtb in dtbs]
51 return "" 66 return " ".join(files)
52 67
53XSERVER_EXT ?= "" 68XSERVER_EXT ?= ""
54XSERVER_EXT_zynqmp ?= "xf86-video-armsoc" 69XSERVER_EXT_zynqmp ?= "xf86-video-armsoc"
diff --git a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
index e64f87e7..32c0d6e7 100644
--- a/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zc702-zynq7.conf
@@ -31,7 +31,10 @@ 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 ${@get_dtb_list(d)}" 34IMAGE_BOOT_FILES += " \
35 boot.bin \
36 uEnv.txt \
37 "
35 38
36# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine 39# Although not fully supported you can run this machine on the mainline QEMU 'xilinx-zynq-a9' machine
37IMAGE_CLASSES += "qemuboot" 40IMAGE_CLASSES += "qemuboot"
diff --git a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
index c1f4ffff..a92c052d 100644
--- a/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zc706-zynq7.conf
@@ -34,7 +34,6 @@ KERNEL_DEVICETREE = "zynq-zc706.dtb"
34 34
35IMAGE_BOOT_FILES += " \ 35IMAGE_BOOT_FILES += " \
36 boot.bin \ 36 boot.bin \
37 ${@get_dtb_list(d)} \
38 uEnv.txt \ 37 uEnv.txt \
39 " 38 "
40 39
diff --git a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf
index c62d908b..88be85ec 100644
--- a/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf
+++ b/meta-xilinx-bsp/conf/machine/zcu102-zynqmp.conf
@@ -35,7 +35,10 @@ EXTRA_IMAGEDEPENDS += " \
35 virtual/boot-bin \ 35 virtual/boot-bin \
36 " 36 "
37 37
38IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${@get_dtb_list(d)}" 38IMAGE_BOOT_FILES += " \
39 uEnv.txt \
40 atf-uboot.ub \
41 "
39 42
40# This machine has a QEMU model, runqemu setup: 43# This machine has a QEMU model, runqemu setup:
41IMAGE_CLASSES += "qemuboot-xilinx" 44IMAGE_CLASSES += "qemuboot-xilinx"
diff --git a/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf
index 3d3cf277..bb8d9929 100644
--- a/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf
+++ b/meta-xilinx-bsp/conf/machine/zcu104-zynqmp.conf
@@ -32,7 +32,10 @@ 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 ${@get_dtb_list(d)}" 35IMAGE_BOOT_FILES += " \
36 uEnv.txt \
37 atf-uboot.ub \
38 "
36 39
37MACHINE_HWCODECS = "libomxil-xlnx" 40MACHINE_HWCODECS = "libomxil-xlnx"
38 41
diff --git a/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf b/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf
index 364e551f..e1e9d47f 100644
--- a/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf
+++ b/meta-xilinx-bsp/conf/machine/zcu106-zynqmp.conf
@@ -31,6 +31,9 @@ EXTRA_IMAGEDEPENDS += " \
31 virtual/boot-bin \ 31 virtual/boot-bin \
32 " 32 "
33 33
34IMAGE_BOOT_FILES += "uEnv.txt atf-uboot.ub ${@get_dtb_list(d)}" 34IMAGE_BOOT_FILES += " \
35 uEnv.txt \
36 atf-uboot.ub \
37 "
35 38
36MACHINE_HWCODECS = "libomxil-xlnx" 39MACHINE_HWCODECS = "libomxil-xlnx"
diff --git a/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf b/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf
index 42d1eff5..4f9f03ed 100644
--- a/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zedboard-zynq7.conf
@@ -28,5 +28,8 @@ 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 ${@get_dtb_list(d)}" 31IMAGE_BOOT_FILES += " \
32 boot.bin \
33 uEnv.txt \
34 "
32 35
diff --git a/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf b/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf
index ada8c0d8..f0b6bce8 100644
--- a/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf
+++ b/meta-xilinx-bsp/conf/machine/zybo-zynq7.conf
@@ -31,7 +31,6 @@ KERNEL_DEVICETREE = "zynq-zybo.dtb"
31 31
32IMAGE_BOOT_FILES += " \ 32IMAGE_BOOT_FILES += " \
33 boot.bin \ 33 boot.bin \
34 ${@get_dtb_list(d)} \
35 uEnv.txt \ 34 uEnv.txt \
36 " 35 "
37 36