Andrew Geissler | ea144b0 | 2023-01-27 16:03:57 -0600 | [diff] [blame^] | 1 | From 52931ec7a708b58d68e69ce9eb99001ae9f099dd Mon Sep 17 00:00:00 2001 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 13 May 2020 15:10:38 -0700 |
| 4 | Subject: [PATCH] libatomic: Do not enforce march on aarch64 |
| 5 | |
| 6 | OE passes the right options via gcc compiler cmdline via TUNE_CCARGS |
| 7 | this can conflict between -mcpu settings and -march setting here, since |
| 8 | -mcpu will translate into an appropriate -march, lets depend on that |
| 9 | instead of setting it explicitly |
| 10 | |
| 11 | Upstream-Status: Inappropriate [OE-Specific] |
| 12 | |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | libatomic/Makefile.am | 1 - |
| 16 | libatomic/Makefile.in | 1 - |
| 17 | 2 files changed, 2 deletions(-) |
| 18 | |
| 19 | diff --git a/libatomic/Makefile.am b/libatomic/Makefile.am |
Andrew Geissler | ea144b0 | 2023-01-27 16:03:57 -0600 | [diff] [blame^] | 20 | index d88515e4a03..e0e2f8b442a 100644 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 21 | --- a/libatomic/Makefile.am |
| 22 | +++ b/libatomic/Makefile.am |
| 23 | @@ -125,7 +125,6 @@ libatomic_la_LIBADD = $(foreach s,$(SIZES),$(addsuffix _$(s)_.lo,$(SIZEOBJS))) |
| 24 | ## On a target-specific basis, include alternates to be selected by IFUNC. |
| 25 | if HAVE_IFUNC |
| 26 | if ARCH_AARCH64_LINUX |
| 27 | -IFUNC_OPTIONS = -march=armv8-a+lse |
| 28 | libatomic_la_LIBADD += $(foreach s,$(SIZES),$(addsuffix _$(s)_1_.lo,$(SIZEOBJS))) |
| 29 | endif |
| 30 | if ARCH_ARM_LINUX |
| 31 | diff --git a/libatomic/Makefile.in b/libatomic/Makefile.in |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 32 | index 80d25653dc7..7377689ab34 100644 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 33 | --- a/libatomic/Makefile.in |
| 34 | +++ b/libatomic/Makefile.in |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 35 | @@ -434,7 +434,6 @@ M_SRC = $(firstword $(filter %/$(M_FILE), $(all_c_files))) |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 36 | libatomic_la_LIBADD = $(foreach s,$(SIZES),$(addsuffix \ |
| 37 | _$(s)_.lo,$(SIZEOBJS))) $(am__append_1) $(am__append_2) \ |
| 38 | $(am__append_3) $(am__append_4) |
| 39 | -@ARCH_AARCH64_LINUX_TRUE@@HAVE_IFUNC_TRUE@IFUNC_OPTIONS = -march=armv8-a+lse |
| 40 | @ARCH_ARM_LINUX_TRUE@@HAVE_IFUNC_TRUE@IFUNC_OPTIONS = -march=armv7-a+fp -DHAVE_KERNEL64 |
| 41 | @ARCH_I386_TRUE@@HAVE_IFUNC_TRUE@IFUNC_OPTIONS = -march=i586 |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 42 | @ARCH_X86_64_TRUE@@HAVE_IFUNC_TRUE@IFUNC_OPTIONS = -mcx16 -mcx16 |