From: Andrew Cooper Date: Wed, 20 Jul 2016 17:05:45 +0000 (+0100) Subject: Export ROOT, DESTDIR and PREFIX to all makefiles X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ac013df06291acae1558cc741f758fa412bc6e21;p=xtf.git Export ROOT, DESTDIR and PREFIX to all makefiles Rather than regenerating them from defaults each time. Drop the MAKEFLAGS lines, as MAKEFLAGS are automatically inherited by sub-makes. Signed-off-by: Andrew Cooper --- diff --git a/Makefile b/Makefile index 0478221..e21605d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ MAKEFLAGS += -r ROOT := $(abspath $(CURDIR)) +export ROOT + DESTDIR ?= $(ROOT)/dist PREFIX ?= $(ROOT) +export DESTDIR PREFIX # Programs used CC ?= $(CROSS_COMPILE)gcc diff --git a/build/common.mk b/build/common.mk index 9f97003..52721d8 100644 --- a/build/common.mk +++ b/build/common.mk @@ -1,6 +1,3 @@ -DESTDIR ?= $(ROOT)/dist -PREFIX ?= $(ROOT) - ALL_CATEGORIES := special functional xsa utility ALL_ENVIRONMENTS := pv64 pv32pae hvm64 hvm32pae hvm32pse hvm32 diff --git a/make-new-test.sh b/make-new-test.sh index b2874df..eb0e26b 100755 --- a/make-new-test.sh +++ b/make-new-test.sh @@ -48,9 +48,6 @@ fi echo "Writing default tests/$NAME/Makefile" { cat <