aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-01-13 08:33:31 +0100
committerJan Beulich <jbeulich@suse.com>2012-01-13 08:33:31 +0100
commit1e583ac49a485131b93537ce2070d69279f0afec (patch)
tree0e1e3b3f80e506790ef949707d5b2e23c0e60600 /xen/Rules.mk
parentbf86c81a81f56bbdb9320bf6025b336fe5f60a91 (diff)
downloadxen-1e583ac49a485131b93537ce2070d69279f0afec.tar.gz
xen-1e583ac49a485131b93537ce2070d69279f0afec.tar.bz2
xen-1e583ac49a485131b93537ce2070d69279f0afec.zip
force inclusion of xen/config.h through compiler option
As we expect all source files to include the header as the first thing anyway, stop doing this by repeating the inclusion in each and every source file (and in many headers), but rather enforce this uniformly through the compiler command line. As a first cleanup step, remove the explicit inclusion from all common headers. Further cleanup can be done incrementally. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 59c7dd7577..37c6a79987 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -41,7 +41,7 @@ ALL_OBJS-y += $(BASEDIR)/xsm/built_in.o
ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
ALL_OBJS-$(x86) += $(BASEDIR)/crypto/built_in.o
-CFLAGS-y += -g -D__XEN__
+CFLAGS-y += -g -D__XEN__ --include $(BASEDIR)/include/xen/config.h
CFLAGS-$(XSM_ENABLE) += -DXSM_ENABLE
CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE -DXSM_MAGIC=0xf97cff8c
CFLAGS-$(FLASK_ENABLE) += -DFLASK_DEVELOP -DFLASK_BOOTPARAM -DFLASK_AVC_STATS
@@ -59,7 +59,7 @@ ifneq ($(max_phys_irqs),)
CFLAGS-y += -DMAX_PHYS_IRQS=$(max_phys_irqs)
endif
-AFLAGS-y += -D__ASSEMBLY__
+AFLAGS-y += -D__ASSEMBLY__ --include $(BASEDIR)/include/xen/config.h
# Clang's built-in assembler can't handle .code16/.code32/.code64 yet
AFLAGS-$(clang) += -no-integrated-as