]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Config: Add macro to update automake scripts on aarch64
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Apr 2017 13:56:12 +0000 (15:56 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 31 May 2018 10:56:28 +0000 (11:56 +0100)
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>
lfs/Config

index cf70f81f91e722f96ca7383bf1cec99651c6fbf7..1cb9e2db4690a50c2d2fcd4c8c15aa95059d4534 100644 (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)