]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
build: add headers path to CFLAGS once for all archs
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 Feb 2022 10:06:46 +0000 (11:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Feb 2022 10:06:46 +0000 (11:06 +0100)
This just remove duplication.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Makefile
xen/arch/arm/arch.mk
xen/arch/riscv/arch.mk
xen/arch/x86/arch.mk

index 0fb1e737f2b959aa30974fff9316215d4598579f..2cfaa49fe35fd2f7d3b6df098233b75539ed8762 100644 (file)
@@ -312,6 +312,9 @@ CFLAGS += -flto
 LDFLAGS-$(CONFIG_CC_IS_CLANG) += -plugin LLVMgold.so
 endif
 
+CFLAGS += -I$(srctree)/include
+CFLAGS += -I$(srctree)/arch/$(TARGET_ARCH)/include
+
 # Note that link order matters!
 ALL_OBJS-y                := common/built_in.o
 ALL_OBJS-y                += drivers/built_in.o
index 4e3f7014305e3ce1f2399456521c88a09670c98f..094b67072304767cfa8ace0f66604b031b5fc622 100644 (file)
@@ -1,9 +1,6 @@
 ########################################
 # arm-specific definitions
 
-CFLAGS += -I$(srctree)/include
-CFLAGS += -I$(srctree)/arch/$(TARGET_ARCH)/include
-
 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 $(call cc-option-add,CFLAGS,CC,-Wnested-externs)
 
index 694ba053ceabb40dee0a4b344a9476938a411192..ae8fe9dec730e50b0c62e1246f5eb0d5ffb22037 100644 (file)
@@ -11,5 +11,3 @@ riscv-march-$(CONFIG_RISCV_ISA_C)       := $(riscv-march-y)c
 # -mcmodel=medlow would force Xen into the lower half.
 
 CFLAGS += -march=$(riscv-march-y) -mstrict-align -mcmodel=medany
-CFLAGS += -I$(srctree)/include
-CFLAGS += -I$(srctree)/arch/$(TARGET_ARCH)/include
index d6ae4cc2f5552df7cf31f1ad97b4caa82d101033..f6fc852b57676d997260db6a66dec916e59ef309 100644 (file)
@@ -3,8 +3,6 @@
 
 export XEN_IMG_OFFSET := 0x200000
 
-CFLAGS += -I$(srctree)/include
-CFLAGS += -I$(srctree)/arch/$(TARGET_ARCH)/include
 CFLAGS += -I$(srctree)/arch/x86/include/asm/mach-generic
 CFLAGS += -I$(srctree)/arch/x86/include/asm/mach-default
 CFLAGS += -DXEN_IMG_OFFSET=$(XEN_IMG_OFFSET)