* [Buildroot] [PATCH 1/2] package: Add PRE_BUILD_HOOKS
@ 2014-02-03 1:18 Maxime Hadjinlian
2014-02-03 1:18 ` [Buildroot] [PATCH 2/2] libenca: Move build host tool to PRE_BUILD_HOOKS Maxime Hadjinlian
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Hadjinlian @ 2014-02-03 1:18 UTC (permalink / raw)
To: buildroot
This hooks, even though it is preceded by the POST_CONFIGURE_HOOKS,
this hooks is semantically different and allow for a nice separation.
While adding libenca, this step was not present and I needed to build a
tool which generates a header files for the build.
And I had to add it to the POST_CONFIGURE_HOOKS which make little sense
since it has nothing to do with the configure step.
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
docs/manual/adding-packages-hooks.txt | 1 +
package/pkg-generic.mk | 1 +
2 files changed, 2 insertions(+)
diff --git a/docs/manual/adding-packages-hooks.txt b/docs/manual/adding-packages-hooks.txt
index d96c991..ec709ab 100644
--- a/docs/manual/adding-packages-hooks.txt
+++ b/docs/manual/adding-packages-hooks.txt
@@ -21,6 +21,7 @@ The following hook points are available:
* +LIBFOO_POST_PATCH_HOOKS+
* +LIBFOO_PRE_CONFIGURE_HOOKS+
* +LIBFOO_POST_CONFIGURE_HOOKS+
+* +LIBFOO_PRE_BUILD_HOOKS+
* +LIBFOO_POST_BUILD_HOOKS+
* +LIBFOO_POST_INSTALL_HOOKS+ (for host packages only)
* +LIBFOO_POST_INSTALL_STAGING_HOOKS+ (for target packages only)
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 1b99c2a..b6ed122 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -172,6 +172,7 @@ $(BUILD_DIR)/%/.stamp_configured:
# Build
$(BUILD_DIR)/%/.stamp_built::
@$(call step_start,build)
+ $(foreach hook,$($(PKG)_PRE_BUILD_HOOKS),$(call $(hook))$(sep))
@$(call MESSAGE,"Building")
$($(PKG)_BUILD_CMDS)
$(foreach hook,$($(PKG)_POST_BUILD_HOOKS),$(call $(hook))$(sep))
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] libenca: Move build host tool to PRE_BUILD_HOOKS
2014-02-03 1:18 [Buildroot] [PATCH 1/2] package: Add PRE_BUILD_HOOKS Maxime Hadjinlian
@ 2014-02-03 1:18 ` Maxime Hadjinlian
2014-03-07 21:55 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Hadjinlian @ 2014-02-03 1:18 UTC (permalink / raw)
To: buildroot
The make_hash host tool, should be built during a PRE_BUILD_HOOKS and
not a POST_CONFIGURE_HOOKS.
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
package/libenca/libenca.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libenca/libenca.mk b/package/libenca/libenca.mk
index d998c66..66fcfaa 100644
--- a/package/libenca/libenca.mk
+++ b/package/libenca/libenca.mk
@@ -21,6 +21,6 @@ define LIBENCA_MAKE_HOST_TOOL
$(MAKE) -C $(@D)/tools $(HOST_CONFIGURE_OPTS) make_hash
endef
-LIBENCA_POST_CONFIGURE_HOOKS += LIBENCA_MAKE_HOST_TOOL
+LIBENCA_PRE_BUILD_HOOKS += LIBENCA_MAKE_HOST_TOOL
$(eval $(autotools-package))
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] libenca: Move build host tool to PRE_BUILD_HOOKS
2014-02-03 1:18 ` [Buildroot] [PATCH 2/2] libenca: Move build host tool to PRE_BUILD_HOOKS Maxime Hadjinlian
@ 2014-03-07 21:55 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-03-07 21:55 UTC (permalink / raw)
To: buildroot
Dear Maxime Hadjinlian,
On Mon, 3 Feb 2014 02:18:32 +0100, Maxime Hadjinlian wrote:
> The make_hash host tool, should be built during a PRE_BUILD_HOOKS and
> not a POST_CONFIGURE_HOOKS.
>
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
> ---
> package/libenca/libenca.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-07 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 1:18 [Buildroot] [PATCH 1/2] package: Add PRE_BUILD_HOOKS Maxime Hadjinlian
2014-02-03 1:18 ` [Buildroot] [PATCH 2/2] libenca: Move build host tool to PRE_BUILD_HOOKS Maxime Hadjinlian
2014-03-07 21:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox