summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-poky/recipes-devtools/binutils/binutils_2.29.bbappend6
-rw-r--r--meta-poky/recipes-devtools/gcc/gcc_7.2.bbappend14
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-poky/recipes-devtools/binutils/binutils_2.29.bbappend b/meta-poky/recipes-devtools/binutils/binutils_2.29.bbappend
new file mode 100644
index 00000000000..f94655aa9a3
--- /dev/null
+++ b/meta-poky/recipes-devtools/binutils/binutils_2.29.bbappend
@@ -0,0 +1,6 @@
+CONFIGUREOPTS := "${@d.getVar("CONFIGUREOPTS").replace("--target=${TARGET_SYS}", "--target=arm-linux-gnueabihf")}"
+CONFIGUREOPTS := "${@d.getVar("CONFIGUREOPTS").replace("--host=${TARGET_SYS}", "--host=arm-linux-gnueabihf")}"
+EXTRA_OECONF := "${@d.getVar("EXTRA_OECONF").replace("--program-prefix=${TARGET_SYS}-", "--program-prefix=arm-linux-gnueabihf-")}"
+do_install := "${@d.getVar("do_install").replace("${TARGET_SYS}", "arm-linux-gnueabihf")}"
+FILES_${PN} += "${bindir}/arm-linux-gnueabihf* ${prefix}/arm-linux-gnueabihf/bin/*"
+#FILES-${PN}-dev += "${prefix}/${TARGET_SYS}/arm-linux-gnueabihf/include/*"
diff --git a/meta-poky/recipes-devtools/gcc/gcc_7.2.bbappend b/meta-poky/recipes-devtools/gcc/gcc_7.2.bbappend
new file mode 100644
index 00000000000..c0ec668455d
--- /dev/null
+++ b/meta-poky/recipes-devtools/gcc/gcc_7.2.bbappend
@@ -0,0 +1,14 @@
+EXTRA_OECONF += "--with-mode=thumb --with-fpu=vfpv3-d16 --with-arch=armv7-a --with-float=hard"
+CONFIGUREOPTS := "${@d.getVar("CONFIGUREOPTS").replace("--target=${TARGET_SYS}", "--target=arm-linux-gnueabihf")}"
+CONFIGUREOPTS := "${@d.getVar("CONFIGUREOPTS").replace("--host=${TARGET_SYS}", "--host=arm-linux-gnueabihf")}"
+EXTRA_OECONF := "${@d.getVar("EXTRA_OECONF").replace("--program-prefix=${TARGET_SYS}-", "--program-prefix=arm-linux-gnueabihf-")}"
+do_install := "${@d.getVar("do_install").replace("${TARGET_SYS}", "arm-linux-gnueabihf")}"
+# Deal with unwind.h reference
+do_install := "${@d.getVar("do_install").replace("/arm-linux-gnueabihf/gcc/arm-linux-gnueabihf/", "/${TARGET_SYS}/gcc/${TARGET_SYS}/")}"
+
+python () {
+ for i in d.getVar("PACKAGES").split():
+ v = d.getVar("FILES_" + i, False)
+ if v:
+ d.setVar("FILES_" + i, v.replace("/${TARGET_SYS}", "/arm-linux-gnueabihf").replace("/${TARGET_PREFIX}", "/arm-linux-gnueabihf-"))
+}