aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-kernel
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2014-12-31 13:58:16 +0800
committerKoen Kooi <koen.kooi@linaro.org>2015-01-08 10:49:31 +0100
commitc94519412e0da09d39e857c44f8d48d91a184ec8 (patch)
treed46bb502da98c3bb7fbebd5032fc19f2ff06f531 /meta-linaro/recipes-kernel
parentbeae8c58b8f1a42e5e1ccdd8a205a9a7d6fdff37 (diff)
downloadmeta-linaro-c94519412e0da09d39e857c44f8d48d91a184ec8.tar.gz
bootwrapper: use ${B} when building and referencing to dtbs
We should change to build directory before building the dtbs and the generated dtbs are also put to build directory. So we should use ${B} here instead of ${S}. Change-Id: I0f0e9d761899c4d7af315e81cedaa415fb0a3bdf Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Diffstat (limited to 'meta-linaro/recipes-kernel')
-rw-r--r--meta-linaro/recipes-kernel/linux/bootwrapper.inc15
1 files changed, 7 insertions, 8 deletions
diff --git a/meta-linaro/recipes-kernel/linux/bootwrapper.inc b/meta-linaro/recipes-kernel/linux/bootwrapper.inc
index c3a56348..23b4eccc 100644
--- a/meta-linaro/recipes-kernel/linux/bootwrapper.inc
+++ b/meta-linaro/recipes-kernel/linux/bootwrapper.inc
@@ -3,7 +3,7 @@ SRC_URI_append= " git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wr
SRCREV_bootwrapper = "2ff0b45423226d3de898a52a81b8e90b20fecd60"
BW = "${WORKDIR}/bootwrapper"
-DTBDIR="${S}/arch/arm64/boot/dts/"
+DTBDIR="${B}/arch/arm64/boot/dts/"
# Bootwrapper needs libgcc_s.so
DEPENDS =+ "libgcc"
@@ -14,7 +14,6 @@ export WRAPCXXFLAGS = "${CXXFLAGS}"
export WRAPLDFLAGS = "${LDFLAGS}"
do_compile_append() {
- cd ${S}
oe_runmake dtbs
cd ${BW}
@@ -26,24 +25,24 @@ do_compile_append() {
autoreconf -vfi
./configure --host=aarch64-linux-gnu \
- --with-kernel-dir="${S}" \
+ --with-kernel-dir="${B}" \
--with-cmdline="${BOOTARGS_COMMON} root=/dev/vda"
make IMAGE=linux-system-foundation.axf clean
- make DTC=${S}/scripts/dtc/dtc \
+ make DTC=${B}/scripts/dtc/dtc \
KERNEL_DTB="${DTBDIR}/foundation-v8.dtb" \
IMAGE=linux-system-foundation.axf
make IMAGE=img-foundation.axf clean
./configure --host=aarch64-linux-gnu \
- --with-kernel-dir="${S}" \
+ --with-kernel-dir="${B}" \
--with-cmdline="${BOOTARGS_COMMON} root=/dev/vda2"
- make DTC=${S}/scripts/dtc/dtc \
+ make DTC=${B}/scripts/dtc/dtc \
KERNEL_DTB="${DTBDIR}/foundation-v8.dtb" \
IMAGE=img-foundation.axf
make IMAGE=img.axf clean
./configure --host=aarch64-linux-gnu \
- --with-kernel-dir="${S}" \
+ --with-kernel-dir="${B}" \
--with-cmdline="${BOOTARGS_COMMON} root=/dev/mmcblk0p2"
- make DTC=${S}/scripts/dtc/dtc \
+ make DTC=${B}/scripts/dtc/dtc \
KERNEL_DTB="${DTBDIR}/rtsm_ve-aemv8a.dtb" \
IMAGE=img.axf
}