summaryrefslogtreecommitdiffstats
path: root/package/pkg-generic.mk
diff options
context:
space:
mode:
authorMichal Sojka <sojka@merica.cz>2014-10-21 10:42:54 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-10-25 01:58:12 +0200
commit202bd70dfb7fbf2eb92bedb68e571426e32c65ae (patch)
treecff7e3cd40bf7cf02d92dda233ca03e6ce1add7a /package/pkg-generic.mk
parentacc76a6ef9fd204cc79a3d63e90c8b43163bdeab (diff)
downloadbuildroot-202bd70dfb7fbf2eb92bedb68e571426e32c65ae.tar.gz
buildroot-202bd70dfb7fbf2eb92bedb68e571426e32c65ae.zip
Complain loudly if BR2_GLOBAL_PATCH_DIR does not exit
If the BR2_GLOBAL_PATCH_DIR is misspelled in the .config or if somebody renamed the existing directory with patches, buildroot happily builds everything but without the patches. As this can lead to surprising results, it is better to fail and give a user a message that BR2_GLOBAL_PATCH_DIR is wrongly configured. Signed-off-by: Michal Sojka <sojka@merica.cz> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/pkg-generic.mk')
-rw-r--r--package/pkg-generic.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 7a6d5e67b7..9643a30e24 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -162,6 +162,11 @@ $(BUILD_DIR)/%/.stamp_patched:
$(Q)touch $@
@$(call step_end,patch)
+# Check that all directories specified in BR2_GLOBAL_PATCH_DIR exist.
+$(foreach dir,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR)),\
+ $(if $(wildcard $(dir)),,\
+ $(error BR2_GLOBAL_PATCH_DIR contains nonexistent directory $(dir))))
+
# Configure
$(BUILD_DIR)/%/.stamp_configured:
@$(call step_start,configure)
OpenPOWER on IntegriCloud