[Buildroot] [PATCH 2/4] minicom: add pre-configure hook to call autogen.sh
Giulio Benetti
giulio.benetti at micronovasrl.com
Wed Aug 1 12:57:19 UTC 2018
Using latest minicom git commit need to call autogen.sh instead of
relying on Buildroot MINICOM_AUTORECONF = YES
Add MINICOM_RUN_AUTOGEN to MINICOM_PRE_CONFIGURE_HOOKS and dependencies
needed by autogen.sh like: host-automake, host-autoconf, host-libtool.
Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
---
package/minicom/minicom.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/package/minicom/minicom.mk b/package/minicom/minicom.mk
index 1a3426899f..91eb74c9ad 100644
--- a/package/minicom/minicom.mk
+++ b/package/minicom/minicom.mk
@@ -18,4 +18,13 @@ MINICOM_CONF_ENV = PKG_CONFIG=/bin/false
MINICOM_DEPENDENCIES = ncurses $(if $(BR2_ENABLE_LOCALE),,libiconv)
+# configure is missing and minicom is not compatible with our autoreconf
+# mechanism so we have to do it manually instead of using MINICOM_AUTORECONF = YES
+define MINICOM_RUN_AUTOGEN
+ cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
+endef
+MINICOM_PRE_CONFIGURE_HOOKS += MINICOM_RUN_AUTOGEN
+
+MINICOM_DEPENDENCIES += host-automake host-autoconf host-libtool
+
$(eval $(autotools-package))
--
2.17.1
More information about the buildroot
mailing list