diff options
-rw-r--r-- | recipes-bsp/u-boot/u-boot-socfpga-common.inc | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/recipes-bsp/u-boot/u-boot-socfpga-common.inc b/recipes-bsp/u-boot/u-boot-socfpga-common.inc index 415f70d..06f0992 100644 --- a/recipes-bsp/u-boot/u-boot-socfpga-common.inc +++ b/recipes-bsp/u-boot/u-boot-socfpga-common.inc | |||
@@ -7,57 +7,4 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master" | |||
7 | 7 | ||
8 | S = "${WORKDIR}/git" | 8 | S = "${WORKDIR}/git" |
9 | 9 | ||
10 | do_compile_append_stratix10() { | ||
11 | if [ -n "${UBOOT_CONFIG}" ] | ||
12 | then | ||
13 | unset i j k | ||
14 | for config in ${UBOOT_MACHINE}; do | ||
15 | i=$(expr $i + 1); | ||
16 | for type in ${UBOOT_CONFIG}; do | ||
17 | j=$(expr $j + 1); | ||
18 | if [ $j -eq $i ] | ||
19 | then | ||
20 | ${OBJCOPY} -I binary -O ihex --change-addresses 0xffe00000 ${B}/${config}/${SPL_BINARY} ${B}/${config}/${SPL_BINARY}.ihex | ||
21 | fi | ||
22 | done | ||
23 | unset j | ||
24 | done | ||
25 | unset i | ||
26 | else | ||
27 | ${OBJCOPY} -I binary -O ihex --change-addresses 0xffe00000 ${B}/${SPL_BINARY} ${B}/${SPL_BINARY}.ihex | ||
28 | fi | ||
29 | |||
30 | } | ||
31 | |||
32 | do_deploy_append_stratix10() { | ||
33 | if [ -n "${SPL_BINARY}" ] | ||
34 | then | ||
35 | if [ -n "${UBOOT_CONFIG}" ] | ||
36 | then | ||
37 | for config in ${UBOOT_MACHINE}; do | ||
38 | i=$(expr $i + 1); | ||
39 | for type in ${UBOOT_CONFIG}; do | ||
40 | j=$(expr $j + 1); | ||
41 | if [ $j -eq $i ] | ||
42 | then | ||
43 | install -m 644 ${B}/${config}/${SPL_BINARY}.ihex ${DEPLOYDIR}/${SPL_IMAGE}.ihex-${type}-${PV}-${PR} | ||
44 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex-${MACHINE}-${type} | ||
45 | ln -sf ${SPL_IMAGE}.ihex-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex-${type} | ||
46 | ln -sf ${SPL_IMAGE}.ihex-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex | ||
47 | ln -sf ${SPL_IMAGE}.ihex-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex-${MACHINE}-${type} | ||
48 | ln -sf ${SPL_IMAGE}.ihex-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex-${MACHINE} | ||
49 | fi | ||
50 | done | ||
51 | unset j | ||
52 | done | ||
53 | unset i | ||
54 | else | ||
55 | install -m 644 ${B}/${SPL_BINARY}.ihex ${DEPLOYDIR}/${SPL_IMAGE}.ihex | ||
56 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex-${MACHINE} | ||
57 | ln -sf ${SPL_IMAGE}.ihex ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex | ||
58 | ln -sf ${SPL_IMAGE}.ihex ${DEPLOYDIR}/${SPL_BINARYNAME}.ihex-${MACHINE} | ||
59 | fi | ||
60 | fi | ||
61 | } | ||
62 | |||
63 | RPROVIDES_${PN} += "u-boot" | 10 | RPROVIDES_${PN} += "u-boot" |