1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# Makefile.legacy - support for backward compatibility 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun# This file contains placeholders to detect backward-compatibility problems. 5*4882a593Smuzhiyun# When a buildroot "API" feature is being deprecated, a rule should be added 6*4882a593Smuzhiyun# here that issues an error when the old feature is used. 7*4882a593Smuzhiyun 8*4882a593Smuzhiyunifeq ($(BR2_LEGACY),y) 9*4882a593Smuzhiyun$(error "You have legacy configuration in your .config! Please check your configuration.") 10*4882a593Smuzhiyunendif 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun# 13*4882a593Smuzhiyun# Legacy options from 2014.02 14*4882a593Smuzhiyun# 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# The BUILDROOT_DL_DIR environment variable was renamed by BR2_DL_DIR. We 17*4882a593Smuzhiyun# want to detect someone using the old variable, _except_ if also the new 18*4882a593Smuzhiyun# variable was set. By the time we get here, however, we no longer have 19*4882a593Smuzhiyun# access to the BR2_DL_DIR environment variable (because it has been overridden 20*4882a593Smuzhiyun# by the .config inclusion). However, the environment variable (if defined) was 21*4882a593Smuzhiyun# saved in DL_DIR, so we can use that. 22*4882a593Smuzhiyunifneq ($(BUILDROOT_DL_DIR),) 23*4882a593Smuzhiyunifneq ($(BUILDROOT_DL_DIR),$(DL_DIR)) 24*4882a593Smuzhiyun$(error "The BUILDROOT_DL_DIR environment variable was renamed to BR2_DL_DIR.") 25*4882a593Smuzhiyunendif 26*4882a593Smuzhiyunendif 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun# If a script is using the deprecated BUILDROOT_CONFIG, make sure it fails. 29*4882a593Smuzhiyun# Add some directories in front just in case someone used dirname on it. 30*4882a593SmuzhiyunBUILDROOT_CONFIG_FAKE = /tmp/deprecated/The-BUILDROOT_CONFIG-environment-variable-was-renamed-to-BR2_CONFIG 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun# Similar to above for BUILDROOT_CONFIG, but here we have no .config equivalent. 33*4882a593Smuzhiyunifneq ($(BUILDROOT_CONFIG),) 34*4882a593Smuzhiyunifneq ($(BUILDROOT_CONFIG),$(BR2_CONFIG)) 35*4882a593Smuzhiyunifneq ($(BUILDROOT_CONFIG),$(BUILDROOT_CONFIG_FAKE)) 36*4882a593Smuzhiyun$(error "The BUILDROOT_CONFIG environment variable was renamed to BR2_CONFIG.") 37*4882a593Smuzhiyunendif 38*4882a593Smuzhiyunendif 39*4882a593Smuzhiyunendif 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunBUILDROOT_CONFIG = $(BUILDROOT_CONFIG_FAKE) 42*4882a593Smuzhiyunexport BUILDROOT_CONFIG 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun# 45*4882a593Smuzhiyun# Legacy options from 2012.08 46*4882a593Smuzhiyun# 47*4882a593Smuzhiyun 48*4882a593Smuzhiyunhost-pkg-config: 49*4882a593Smuzhiyun @$(call MESSAGE,host-pkg-config is replaced by host-pkgconf) 50*4882a593Smuzhiyun @$(call MESSAGE,please update your .mk files) 51*4882a593Smuzhiyun @false 52*4882a593Smuzhiyun.PHONY: host-pkg-config 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun# 55*4882a593Smuzhiyun# Legacy options from 2012.05 56*4882a593Smuzhiyun# 57*4882a593SmuzhiyunGENTARGETS = $$(error The GENTARGETS macro no longer exists; use $$$$(eval $$$$(generic-package)) or $$$$(eval $$$$(host-generic-package))) 58*4882a593SmuzhiyunAUTOTARGETS = $$(error The AUTOTARGETS macro no longer exists; use $$$$(eval $$$$(autotools-package)) or $$$$(eval $$$$(host-autotools-package))) 59*4882a593SmuzhiyunCMAKETARGETS = $$(error The CMAKETARGETS macro no longer exists; use $$$$(eval $$$$(cmake-package)) or $$$$(eval $$$$(host-cmake-package))) 60