diff options
author | Arnout Vandecappelle <arnout@mind.be> | 2014-02-04 16:18:51 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-02-09 11:02:42 +0100 |
commit | 6768021c930fe5f7753f274436506792f87ce4da (patch) | |
tree | 67ceb57f888c5432b4f5dfd7a9f84c5e6f80f02c /Makefile.legacy | |
parent | 674fd4f83464a1449a0db8bb4e2584b7b6f6a051 (diff) |
infra: replace BUILDROOT_DL_DIR with BR2_DL_DIR.
To make the naming consistent (all user-visible options should be
prefixed BR2_).
An entry is added to Makefile.legacy to warn users who have set
BUILDROOT_DL_DIR but not BR2_DL_DIR.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'Makefile.legacy')
-rw-r--r-- | Makefile.legacy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.legacy b/Makefile.legacy index e0b7ec29c..4954398c5 100644 --- a/Makefile.legacy +++ b/Makefile.legacy @@ -13,6 +13,22 @@ $(error "You have legacy configuration in your .config! Please check your config endif # +# Legacy options from 2014.02 +# + +# The BUILDROOT_DL_DIR environment variable was renamed by BR2_DL_DIR. We +# want to detect someone using the old variable, _except_ if also the new +# variable was set. By the time we get here, however, we no longer have +# access to the BR2_DL_DIR environment variable (because it has been overridden +# by the .config inclusion). However, the environment variable (if defined) was +# saved in DL_DIR, so we can use that. +ifneq ($(BUILDROOT_DL_DIR),) +ifneq ($(BUILDROOT_DL_DIR),$(DL_DIR)) +$(error "The BUILDROOT_DL_DIR environment variable was renamed to BR2_DL_DIR.") +endif +endif + +# # Legacy options from 2012.08 # |