Config: Add macro to update automake scripts on aarch64

Some packages ship an older version which does not recognise
aarch64. To overcome this, we just update these scripts when
necessary.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-04-24 15:56:12 +02:00
parent 902159ad8d
commit 0d1df90f70

View File

@@ -229,5 +229,13 @@ define INSTALL_INITSCRIPT
install -m 754 -v $(DIR_SRC)/src/initscripts/packages/$(1) /etc/rc.d/init.d/$(1)
endef
ifeq "$(BUILD_ARCH)" "aarch64"
define UPDATE_AUTOMAKE
for i in $$(find $(DIR_APP) -name config.guess -o -name config.sub); do \
cp -vf /usr/share/automake*/$$(basename $${i}) $${i}; \
done
endef
endif
test:
$(call INSTALL_INITSCRIPT,hostapd)