Signed-off-by: Denys Dmytriyenko <[email protected]>
---
.../meta/external-linaro-toolchain.bbappend | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644
meta-arago-distro/recipes-core/meta/external-linaro-toolchain.bbappend
diff --git
a/meta-arago-distro/recipes-core/meta/external-linaro-toolchain.bbappend
b/meta-arago-distro/recipes-core/meta/external-linaro-toolchain.bbappend
new file mode 100644
index 0000000..0120c12
--- /dev/null
+++ b/meta-arago-distro/recipes-core/meta/external-linaro-toolchain.bbappend
@@ -0,0 +1,44 @@
+# This is a rather hacky way to install custom linux-libc-headers
+# on top of the external-linaro-toolchain, since simply depending
+# on linux-libc-headers creates circular dependencies now. Mostly
+# duplication of code from corresponding recipe.
+
+BRANCH = "ti-lsk-linux-4.9.y"
+SRCREV = "1c74e8801cf58a30394ae92236895599f2c77253"
+
+KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
+KERNEL_GIT_PROTOCOL = "git"
+SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH}"
+
+inherit kernel-arch pkgconfig multilib_header
+
+EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}""
+
+do_configure_append() {
+ cd ${WORKDIR}/git
+ oe_runmake allnoconfig
+}
+
+do_install_append() {
+ cd ${WORKDIR}/git
+ oe_runmake headers_install INSTALL_HDR_PATH=${B}${exec_prefix}
+
+ # The ..install.cmd conflicts between various configure runs
+ find ${B}${includedir} -name ..install.cmd | xargs rm -f
+
+ CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+ cp ${CP_ARGS} ${B}${includedir} ${D}${exec_prefix}
+}
+
+do_install_append_aarch64 () {
+ do_install_asm_armmultilib
+}
+
+do_install_append_arm () {
+ do_install_asm_armmultilib
+}
+
+do_install_asm_armmultilib () {
+ oe_multilib_header asm/auxvec.h asm/bitsperlong.h asm/byteorder.h
asm/fcntl.h asm/hwcap.h asm/ioctls.h asm/kvm.h asm/mman.h asm/param.h
asm/perf_regs.h
+ oe_multilib_header asm/posix_types.h asm/ptrace.h asm/setup.h
asm/sigcontext.h asm/siginfo.h asm/signal.h asm/stat.h asm/statfs.h asm/swab.h
asm/types.h asm/unistd.h
+}
--
2.7.4
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago