diff options
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 1f64faa6f6..9e19c4f70f 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" | |||
9 | SRC_URI = "git://git.denx.de/u-boot.git;branch=master" | 9 | SRC_URI = "git://git.denx.de/u-boot.git;branch=master" |
10 | 10 | ||
11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
12 | B = "${WORKDIR}/build" | ||
12 | 13 | ||
13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
14 | 15 | ||
@@ -88,12 +89,12 @@ do_compile () { | |||
88 | j=$(expr $j + 1); | 89 | j=$(expr $j + 1); |
89 | if [ $j -eq $i ] | 90 | if [ $j -eq $i ] |
90 | then | 91 | then |
91 | oe_runmake O=${config} ${config} | 92 | oe_runmake -C ${S} O=${B}/${config} ${config} |
92 | oe_runmake O=${config} ${UBOOT_MAKE_TARGET} | 93 | oe_runmake -C ${S} O=${B}/${config} ${UBOOT_MAKE_TARGET} |
93 | for binary in ${UBOOT_BINARIES}; do | 94 | for binary in ${UBOOT_BINARIES}; do |
94 | k=$(expr $k + 1); | 95 | k=$(expr $k + 1); |
95 | if [ $k -eq $i ]; then | 96 | if [ $k -eq $i ]; then |
96 | cp ${S}/${config}/${binary} ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} | 97 | cp ${B}/${config}/${binary} ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} |
97 | fi | 98 | fi |
98 | done | 99 | done |
99 | unset k | 100 | unset k |
@@ -103,8 +104,8 @@ do_compile () { | |||
103 | done | 104 | done |
104 | unset i | 105 | unset i |
105 | else | 106 | else |
106 | oe_runmake ${UBOOT_MACHINE} | 107 | oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE} |
107 | oe_runmake ${UBOOT_MAKE_TARGET} | 108 | oe_runmake -C ${S} O=${B} ${UBOOT_MAKE_TARGET} |
108 | fi | 109 | fi |
109 | 110 | ||
110 | } | 111 | } |
@@ -119,7 +120,7 @@ do_install () { | |||
119 | if [ $j -eq $i ] | 120 | if [ $j -eq $i ] |
120 | then | 121 | then |
121 | install -d ${D}/boot | 122 | install -d ${D}/boot |
122 | install ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} | 123 | install ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} |
123 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} | 124 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} |
124 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY} | 125 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY} |
125 | fi | 126 | fi |
@@ -129,7 +130,7 @@ do_install () { | |||
129 | unset i | 130 | unset i |
130 | else | 131 | else |
131 | install -d ${D}/boot | 132 | install -d ${D}/boot |
132 | install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | 133 | install ${B}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} |
133 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | 134 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} |
134 | fi | 135 | fi |
135 | 136 | ||
@@ -143,7 +144,7 @@ do_install () { | |||
143 | j=$(expr $j + 1); | 144 | j=$(expr $j + 1); |
144 | if [ $j -eq $i ] | 145 | if [ $j -eq $i ] |
145 | then | 146 | then |
146 | install ${S}/${config}/${UBOOT_ELF} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} | 147 | install ${B}/${config}/${UBOOT_ELF} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} |
147 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} | 148 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type} |
148 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY} | 149 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY} |
149 | fi | 150 | fi |
@@ -152,7 +153,7 @@ do_install () { | |||
152 | done | 153 | done |
153 | unset i | 154 | unset i |
154 | else | 155 | else |
155 | install ${S}/${UBOOT_ELF} ${D}/boot/${UBOOT_ELF_IMAGE} | 156 | install ${B}/${UBOOT_ELF} ${D}/boot/${UBOOT_ELF_IMAGE} |
156 | ln -sf ${UBOOT_ELF_IMAGE} ${D}/boot/${UBOOT_ELF_BINARY} | 157 | ln -sf ${UBOOT_ELF_IMAGE} ${D}/boot/${UBOOT_ELF_BINARY} |
157 | fi | 158 | fi |
158 | fi | 159 | fi |
@@ -172,7 +173,7 @@ do_install () { | |||
172 | j=$(expr $j + 1); | 173 | j=$(expr $j + 1); |
173 | if [ $j -eq $i ] | 174 | if [ $j -eq $i ] |
174 | then | 175 | then |
175 | install ${S}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR} | 176 | install ${B}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR} |
176 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}-${type} | 177 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}-${type} |
177 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME} | 178 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME} |
178 | fi | 179 | fi |
@@ -181,7 +182,7 @@ do_install () { | |||
181 | done | 182 | done |
182 | unset i | 183 | unset i |
183 | else | 184 | else |
184 | install ${S}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} | 185 | install ${B}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE} |
185 | ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARYNAME} | 186 | ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARYNAME} |
186 | fi | 187 | fi |
187 | fi | 188 | fi |
@@ -205,7 +206,7 @@ do_deploy () { | |||
205 | if [ $j -eq $i ] | 206 | if [ $j -eq $i ] |
206 | then | 207 | then |
207 | install -d ${DEPLOYDIR} | 208 | install -d ${DEPLOYDIR} |
208 | install ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} | 209 | install ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} |
209 | cd ${DEPLOYDIR} | 210 | cd ${DEPLOYDIR} |
210 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}-${type} | 211 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}-${type} |
211 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK} | 212 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK} |
@@ -218,7 +219,7 @@ do_deploy () { | |||
218 | unset i | 219 | unset i |
219 | else | 220 | else |
220 | install -d ${DEPLOYDIR} | 221 | install -d ${DEPLOYDIR} |
221 | install ${S}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | 222 | install ${B}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} |
222 | cd ${DEPLOYDIR} | 223 | cd ${DEPLOYDIR} |
223 | rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} | 224 | rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK} |
224 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | 225 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} |
@@ -235,7 +236,7 @@ do_deploy () { | |||
235 | j=$(expr $j + 1); | 236 | j=$(expr $j + 1); |
236 | if [ $j -eq $i ] | 237 | if [ $j -eq $i ] |
237 | then | 238 | then |
238 | install ${S}/${config}/${UBOOT_ELF} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} | 239 | install ${B}/${config}/${UBOOT_ELF} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} |
239 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}-${type} | 240 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}-${type} |
240 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} | 241 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} |
241 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}-${type} | 242 | ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}-${type} |
@@ -246,7 +247,7 @@ do_deploy () { | |||
246 | done | 247 | done |
247 | unset i | 248 | unset i |
248 | else | 249 | else |
249 | install ${S}/${UBOOT_ELF} ${DEPLOYDIR}/${UBOOT_ELF_IMAGE} | 250 | install ${B}/${UBOOT_ELF} ${DEPLOYDIR}/${UBOOT_ELF_IMAGE} |
250 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} | 251 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_BINARY} |
251 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK} | 252 | ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK} |
252 | fi | 253 | fi |
@@ -263,7 +264,7 @@ do_deploy () { | |||
263 | j=$(expr $j + 1); | 264 | j=$(expr $j + 1); |
264 | if [ $j -eq $i ] | 265 | if [ $j -eq $i ] |
265 | then | 266 | then |
266 | install ${S}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR} | 267 | install ${B}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR} |
267 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}-${type} | 268 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}-${type} |
268 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}-${type} | 269 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}-${type} |
269 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME} | 270 | ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME} |
@@ -275,7 +276,7 @@ do_deploy () { | |||
275 | done | 276 | done |
276 | unset i | 277 | unset i |
277 | else | 278 | else |
278 | install ${S}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} | 279 | install ${B}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE} |
279 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK} | 280 | rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK} |
280 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARYNAME} | 281 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARYNAME} |
281 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} | 282 | ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK} |