diff options
author | Varalaxmi Bingi <varalaxmi.bingi@xilinx.com> | 2022-04-29 14:49:20 +0530 |
---|---|---|
committer | Mark Hatle <mhatle@xilinx.com> | 2022-05-04 16:37:56 -0700 |
commit | 5c22bdc0e1c0e25a87bf2f7feb61bd12f5d1dba7 (patch) | |
tree | d097a586e421d36389f9b0d5ca546b16aca8f4b8 /meta-xilinx-core/recipes-bsp | |
parent | b2623f9f5d7d02592209eff6f3759f2c1dd4b7f0 (diff) | |
download | meta-xilinx-5c22bdc0e1c0e25a87bf2f7feb61bd12f5d1dba7.tar.gz |
u-boot-xlnx_%.bbappend: reorganizing u-boot recipe code
This patch will move the u-boot code from meta-xilinx-tools
to meta-xilinx. Not all flows use the meta-xilinx-tools
layer.
Signed-off-by: Varalaxmi Bingi <varalaxmi.bingi@xilinx.com>
Signed-off-by: Mark Hatle <mhatle@xilinx.com>
(cherry picked from commit ea12b72b50072cf43ce0aa142100d2a3166f21e7)
Signed-off-by: Mark Hatle <mhatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core/recipes-bsp')
-rw-r--r-- | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc index d9113cc7..d152c15c 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc | |||
@@ -18,3 +18,43 @@ B = "${WORKDIR}/build" | |||
18 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" | 18 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" |
19 | 19 | ||
20 | SYSROOT_DIRS += "/boot" | 20 | SYSROOT_DIRS += "/boot" |
21 | |||
22 | BASE_DTS ?= "${@os.path.basename(d.getVar('CONFIG_DTFILE') or "system-top")}" | ||
23 | DTB_PATH ?= "/boot/devicetree/" | ||
24 | DTB_NAME ?= "" | ||
25 | |||
26 | EXTRA_OEMAKE += "${@'EXT_DTB=${RECIPE_SYSROOT}/${DTB_PATH}/${DTB_NAME}' if (d.getVar('DTB_NAME') != '') else '' }" | ||
27 | |||
28 | python __anonymous () { | ||
29 | #check if there are any dtb providers | ||
30 | providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb") | ||
31 | if providerdtb: | ||
32 | d.appendVarFlag('do_configure', 'depends', ' virtual/dtb:do_populate_sysroot') | ||
33 | if d.getVar("DTB_NAME") is not None: | ||
34 | d.setVar('DTB_NAME', d.getVar('BASE_DTS')+ '.dtb') | ||
35 | |||
36 | if d.getVar('UBOOT_IMAGE_BLOB') == "1": | ||
37 | d.appendVarFlag('do_compile', 'postfuncs', ' do_blob_generate') | ||
38 | } | ||
39 | |||
40 | UBOOTELF_NODTB_IMAGE ?= "u-boot-nodtb.elf" | ||
41 | UBOOTELF_NODTB_BINARY ?= "u-boot" | ||
42 | do_deploy:prepend() { | ||
43 | cd ${B} | ||
44 | |||
45 | if [ -f "${UBOOTELF_NODTB_BINARY}" ]; then | ||
46 | install ${UBOOTELF_NODTB_BINARY} ${DEPLOYDIR}/${UBOOTELF_NODTB_IMAGE} | ||
47 | fi | ||
48 | |||
49 | #following lines are from uboot-sign.bbclass, vars are defined there | ||
50 | if [ -e "${UBOOT_DTB_BINARY}" ]; then | ||
51 | install ${UBOOT_DTB_BINARY} ${DEPLOYDIR}/${UBOOT_DTB_IMAGE} | ||
52 | ln -sf ${UBOOT_DTB_IMAGE} ${DEPLOYDIR}/${UBOOT_DTB_BINARY} | ||
53 | ln -sf ${UBOOT_DTB_IMAGE} ${DEPLOYDIR}/${UBOOT_DTB_SYMLINK} | ||
54 | fi | ||
55 | if [ -f "${UBOOT_NODTB_BINARY}" ]; then | ||
56 | install ${UBOOT_NODTB_BINARY} ${DEPLOYDIR}/${UBOOT_NODTB_IMAGE} | ||
57 | ln -sf ${UBOOT_NODTB_IMAGE} ${DEPLOYDIR}/${UBOOT_NODTB_SYMLINK} | ||
58 | ln -sf ${UBOOT_NODTB_IMAGE} ${DEPLOYDIR}/${UBOOT_NODTB_BINARY} | ||
59 | fi | ||
60 | } | ||