Skip to content

Commit

Permalink
nss: Remove mcpu to avoid march conflicts
Browse files Browse the repository at this point in the history
Some files are compiled with armv8-a+crypto and when using cortex-a55
the deduced march is armv8.2-a which then conflicts

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed May 8, 2020
1 parent e2af7a9 commit 3bfe87d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta-oe/recipes-support/nss/nss_3.51.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ inherit siteinfo
TD = "${S}/tentative-dist"
TDS = "${S}/tentative-dist-staging"

# cortex-a55 is ARMv8.2-a based but libatomic explicitly asks for -march=armv8.1-a
# which caused -march conflicts in gcc
TUNE_CCARGS_remove = "-mcpu=cortex-a55+crc -mcpu=cortex-a55 -mcpu=cortex-a55+crc+crypto"

TARGET_CC_ARCH += "${LDFLAGS}"

do_configure_prepend_libc-musl () {
Expand Down

0 comments on commit 3bfe87d

Please sign in to comment.