Skip to contentSkip to conversation

gcc-runtime: apply ARM specific workaround to big-endian ARM too

PATCH In review Andre McCurdy 2 participants 6 messages Mar 16, 2020 – Mar 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 gcc-runtime: apply ARM specific workaround to big-endian ARM too

---
 meta/recipes-devtools/gcc/gcc-runtime.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gcc/gcc-runtime.inc +1 -0
index b2c5d43bd4..771f344ac0 100644
@@ -20,6 +20,7 @@ EXTRA_OECONF_append_libc-newlib = " --with-newlib"
 
 # Disable ifuncs for libatomic on arm conflicts -march/-mcpu
 EXTRA_OECONF_append_arm = " libat_cv_have_ifunc=no "
+EXTRA_OECONF_append_armeb = " libat_cv_have_ifunc=no "
 
 # Newlib does not support symbol versioning on libsdtcc++
 SYMVERS_CONF_libc-newlib = ""
Signature · 1 line
2.24.0
#1 lore raw

PATCH 2/5 opkg-utils: remove python scripts etc for the class-target only

OE's packaging functions assume that the opkg-utils python scipts are always provided by opkg-utils-native, so the scripts should be removed for class-target only.

---
 meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb +4 -4
index eda73db6a4..9315240190 100644
@@ -34,13 +34,13 @@ do_install() {
 	if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then
 		rm -f "${D}${bindir}/update-alternatives"
 	fi
-
-    if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
-        grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
-    fi
 }
 
 do_install_append_class-target() {
+	if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
+		grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
+	fi
+
 	if [ -e "${D}${bindir}/update-alternatives" ]; then
 		sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g'
 	fi
Signature · 1 line
2.24.0
#2 lore raw

Re: [OE-core] [PATCH 2/5] opkg-utils: remove python scripts etc for the class-target only

Richard

ping on this patch, I am also running into the issue fixed by it.

Quoted 40 lines · Andre McCurdy

OE's packaging functions assume that the opkg-utils python scipts are always provided by opkg-utils-native, so the scripts should be removed for class-target only.

---
 meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb +4 -5
index eda73db6a4..9315240190 100644
@@ -34,13 +34,13 @@ do_install() {
        if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then
                rm -f "${D}${bindir}/update-alternatives"
        fi
-
-    if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
-        grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
-    fi
 }
 
 do_install_append_class-target() {
+       if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then
+               grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm
+       fi
+
        if [ -e "${D}${bindir}/update-alternatives" ]; then
                sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g'
        fi
--

2.24.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw

PATCH 3/5 tune-arm1136jf-s.inc: restore vfp to TUNE_FEATURES_tune-arm1136jfs

In reply to Andre McCurdy

The change to TUNE_FEATURES_tune-arm1136jfs as part of:

https://git.openembedded.org/openembedded-core/commit/?id=ac83d22eb5031f7fdd09d34a1a46d92fd3e39a3c

effectively removed both armv6 and vfp, when it should have removed armv6 only. Add vfp back to TUNE_FEATURES_tune-arm1136jfs.

---
 meta/conf/machine/include/tune-arm1136jf-s.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/tune-arm1136jf-s.inc +1 -1
index b25995d495..173cb468ef 100644
@@ -10,7 +10,7 @@ AVAILTUNES += "arm1136jfs arm1136jfshf"
 ARMPKGARCH_tune-arm1136jfs = "arm1136jfs"
 ARMPKGARCH_tune-arm1136jfshf = "arm1136jfs"
 # mcpu is used so don't use armv6 as we don't want march
-TUNE_FEATURES_tune-arm1136jfs = "arm arm1136jfs"
+TUNE_FEATURES_tune-arm1136jfs = "arm vfp arm1136jfs"
 TUNE_FEATURES_tune-arm1136jfshf = "${TUNE_FEATURES_tune-arm1136jfs} callconvention-hard"
 PACKAGE_EXTRA_ARCHS_tune-arm1136jfs = "${PACKAGE_EXTRA_ARCHS_tune-armv6} arm1136jfs-vfp"
 PACKAGE_EXTRA_ARCHS_tune-arm1136jfshf = "${PACKAGE_EXTRA_ARCHS_tune-armv6hf} arm1136jfshf-vfp"
Signature · 1 line
2.24.0
#4 lore raw

PATCH 4/5 tune-arm1176jz-s.inc: fix typo in PACKAGE_EXTRA_ARCHS_tune-arm1176jzs

In reply to Andre McCurdy
---
 meta/conf/machine/include/tune-arm1176jz-s.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/tune-arm1176jz-s.inc +1 -1
index c741e80521..a63d585698 100644
@@ -9,7 +9,7 @@ MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'arm1176jzs', 'armv6:
 AVAILTUNES += "arm1176jzs"
 ARMPKGARCH_tune-arm1176jzs = "arm1176jzs"
 TUNE_FEATURES_tune-arm1176jzs = "arm thumb arm1176jzs"
-PACKAGE_EXTRA_ARCHS_tune-arm1176jzs = "${PACKAGE_EXTRA_ARCHS_tune-armv6tb-novfp} arm1176jzs arm1176jzst"
+PACKAGE_EXTRA_ARCHS_tune-arm1176jzs = "${PACKAGE_EXTRA_ARCHS_tune-armv6t-novfp} arm1176jzs arm1176jzst"
 
 AVAILTUNES += "arm1176jzs-be"
 ARMPKGARCH_tune-arm1176jzs-be = "${ARMPKGARCH_tune-arm1176jzs}"
Signature · 1 line
2.24.0
#5 lore raw

PATCH 5/5 qemuarmv5.conf: drop stray comment including tune-arm1136jf-s.inc

In reply to Andre McCurdy

An old comment which appears to have been checked in by accident as part of an unrelated change:

https://git.openembedded.org/openembedded-core/commit/?id=e9ebcc4c19a624f76051c0a25d9ecf6ac4afb257

---
 meta/conf/machine/qemuarmv5.conf | 1 -
 1 file changed, 1 deletion(-)
meta/conf/machine/qemuarmv5.conf +0 -1
index 7f72048065..e7f24fe1ea 100644
@@ -4,7 +4,6 @@
 
 require conf/machine/include/qemu.inc
 require conf/machine/include/tune-arm926ejs.inc
-#require conf/machine/include/tune-arm1136jf-s.inc
 
 KERNEL_IMAGETYPE = "zImage"
 
Signature · 1 line
2.24.0