summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-06-10 14:08:54 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-06-19 12:50:56 +0200
commit14337a8390feb97539b6b981c68123632204e75d (patch)
treec09753737f8ab4c869cc4db0a39106c189c3127e /cfg.mk
parentb60d7c35f8243bdc1da0e308e57737afe9013d2d (diff)
downloadgnutls-14337a8390feb97539b6b981c68123632204e75d.tar.gz
macosx: include aarch64 asm files
Relates #475 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 2c227f370c..c532250797 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -247,4 +247,16 @@ lib/accelerated/aarch64/elf/%.s: devel/perlasm/%.pl .submodule.stamp
echo ".section .note.GNU-stack,\"\",%progbits" >> $@
rm -f $@.tmp.S $@.tmp.s $@.tmp
+lib/accelerated/aarch64/macosx/%.s: devel/perlasm/%.pl .submodule.stamp
+ rm -f $@tmp
+ CC=aarch64-linux-gnu-gcc perl $< ios64 $@.tmp
+ cat $@.tmp | /usr/bin/perl -ne '/^#(line)?\s*[0-9]+/ or print' > $@.tmp.S
+ echo "" >> $@.tmp.S
+ sed -i 's/OPENSSL_armcap_P/_gnutls_arm_cpuid_s/g' $@.tmp.S
+ sed -i 's/arm_arch.h/aarch64-common.h/g' $@.tmp.S
+ aarch64-linux-gnu-gcc -D__ARM_MAX_ARCH__=8 -Ilib/accelerated/aarch64 -Wa,--noexecstack -E $@.tmp.S -o $@.tmp.s
+ cat $<.license $@.tmp.s > $@
+ rm -f $@.tmp.S $@.tmp.s $@.tmp
+lib/accelerated/aarch64/coff/%.s: devel/perlasm/%.pl .submodule.stamp
+ @true