]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: morello: Use separate lp64 and morello sysdep directories
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 26 Apr 2022 14:29:04 +0000 (15:29 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 5 Aug 2022 18:45:19 +0000 (19:45 +0100)
Provide separate directories for lp64 and purecap abi related sysdep
functionality.

purecap may be better name than morello, but we started with morello
and that is more future compatible with alternative cheri-like
extensions on top of aarch64.

sysdeps/aarch64/preconfigure

index d9bd1f8558a079cb28418aa1ef949ed5992bfe55..4d9d137622878cafa31b2457ed4581da808818bb 100644 (file)
@@ -1,6 +1,11 @@
 case "$machine" in
 aarch64*)
        base_machine=aarch64
-       machine=aarch64
+       if $CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep -q __CHERI_PURE_CAPABILITY__
+       then
+               machine=aarch64/morello
+       else
+               machine=aarch64/lp64
+       fi
        ;;
 esac