aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2017-07-18 19:25:31 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-22 21:51:17 +0200
commit2de968f03a76c3feb5c7693cfc05a6342fcc12ae (patch)
tree4fc479a0519443fec5139db1fd5909a4bc359e6b /Makefile
parent92d4b3e8ddaf54c7aa45c0b75293304fd740a20a (diff)
downloadbuildroot-2de968f03a76c3feb5c7693cfc05a6342fcc12ae.tar.gz
buildroot-2de968f03a76c3feb5c7693cfc05a6342fcc12ae.tar.bz2
system: provide package-wide system variables and macros
Some macros, soon some variables, currently defined in the skeleton are going to be used by other packages. Some of those variables will be used as Makefile conditions (e.g. in ifeq() conditions), so they *must* be defined before being used. Since the skeleton package, starting with an 's', is included quite late, those variables would not be available to most packages. Offload the existing macros into the new system/system.mk file, that is included early, before any package is. Rename the macros to appropriate names. Future commits will add new macros and variables in that file. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fc86a7071b..7cab6fa7ff 100644
--- a/Makefile
+++ b/Makefile
@@ -479,6 +479,7 @@ all: world
# may rely on it.
include Makefile.legacy
+include system/system.mk
include package/Makefile.in
# arch/arch.mk.* must be after package/Makefile.in because it may need to
# complement variables defined therein, like BR_NO_CHECK_HASH_FOR.