summaryrefslogtreecommitdiffstats
path: root/package/pkg-generic.mk
diff options
context:
space:
mode:
authorDanomi Manchego <danomimanchego123@gmail.com>2014-09-14 21:31:11 -0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-09-21 22:57:30 +0200
commitae69eadaa7b98fb73cbc5dcf8454e54a5189dd9b (patch)
treed5a7dfd8a9e1c6917e71d63fa6862cc173e0d3f0 /package/pkg-generic.mk
parenta9a5a8159937cbc5e472cbd0b144d596b85a3386 (diff)
pkg-infra: put optional step_user def and assignment in one block
Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998 at free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-generic.mk')
-rw-r--r--package/pkg-generic.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index d04fd36db..4b6d818bf 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