|
@@ -95,6 +95,21 @@ define check_host_rpath
|
|
|
endef
|
|
|
GLOBAL_INSTRUMENTATION_HOOKS += check_host_rpath
|
|
|
|
|
|
+define step_check_build_dir_one
|
|
|
+ if [ -d $(2) ]; then \
|
|
|
+ printf "%s: installs files in %s\n" $(1) $(2) >&2; \
|
|
|
+ exit 1; \
|
|
|
+ fi
|
|
|
+endef
|
|
|
+
|
|
|
+define step_check_build_dir
|
|
|
+ $(if $(filter install-staging,$(2)),\
|
|
|
+ $(if $(filter end,$(1)),$(call step_check_build_dir_one,$(3),$(STAGING_DIR)/$(O))))
|
|
|
+ $(if $(filter install-target,$(2)),\
|
|
|
+ $(if $(filter end,$(1)),$(call step_check_build_dir_one,$(3),$(TARGET_DIR)/$(O))))
|
|
|
+endef
|
|
|
+GLOBAL_INSTRUMENTATION_HOOKS += step_check_build_dir
|
|
|
+
|
|
|
# User-supplied script
|
|
|
ifneq ($(BR2_INSTRUMENTATION_SCRIPTS),)
|
|
|
define step_user
|