diff options
| author | Franz Forstmayr <f.forstmayr@gmail.com> | 2018-02-01 02:20:19 +1000 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:03:46 -0800 |
| commit | cbfe41738984142e8b7e18da4fa6d43a3b23538e (patch) | |
| tree | 5cec487502c8288bea4f1d2bd044be053b33a36e /meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc | |
| parent | 6cb8c0d6a0d46937c78d1d7d7d9045fda9275985 (diff) | |
| download | meta-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>
Diffstat (limited to 'meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc')
| -rw-r--r-- | meta-xilinx-bsp/conf/machine/include/machine-xilinx-default.inc | 8 |
1 files changed, 8 insertions, 0 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 | ||
| 45 | def 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 | |||
| 45 | XSERVER_EXT ?= "" | 53 | XSERVER_EXT ?= "" |
| 46 | XSERVER_EXT_zynqmp ?= "xf86-video-armsoc" | 54 | XSERVER_EXT_zynqmp ?= "xf86-video-armsoc" |
| 47 | 55 | ||
