package: move autoreconfigure step to pre configure hook
authorLionel Landwerlin <llandwerlin@gmail.com>
Thu, 4 Nov 2010 02:50:24 +0000 (03:50 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 5 Nov 2010 09:03:29 +0000 (10:03 +0100)
[Peter: update documentation to match]
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
docs/buildroot.html
package/Makefile.autotools.in
package/Makefile.package.in

index 00808ffc4030ef3635f79a7b172c5927481e6b82..a94e7befa3488edb0d21e7b457204f77e2895346 100644 (file)
@@ -1123,6 +1123,7 @@ endef
 
     <ul>
       <li><code>LIBFOO_POST_PATCH_HOOKS</code></li>
+      <li><code>LIBFOO_PRE_CONFIGURE_HOOKS</code></li>
       <li><code>LIBFOO_POST_CONFIGURE_HOOKS</code></li>
       <li><code>LIBFOO_POST_BUILD_HOOKS</code></li>
       <li><code>LIBFOO_POST_INSTALL_HOOKS</code> (for host packages only)</li>
index b24c2b1af9c77bce23d5bee91af42e0c97a81eb9..3e213693793c80d5eee33dc17e606f65daeb11ba 100644 (file)
@@ -177,7 +177,7 @@ define AUTORECONF_HOOK
 endef
 
 ifeq ($$($(2)_AUTORECONF),YES)
-$(2)_POST_PATCH_HOOKS += AUTORECONF_HOOK
+$(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK
 $(2)_DEPENDENCIES += host-automake host-autoconf host-libtool
 endif
 
index 377df65c0b08d085134147f1dc0b0553fc7420c6..816a01323dbeed895b66698d0315ec46195188d4 100644 (file)
@@ -261,6 +261,7 @@ $(BUILD_DIR)/%/.stamp_patched:
 
 # Configure
 $(BUILD_DIR)/%/.stamp_configured:
+       $(foreach hook,$($(PKG)_PRE_CONFIGURE_HOOKS),$(call $(hook))$(sep))
        @$(call MESSAGE,"Configuring")
        $($(PKG)_CONFIGURE_CMDS)
        $(foreach hook,$($(PKG)_POST_CONFIGURE_HOOKS),$(call $(hook))$(sep))
@@ -410,6 +411,7 @@ $(2)_TARGET_DIRCLEAN =              $$($(2)_DIR)/.stamp_dircleaned
 # post-steps hooks
 $(2)_POST_EXTRACT_HOOKS         ?=
 $(2)_POST_PATCH_HOOKS           ?=
+$(2)_PRE_CONFIGURE_HOOKS        ?=
 $(2)_POST_CONFIGURE_HOOKS       ?=
 $(2)_POST_BUILD_HOOKS           ?=
 $(2)_POST_INSTALL_HOOKS         ?=