summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2014-10-15 14:29:13 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2014-10-27 17:59:46 +1000
commitdb19a075645083165b63814afe4276d5c93463f0 (patch)
treeaf7c58009ef3d81ec5b3892f673e4fda55ddf01e /recipes-bsp
parent482199188dca59a9d80548758a2bb81a11a2847d (diff)
downloadmeta-xilinx-db19a075645083165b63814afe4276d5c93463f0.tar.gz
u-boot-xlnx: Rework ELF deploy
* Move ELF deploy out of the u-boot-extra.inc include * Use similar to u-boot.inc naming for the UBOOT_ELF* variables Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/u-boot/u-boot-extra.inc17
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx.inc20
2 files changed, 19 insertions, 18 deletions
diff --git a/recipes-bsp/u-boot/u-boot-extra.inc b/recipes-bsp/u-boot/u-boot-extra.inc
index e476b22e..b7569864 100644
--- a/recipes-bsp/u-boot/u-boot-extra.inc
+++ b/recipes-bsp/u-boot/u-boot-extra.inc
@@ -1,23 +1,6 @@
1 1
2inherit xilinx-utils 2inherit xilinx-utils
3 3
4S = "${WORKDIR}/git"
5PACKAGE_ARCH = "${MACHINE_ARCH}"
6
7# Also deploy u-boot elf file with same file format as bin file
8UBOOTXTENSION ?= "${XILINX_EXTENSION}-${MACHINE}"
9SRC_ELF ?= "u-boot"
10DEST_ELF ?= "u-boot${UBOOTXTENSION}-${PV}-${PR}.elf"
11ELF_SYMLINK ?= "u-boot${UBOOTXTENSION}.elf"
12do_deploy_append() {
13 install ${S}/${SRC_ELF} ${DEPLOYDIR}/${DEST_ELF}
14
15 cd ${DEPLOYDIR}
16 rm -f ${SRC_ELF} ${ELF_SYMLINK}
17 ln -sf ${DEST_ELF} ${ELF_SYMLINK}
18 ln -sf ${DEST_ELF} ${SRC_ELF}.elf
19}
20
21# Appends the '<layer>/conf/machine/boards' path to FILESEXTRAPATHS for all 4# Appends the '<layer>/conf/machine/boards' path to FILESEXTRAPATHS for all
22# layers (using the ${BBPATH}) 5# layers (using the ${BBPATH})
23FILESEXTRAPATHS_append := "${@get_additional_bbpath_filespath('conf/machine/boards', d)}" 6FILESEXTRAPATHS_append := "${@get_additional_bbpath_filespath('conf/machine/boards', d)}"
diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc b/recipes-bsp/u-boot/u-boot-xlnx.inc
index a2816439..082b72a0 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -6,6 +6,11 @@ XILINX_EXTENSION = "-xilinx"
6 6
7SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https" 7SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https"
8 8
9S = "${WORKDIR}/git"
10PACKAGE_ARCH = "${MACHINE_ARCH}"
11
12include u-boot-extra.inc
13
9SPL_BINARY_zynq = "boot.bin" 14SPL_BINARY_zynq = "boot.bin"
10UBOOT_SUFFIX = "img" 15UBOOT_SUFFIX = "img"
11 16
@@ -16,5 +21,18 @@ do_configure_prepend () {
16 fi 21 fi
17} 22}
18 23
19include u-boot-extra.inc 24# U-Boot deploy ELF
25UBOOT_ELF = "u-boot"
26UBOOT_ELF_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.elf"
27UBOOT_ELF_BINARY ?= "u-boot.elf"
28UBOOT_ELF_SYMLINK ?= "u-boot-${MACHINE}.elf"
29
30do_deploy_append() {
31 if [ ! -z "${UBOOT_ELF}" ]; then
32 install ${S}/${UBOOT_ELF} ${DEPLOYDIR}/${UBOOT_ELF_IMAGE}
33 rm -f ${DEPLOYDIR}/${UBOOT_ELF_BINARY} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}
34 ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}
35 ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}
36 fi
37}
20 38