Hi,
I am not sure if this is the right list for these patches. If not, please point me to the right one. :-)
I tried to build a linaro aarch64 kernel with the latest oe-core, but got several build errors. This patch series fix these errors.
Kevin Hao (2): bootwrapper: use ${B} when building and referencing to dtbs linux-linaro-aarch64: change to source directory before merging config files
meta-linaro/recipes-kernel/linux/bootwrapper.inc | 15 +++++++-------- meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb | 2 ++ 2 files changed, 9 insertions(+), 8 deletions(-)
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}.
Signed-off-by: Kevin Hao kexin.hao@windriver.com --- meta-linaro/recipes-kernel/linux/bootwrapper.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/meta-linaro/recipes-kernel/linux/bootwrapper.inc b/meta-linaro/recipes-kernel/linux/bootwrapper.inc index c3a56348bfe4..23b4ecccc75c 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 }
We use the merge_config.sh to generate the final kernel config file, but this file only exist in the kernel source directory and so do for the config files. So we need to change to kernel source directory first.
Signed-off-by: Kevin Hao kexin.hao@windriver.com --- meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb b/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb index 6e181a777672..6e027d395b11 100644 --- a/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb +++ b/meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb @@ -18,5 +18,7 @@ BOOTARGS_COMMON = "console=ttyAMA0 mem=2048M devtmpfs.mount=1 earlyprintk=pl011,
do_configure_prepend() { . ../ubuntu-ci/configs/vexpress64.cfg + cd ${S} ARCH=arm64 scripts/kconfig/merge_config.sh -m $linaro_base_config_frags $ubuntu_config_frag $board_config_frags + cd ${B} }
Thanks, added to gerrit:
https://review.linaro.org/4183
https://review.linaro.org/4184
On 31 December 2014 at 06:58, Kevin Hao kexin.hao@windriver.com wrote:
Hi,
I am not sure if this is the right list for these patches. If not, please point me to the right one. :-)
I tried to build a linaro aarch64 kernel with the latest oe-core, but got several build errors. This patch series fix these errors.
Kevin Hao (2): bootwrapper: use ${B} when building and referencing to dtbs linux-linaro-aarch64: change to source directory before merging config files
meta-linaro/recipes-kernel/linux/bootwrapper.inc | 15 +++++++-------- meta-linaro/recipes-kernel/linux/linux-linaro-aarch64.bb | 2 ++ 2 files changed, 9 insertions(+), 8 deletions(-)
-- 1.9.3