From: Danomi Manchego Date: Mon, 15 Sep 2014 01:31:11 +0000 (-0400) Subject: pkg-infra: put optional step_user def and assignment in one block X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae69eadaa7b98fb73cbc5dcf8454e54a5189dd9b;p=buildroot.git pkg-infra: put optional step_user def and assignment in one block Signed-off-by: Danomi Manchego Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index d04fd36db9..4b6d818bf9 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