Arnout Vandecappelle (Essensium/Mind) | ebcfa98 | 2012-11-12 10:08:28 +0000 | [diff] [blame] | 1 | # |
| 2 | # Makefile.legacy - support for backward compatibility |
| 3 | # |
| 4 | # This file contains placeholders to detect backward-compatibility problems. |
| 5 | # When a buildroot "API" feature is being deprecated, a rule should be added |
| 6 | # here that issues an error when the old feature is used. |
| 7 | # |
| 8 | # This file is not included if BR2_DEPRECATED is selected, so it is possible |
| 9 | # to bypass the errors (although that's usually a bad idea). |
| 10 | |
| 11 | ifeq ($(BR2_LEGACY),y) |
| 12 | $(error "You have legacy configuration in your .config! Please check your configuration.") |
| 13 | endif |
Arnout Vandecappelle (Essensium/Mind) | cc1cd3b | 2012-11-12 10:08:29 +0000 | [diff] [blame] | 14 | |
| 15 | # |
Arnout Vandecappelle | 6768021 | 2014-02-04 16:18:51 +0100 | [diff] [blame] | 16 | # Legacy options from 2014.02 |
| 17 | # |
| 18 | |
| 19 | # The BUILDROOT_DL_DIR environment variable was renamed by BR2_DL_DIR. We |
| 20 | # want to detect someone using the old variable, _except_ if also the new |
| 21 | # variable was set. By the time we get here, however, we no longer have |
| 22 | # access to the BR2_DL_DIR environment variable (because it has been overridden |
| 23 | # by the .config inclusion). However, the environment variable (if defined) was |
| 24 | # saved in DL_DIR, so we can use that. |
| 25 | ifneq ($(BUILDROOT_DL_DIR),) |
| 26 | ifneq ($(BUILDROOT_DL_DIR),$(DL_DIR)) |
| 27 | $(error "The BUILDROOT_DL_DIR environment variable was renamed to BR2_DL_DIR.") |
| 28 | endif |
| 29 | endif |
| 30 | |
Arnout Vandecappelle | af97c94 | 2014-02-10 22:48:55 +0100 | [diff] [blame] | 31 | # If a script is using the deprecated BUILDROOT_CONFIG, make sure it fails. |
| 32 | # Add some directories in front just in case someone used dirname on it. |
| 33 | BUILDROOT_CONFIG_FAKE = /tmp/deprecated/The-BUILDROOT_CONFIG-environment-variable-was-renamed-to-BR2_CONFIG |
| 34 | |
Arnout Vandecappelle | 4113b3c | 2014-02-04 16:18:52 +0100 | [diff] [blame] | 35 | # Similar to above for BUILDROOT_CONFIG, but here we have no .config equivalent. |
| 36 | ifneq ($(BUILDROOT_CONFIG),) |
| 37 | ifneq ($(BUILDROOT_CONFIG),$(BR2_CONFIG)) |
Arnout Vandecappelle | af97c94 | 2014-02-10 22:48:55 +0100 | [diff] [blame] | 38 | ifneq ($(BUILDROOT_CONFIG),$(BUILDROOT_CONFIG_FAKE)) |
Arnout Vandecappelle | 4113b3c | 2014-02-04 16:18:52 +0100 | [diff] [blame] | 39 | $(error "The BUILDROOT_CONFIG environment variable was renamed to BR2_CONFIG.") |
| 40 | endif |
| 41 | endif |
Arnout Vandecappelle | af97c94 | 2014-02-10 22:48:55 +0100 | [diff] [blame] | 42 | endif |
Arnout Vandecappelle | 4113b3c | 2014-02-04 16:18:52 +0100 | [diff] [blame] | 43 | |
Arnout Vandecappelle | af97c94 | 2014-02-10 22:48:55 +0100 | [diff] [blame] | 44 | BUILDROOT_CONFIG = $(BUILDROOT_CONFIG_FAKE) |
Arnout Vandecappelle | 4113b3c | 2014-02-04 16:18:52 +0100 | [diff] [blame] | 45 | export BUILDROOT_CONFIG |
| 46 | |
Arnout Vandecappelle | 6768021 | 2014-02-04 16:18:51 +0100 | [diff] [blame] | 47 | # |
Arnout Vandecappelle (Essensium/Mind) | be2460c | 2012-11-12 10:08:30 +0000 | [diff] [blame] | 48 | # Legacy options from 2012.08 |
| 49 | # |
| 50 | |
| 51 | host-pkg-config: |
| 52 | @$(call MESSAGE,host-pkg-config is replaced by host-pkgconf) |
| 53 | @$(call MESSAGE,please update your .mk files) |
| 54 | @false |
| 55 | .PHONY: host-pkg-config |
| 56 | |
| 57 | # |
Arnout Vandecappelle (Essensium/Mind) | cc1cd3b | 2012-11-12 10:08:29 +0000 | [diff] [blame] | 58 | # Legacy options from 2012.05 |
| 59 | # |
| 60 | GENTARGETS = $$(error The GENTARGETS macro no longer exists; use $$$$(eval $$$$(generic-package)) or $$$$(eval $$$$(host-generic-package))) |
| 61 | AUTOTARGETS = $$(error The AUTOTARGETS macro no longer exists; use $$$$(eval $$$$(autotools-package)) or $$$$(eval $$$$(host-autotools-package))) |
| 62 | CMAKETARGETS = $$(error The CMAKETARGETS macro no longer exists; use $$$$(eval $$$$(cmake-package)) or $$$$(eval $$$$(host-cmake-package))) |