[Buildroot] [PATCH 1/2] pkg-infra: put optional step_user def and assignment in one block

Danomi Manchego danomimanchego123 at gmail.com
Sat Sep 13 03:14:02 UTC 2014


Signed-off-by: Danomi Manchego <danomimanchego123 at gmail.com>

---

Like the manual says in 'The .mk file' section ...

Signed-off-by: Danomi Manchego <danomimanchego123 at gmail.com>
---
 package/pkg-generic.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index d04fd36..4b6d818 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -56,11 +56,11 @@ endef
 GLOBAL_INSTRUMENTATION_HOOKS += step_time
 
 # User-supplied script
+ifneq ($(BR2_INSTRUMENTATION_SCRIPTS),)
 define step_user
 	@$(foreach user_hook, $(BR2_INSTRUMENTATION_SCRIPTS), \
 		$(EXTRA_ENV) $(user_hook) "$(1)" "$(2)" "$(3)"$(sep))
 endef
-ifneq ($(BR2_INSTRUMENTATION_SCRIPTS),)
 GLOBAL_INSTRUMENTATION_HOOKS += step_user
 endif
 
-- 
1.9.1



More information about the buildroot mailing list