Ver Fonte

use autoreconf hook instead of manual call

SVN-Revision: 32837
John Crispin há 13 anos atrás
pai
commit
584bc13d38
2 ficheiros alterados com 3 adições e 1 exclusões
  1. 0 1
      include/package-version-override.mk
  2. 3 0
      include/package.mk

+ 0 - 1
include/package-version-override.mk

@@ -62,7 +62,6 @@ define prepare_custom_source_directory
 		rm -Rf $(PKG_BUILD_DIR); \
 		echo "Preparing Custom Source Directory link: $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR)"; \
 		ln -snf $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) $(PKG_BUILD_DIR); \
-		[ -x "$(PKG_BUILD_DIR)/autoreconf" ] && (cd $(PKG_BUILD_DIR); autoreconf -i;) \
 	else \
 		echo "Custom Source Directory $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) is invalid"; \
 		false; \

+ 3 - 0
include/package.mk

@@ -76,6 +76,9 @@ ifeq ($(CONFIG_$(PKG_NAME)_USE_CUSTOM_SOURCE_DIR),y)
 PKG_SOURCE_URL:=
 # add hook to install a link to customer source path of dedicated package
 Hooks/Prepare/Pre += prepare_custom_source_directory
+ifeq ($(filter autoreconf,$(Hooks/Configure/Pre)),)
+  Hooks/Configure/Pre += autoreconf_target
+endif
 # define empty default action
 define Build/Prepare/Default
 	@: