diff options
author | Denys Dmytriyenko <denys@ti.com> | 2013-06-24 20:14:37 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2013-06-25 14:12:25 -0400 |
commit | 32ec4417ad9152393f34f27b813714db393972c7 (patch) | |
tree | 0fd4e441ba3b397dfc329f4dbbad28a08509c16d /recipes-bsp/u-boot/u-boot-ti.inc | |
parent | bc80eb2756b8fda434a1a7714c4e95e19a8fbe60 (diff) | |
download | meta-ti-32ec4417ad9152393f34f27b813714db393972c7.tar.gz |
u-boot: add support for SPL UART variant
This is an adaptation of a patch by Carlos Hernandez
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-ti.inc')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 968f3e41..c024e963 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -15,3 +15,27 @@ PKG_${PN}-dbg = "u-boot-dbg" | |||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | 16 | ||
17 | UBOOT_SUFFIX = "img" | 17 | UBOOT_SUFFIX = "img" |
18 | |||
19 | # SPL (Second Program Loader) to be loaded over UART | ||
20 | SPL_UART_BINARY ?= "" | ||
21 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | ||
22 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | ||
23 | |||
24 | do_install_append () { | ||
25 | if [ "x${SPL_UART_BINARY}" != "x" ] | ||
26 | then | ||
27 | install ${S}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | ||
28 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | ||
29 | fi | ||
30 | } | ||
31 | |||
32 | do_deploy_append () { | ||
33 | cd ${DEPLOYDIR} | ||
34 | if [ "x${SPL_UART_BINARY}" != "x" ] | ||
35 | then | ||
36 | install ${S}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} | ||
37 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
38 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} | ||
39 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
40 | fi | ||
41 | } | ||