mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
build: add headers path to CFLAGS once for all archs
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>
This commit is contained in:
1 parent
e3ef0917bb
commit
109980738e
4 files changed
+3
-7
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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)
|
||||
|
||||