diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-10-15 14:29:13 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-10-27 17:59:46 +1000 |
| commit | db19a075645083165b63814afe4276d5c93463f0 (patch) | |
| tree | af7c58009ef3d81ec5b3892f673e4fda55ddf01e /recipes-bsp | |
| parent | 482199188dca59a9d80548758a2bb81a11a2847d (diff) | |
| download | meta-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.inc | 17 | ||||
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-xlnx.inc | 20 |
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 | ||
| 2 | inherit xilinx-utils | 2 | inherit xilinx-utils |
| 3 | 3 | ||
| 4 | S = "${WORKDIR}/git" | ||
| 5 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 6 | |||
| 7 | # Also deploy u-boot elf file with same file format as bin file | ||
| 8 | UBOOTXTENSION ?= "${XILINX_EXTENSION}-${MACHINE}" | ||
| 9 | SRC_ELF ?= "u-boot" | ||
| 10 | DEST_ELF ?= "u-boot${UBOOTXTENSION}-${PV}-${PR}.elf" | ||
| 11 | ELF_SYMLINK ?= "u-boot${UBOOTXTENSION}.elf" | ||
| 12 | do_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}) |
| 23 | FILESEXTRAPATHS_append := "${@get_additional_bbpath_filespath('conf/machine/boards', d)}" | 6 | FILESEXTRAPATHS_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 | ||
| 7 | SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https" | 7 | SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https" |
| 8 | 8 | ||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 11 | |||
| 12 | include u-boot-extra.inc | ||
| 13 | |||
| 9 | SPL_BINARY_zynq = "boot.bin" | 14 | SPL_BINARY_zynq = "boot.bin" |
| 10 | UBOOT_SUFFIX = "img" | 15 | UBOOT_SUFFIX = "img" |
| 11 | 16 | ||
| @@ -16,5 +21,18 @@ do_configure_prepend () { | |||
| 16 | fi | 21 | fi |
| 17 | } | 22 | } |
| 18 | 23 | ||
| 19 | include u-boot-extra.inc | 24 | # U-Boot deploy ELF |
| 25 | UBOOT_ELF = "u-boot" | ||
| 26 | UBOOT_ELF_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.elf" | ||
| 27 | UBOOT_ELF_BINARY ?= "u-boot.elf" | ||
| 28 | UBOOT_ELF_SYMLINK ?= "u-boot-${MACHINE}.elf" | ||
| 29 | |||
| 30 | do_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 | ||
