diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-05-01 16:36:58 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-05-01 16:36:58 +0100 |
commit | 90b8c9d5b8c721ee25b9d2f50482261a63290fd3 (patch) | |
tree | df5679702b199c12139bdcaaaf1358dbaa48b207 /xen/Makefile | |
parent | b404bb0ba9fb9e0e2efc6ca43ecbcd3ce720db69 (diff) | |
download | xen-90b8c9d5b8c721ee25b9d2f50482261a63290fd3.tar.gz xen-90b8c9d5b8c721ee25b9d2f50482261a63290fd3.tar.bz2 xen-90b8c9d5b8c721ee25b9d2f50482261a63290fd3.zip |
Allow .config to override the "cc_compile_by" and "cc_compile_domain" settings.
Signed-off-by: David Edmondson <dme@sun.com>
Diffstat (limited to 'xen/Makefile')
-rw-r--r-- | xen/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xen/Makefile b/xen/Makefile index 092089fd55..ee2e75ab70 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -6,6 +6,9 @@ export XEN_EXTRAVERSION ?= -unstable$(XEN_VENDORVERSION) export XEN_FULLVERSION = $(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION) -include xen-version +export XEN_WHOAMI ?= $(USER) +export XEN_DOMAIN ?= $(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown])) + export BASEDIR := $(CURDIR) .PHONY: default @@ -81,8 +84,8 @@ delete-unfresh-files: include/xen/compile.h: include/xen/compile.h.in .banner @sed -e 's/@@date@@/$(shell LC_ALL=C date)/g' \ -e 's/@@time@@/$(shell LC_ALL=C date +%T)/g' \ - -e 's/@@whoami@@/$(USER)/g' \ - -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ + -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \ + -e 's/@@domain@@/$(XEN_DOMAIN)/g' \ -e 's/@@hostname@@/$(shell hostname)/g' \ -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | grep -i "gcc.*version")!g' \ -e 's/@@version@@/$(XEN_VERSION)/g' \ |