From: Mark Hatle <[email protected]> Microblaze does not support symver, so disable this code.
Signed-off-by: Mark Hatle <[email protected]> --- .../attr/attr/microblaze-symver.patch | 32 +++++++++++++++++++ .../recipes-support/attr/attr_%.bbappend | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch create mode 100644 meta-microblaze/recipes-support/attr/attr_%.bbappend diff --git a/meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch b/meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch new file mode 100644 index 00000000..0db401d0 --- /dev/null +++ b/meta-microblaze/recipes-support/attr/attr/microblaze-symver.patch @@ -0,0 +1,32 @@ +Fix build failure + +On microblaze, we get a failure due to: + + ../attr-2.5.2/libattr/syscalls.c:133:10: error: symver is only supported on ELF platforms + +Upstream-Status: Pending + +Signed-off-by: Mark Hatle <[email protected]> + +Index: attr-2.5.2/libattr/syscalls.c +=================================================================== +--- attr-2.5.2.orig/libattr/syscalls.c ++++ attr-2.5.2/libattr/syscalls.c +@@ -31,6 +31,7 @@ + * prefer symver attribute if available (since gcc 10), + * fall back to traditional .symver asm directive otherwise. + */ ++#ifndef __microblaze__ + #ifdef __has_attribute + # if __has_attribute(__symver__) + # define SYMVER(cn, vn) __typeof(cn) cn __attribute__((__symver__(vn))) +@@ -43,6 +44,9 @@ + __asm__(".symver " #cn "," vn) + # endif + #endif ++#else ++# define SYMVER(cn, vn) ++#endif + #ifndef SYMVER + # define SYMVER(cn, vn) __asm__(".symver " #cn "," vn) + #endif diff --git a/meta-microblaze/recipes-support/attr/attr_%.bbappend b/meta-microblaze/recipes-support/attr/attr_%.bbappend new file mode 100644 index 00000000..75c3696e --- /dev/null +++ b/meta-microblaze/recipes-support/attr/attr_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/attr" +SRC_URI:append:microblaze = " file://microblaze-symver.patch" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5317): https://lists.yoctoproject.org/g/meta-xilinx/message/5317 Mute This Topic: https://lists.yoctoproject.org/mt/106179134/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
