- Make sure NEON is available when building with intrinsics --- build/make/Makefile.orig 2024-01-09 21:12:22 UTC +++ build/make/Makefile @@ -151,6 +151,28 @@ $(BUILD_PFX)%_sve.c.o: CFLAGS += -march=armv8.2-a+dotp $(BUILD_PFX)%_sve.c.d: CFLAGS += -march=armv8.2-a+dotprod+i8mm+sve $(BUILD_PFX)%_sve.c.o: CFLAGS += -march=armv8.2-a+dotprod+i8mm+sve +# ARM +ifeq ($(TGT_ISA),armv6) +ifeq (,$(filter -march=%,$(CFLAGS))) +$(BUILD_PFX)%_neon.c.d: CFLAGS += -march=armv7-a +$(BUILD_PFX)%_neon.c.o: CFLAGS += -march=armv7-a +$(BUILD_PFX)%_neon.asm.S.d: ASFLAGS += -march=armv7-a +$(BUILD_PFX)%_neon.asm.S.o: ASFLAGS += -march=armv7-a +$(BUILD_PFX)%_neon_asm.asm.S.d: ASFLAGS += -march=armv7-a +$(BUILD_PFX)%_neon_asm.asm.S.o: ASFLAGS += -march=armv7-a +endif +$(BUILD_PFX)%_neon.asm.S.d: ASFLAGS += -meabi=5 +$(BUILD_PFX)%_neon.asm.S.o: ASFLAGS += -meabi=5 +$(BUILD_PFX)%_neon_asm.asm.S.d: ASFLAGS += -meabi=5 +$(BUILD_PFX)%_neon_asm.asm.S.o: ASFLAGS += -meabi=5 +endif +ifneq (,$(filter arm%,$(TGT_ISA))) +$(BUILD_PFX)%_neon.asm.S.d: ASFLAGS += -mfpu=neon +$(BUILD_PFX)%_neon.asm.S.o: ASFLAGS += -mfpu=neon +$(BUILD_PFX)%_neon_asm.asm.S.d: ASFLAGS += -mfpu=neon +$(BUILD_PFX)%_neon_asm.asm.S.o: ASFLAGS += -mfpu=neon +endif + # POWER $(BUILD_PFX)%_vsx.c.d: CFLAGS += -maltivec -mvsx $(BUILD_PFX)%_vsx.c.o: CFLAGS += -maltivec -mvsx @@ -299,8 +321,8 @@ $(DIST_DIR)/$(1): $(2) define install_map_template $(DIST_DIR)/$(1): $(2) $(if $(quiet),@echo " [INSTALL] $$@") - $(qexec)mkdir -p $$(dir $$@) - $(qexec)cp -p $$< $$@ + $(qexec)install -d $$(dir $$@) + $(qexec)install -p $$< $$(dir $$@) endef define archive_template