]> xenbits.xensource.com Git - xen.git/commitdiff
build: remove TARGET_SUBARCH, a duplicate of ARCH
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 5 Jul 2023 06:27:51 +0000 (08:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 5 Jul 2023 06:27:51 +0000 (08:27 +0200)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile
xen/build.mk

index 96efe52ed80a4c89eefa460f66aea0e1a7a6aa52..79b9704e2413c7f7dd964ad30e264ceebd62d752 100644 (file)
@@ -234,7 +234,7 @@ include scripts/Kbuild.include
 # we need XEN_TARGET_ARCH to generate the proper config
 include $(XEN_ROOT)/Config.mk
 
-# Set ARCH/SUBARCH appropriately.
+# Set ARCH/SRCARCH appropriately.
 
 ARCH := $(XEN_TARGET_ARCH)
 SRCARCH := $(shell echo $(ARCH) | \
@@ -242,7 +242,6 @@ SRCARCH := $(shell echo $(ARCH) | \
         -e 's/riscv.*/riscv/g' -e 's/ppc.*/ppc/g')
 export ARCH SRCARCH
 
-export TARGET_SUBARCH  := $(XEN_TARGET_ARCH)
 export TARGET_ARCH     := $(shell echo $(XEN_TARGET_ARCH) | \
                             sed -e 's/x86.*/x86/' -e s'/arm\(32\|64\)/arm/g' \
                                 -e s'/riscv.*/riscv/g' -e s'/ppc.*/ppc/g')
index 30d74d4772dff06bf8a18540504b3c203fc867b0..7e33e710fd50403d401a801c65fbf697206901f9 100644 (file)
@@ -41,7 +41,7 @@ include/xen/compile.h: include/xen/compile.h.in .banner FORCE
 targets += include/xen/compile.h
 
 -include $(wildcard .asm-offsets.s.d)
-asm-offsets.s: arch/$(TARGET_ARCH)/$(TARGET_SUBARCH)/asm-offsets.c
+asm-offsets.s: arch/$(TARGET_ARCH)/$(ARCH)/asm-offsets.c
        $(CC) $(call cpp_flags,$(c_flags)) -S -g0 -o $@.new -MQ $@ $<
        $(call move-if-changed,$@.new,$@)