From 0d1df90f70d1768ebe54c29fba82df8bfc94bc80 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 24 Apr 2017 15:56:12 +0200 Subject: [PATCH] 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 --- lfs/Config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lfs/Config b/lfs/Config index cf70f81f91..1cb9e2db46 100644 --- a/lfs/Config +++ b/lfs/Config @@ -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) -- 2.39.2