arm: clean up build variables
PATCH 1/1 arm: clean up build variables
This consolidates some of the different variables used for the ARM builds. This change was prompted by the Kconfig changes but looking back in time the CONFIG_ARM_{32,64} variables existed before Kconfig so this should just be a generic cleanup.
--- xen/arch/arm/Makefile | 8 ++++---- xen/arch/arm/Rules.mk | 18 ++++-------------- xen/drivers/passthrough/Makefile | 2 +- 3 files changed, 9 insertions(+), 19 deletions(-)
xen/arch/arm/Makefile +4 -4
@@ -1,7 +1,7 @@ -subdir-$(arm32) += arm32 -subdir-$(arm64) += arm64 +subdir-$(CONFIG_ARM_32) += arm32 +subdir-$(CONFIG_ARM_64) += arm64 subdir-y += platforms -subdir-$(arm64) += efi +subdir-$(CONFIG_ARM_64) += efi obj-$(EARLY_PRINTK) += early_printk.o obj-y += cpu.o
@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) $(TARGET): $(TARGET)-syms $(TARGET).axf $(OBJCOPY) -O binary -S $< $@ -ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64 ln -sf $(notdir $@) ../../$(notdir $@).efi endif
xen/arch/arm/Rules.mk +4 -14
@@ -11,22 +11,12 @@ CFLAGS += -I$(BASEDIR)/include $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) $(call cc-option-add,CFLAGS,CC,-Wnested-externs) -arm := y - -ifeq ($(TARGET_SUBARCH),arm32) # Prevent floating-point variables from creeping into Xen. -CFLAGS += -msoft-float -CFLAGS += -mcpu=cortex-a15 -arm32 := y -arm64 := n -endif +CFLAGS-$(CONFIG_ARM_32) += -msoft-float +CFLAGS-$(CONFIG_ARM_32) += -mcpu=cortex-a15 -ifeq ($(TARGET_SUBARCH),arm64) -CFLAGS += -mcpu=generic -CFLAGS += -mgeneral-regs-only # No fp registers etc -arm32 := n -arm64 := y -endif +CFLAGS-$(CONFIG_ARM_64) += -mcpu=generic +CFLAGS-$(CONFIG_ARM_64) += -mgeneral-regs-only # No fp registers etc ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n) CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE
xen/drivers/passthrough/Makefile +1 -1
@@ -1,7 +1,7 @@ subdir-$(CONFIG_X86) += vtd subdir-$(CONFIG_X86) += amd subdir-$(CONFIG_X86) += x86 -subdir-$(arm) += arm +subdir-$(CONFIG_ARM) += arm obj-y += iommu.o obj-$(CONFIG_X86) += io.o
Signature · 1 line
2.4.10
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 20.01.16 at 22:47, <[email protected]> wrote:
This consolidates some of the different variables used for the ARM builds. This change was prompted by the
Kconfigchanges but looking back in time the CONFIG_ARM_{32,64} variables existed beforeKconfigso this should just be a generic cleanup.
Quoted 6 lines
Signed-off-by Doug Goldstein <[email protected]>--- xen/arch/arm/Makefile | 8 ++++---- xen/arch/arm/Rules.mk | 18 ++++-------------- xen/drivers/passthrough/Makefile | 2 +- 3 files changed, 9 insertions(+), 19 deletions(-)
Trivial IOMMU part
Quoted 31 lines · Doug Goldstein
This consolidates some of the different variables used for the ARM builds. This change was prompted by the
Kconfigchanges but looking back in time the CONFIG_ARM_{32,64} variables existed beforeKconfigso this should just be a generic cleanup.Signed-off-by Doug Goldstein <[email protected]>---
xen/arch/arm/Makefile | 8 ++++---- xen/arch/arm/Rules.mk | 18 ++++-------------- xen/drivers/passthrough/Makefile | 2 +-3 files changed, 9 insertions(+), 19 deletions(-)xen/arch/arm/Makefile +2
-2@@ -1,7 +1,7 @@ -subdir-$(arm32) += arm32 -subdir-$(arm64) += arm64 +subdir-$(CONFIG_ARM_32) += arm32 +subdir-$(CONFIG_ARM_64) += arm64subdir-y += platforms
xen/arch/arm/Makefile +1
-1-subdir-$(arm64) += efi +subdir-$(CONFIG_ARM_64) += efi
obj-$(EARLY_PRINTK) += early_printk.o
obj-y += cpu.oxen/arch/arm/Makefile +0
-0@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
$(TARGET): $(TARGET)-syms $(TARGET).axf
$(OBJCOPY) -O binary -S $< $@
xen/arch/arm/Makefile ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) · line 55
Quoted 2 lines
xen/arch/arm/Makefile +1
-1-ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64
The old way looks to be the prevailing normal form. I don't especially object to the change but things ought to remain consistent.
For the rest:
FYI I'm not committing things right now due to network issues between the machine(s) I use for such things.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 30 lines · Ian Campbell
Quoted 29 lines · Doug Goldstein
This consolidates some of the different variables used for the ARM builds. This change was prompted by the
Kconfigchanges but looking back in time the CONFIG_ARM_{32,64} variables existed beforeKconfigso this should just be a generic cleanup.Signed-off-by Doug Goldstein <[email protected]>--- xen/arch/arm/Makefile | 8 ++++---- xen/arch/arm/Rules.mk | 18 ++++-------------- xen/drivers/passthrough/Makefile | 2 +- 3 files changed, 9 insertions(+), 19 deletions(-)xen/arch/arm/Makefile +3
-3@@ -1,7 +1,7 @@ -subdir-$(arm32) += arm32 -subdir-$(arm64) += arm64 +subdir-$(CONFIG_ARM_32) += arm32 +subdir-$(CONFIG_ARM_64) += arm64 subdir-y += platforms -subdir-$(arm64) += efi +subdir-$(CONFIG_ARM_64) += efi obj-$(EARLY_PRINTK) += early_printk.o obj-y += cpu.o@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
Quoted 7 lines
xen/arch/arm/Makefile ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) · line 55
Quoted 4 lines
xen/arch/arm/Makefile +1
-1$(TARGET): $(TARGET)-syms $(TARGET).axf $(OBJCOPY) -O binary -S $< $@ -ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64The old way looks to be the prevailing normal form. I don't especially object to the change but things ought to remain consistent.
Which part? Using arm32/arm64? Or having the if blocks rather than var-$(CONFIG_THING) ?
My goal here is consistency and that was to standardize on the form of var-$(CONFIG_THING) across the board.
Quoted 9 lines
For the rest:
Acked-by Ian Campbell < [email protected] >FYI I'm not committing things right now due to network issues between the machine(s) I use for such things.
Ian.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 27.01.16 at 15:30, <[email protected]> wrote:
Quoted 10 lines · Ian Campbell
xen/arch/arm/Makefile ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) · line 55
Quoted 6 lines · Doug Goldstein
xen/arch/arm/Makefile +1
-1@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) $(TARGET): $(TARGET)-syms $(TARGET).axf $(OBJCOPY) -O binary -S $< $@ -ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64The old way looks to be the prevailing normal form. I don't especially object to the change but things ought to remain consistent.
Quoted 5 lines
Which part? Using arm32/arm64? Or having the if blocks rather than var-$(CONFIG_THING) ?
My goal here is consistency and that was to standardize on the form of var-$(CONFIG_THING) across the board.
But there's no var-$(CONFIG_THING) in the code above.
Jan
Quoted 14 lines · Jan Beulich
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 27.01.16 at 15:30, <[email protected]> wrote:
Quoted 11 lines · Ian Campbell
xen/arch/arm/Makefile ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) · line 55
Quoted 6 lines · Doug Goldstein
(quoted diff) +0
-0@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
$(TARGET): $(TARGET)-syms $(TARGET).axf
$(OBJCOPY) -O binary -S $< $@xen/arch/arm/Makefile +1
-1-ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64The old way looks to be the prevailing normal form. I don't especially
object to the change but things ought to remain consistent.
Quoted 7 lines
Quoted 5 lines
Which part? Using arm32/arm64? Or having the if blocks rather than var-$(CONFIG_THING) ?
My goal here is consistency and that was to standardize on the form of var-$(CONFIG_THING) across the board.
But there's no var-$(CONFIG_THING) in the code above.
Indeed, I was referring to the change from:
-ifeq (arm64,$(XEN_TARGET_ARCH))
to
+ifdef CONFIG_ARM_64
While:
ifeq ($(CONFIG_ARM_64),y)
is the more prevalent style.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 31 lines · Ian Campbell
Quoted 14 lines · Jan Beulich
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 27.01.16 at 15:30, <[email protected]> wrote:
Quoted 11 lines · Ian Campbell
xen/arch/arm/Makefile ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) · line 55
Quoted 6 lines · Doug Goldstein
xen/arch/arm/Makefile +1
-1@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) $(TARGET): $(TARGET)-syms $(TARGET).axf $(OBJCOPY) -O binary -S $< $@ -ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64The old way looks to be the prevailing normal form. I don't especially
object to the change but things ought to remain consistent.Quoted 7 lines
Quoted 5 lines
Which part? Using arm32/arm64? Or having the if blocks rather than var-$(CONFIG_THING) ?
My goal here is consistency and that was to standardize on the form of var-$(CONFIG_THING) across the board.
But there's no var-$(CONFIG_THING) in the code above.
Indeed, I was referring to the change from:
-ifeq (arm64,$(XEN_TARGET_ARCH))
to
+ifdef
CONFIG_ARM_64
Quoted 8 lines
While:
ifeq ($(CONFIG_ARM_64),y)
is the more prevalent style.
Ian.
Oh sure. We can do that. Would you like me to send a v2 or are you comfortable squashing that into the patch?
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 38 lines · Doug Goldstein
Quoted 37 lines · Ian Campbell
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 27.01.16 at 15:30, <[email protected]> wrote:
Quoted 12 lines · Ian Campbell
xen/arch/arm/Makefile ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) · line 55
Quoted 7 lines · Doug Goldstein
(quoted diff) +0
-0@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
$(TARGET): $(TARGET)-syms $(TARGET).axf
$(OBJCOPY) -O binary -S $< $@xen/arch/arm/Makefile +1
-1-ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64The old way looks to be the prevailing normal form. I don't especially
object to the change but things ought to remain consistent.Quoted 8 lines
Quoted 6 lines
Which part? Using arm32/arm64? Or having the if blocks rather than var-$(CONFIG_THING) ?
My goal here is consistency and that was to standardize on the form of
var-$(CONFIG_THING) across the board.But there's no var-$(CONFIG_THING) in the code above.
Indeed, I was referring to the change from:
-ifeq (arm64,$(XEN_TARGET_ARCH))
to
+ifdef
CONFIG_ARM_64While:
ifeq ($(CONFIG_ARM_64),y)
Quoted 7 lines
Quoted 4 lines
is the more prevalent style.
Ian.
Oh sure. We can do that. Would you like me to send a v2 or are you comfortable squashing that into the patch?
I may as well just do it, thanks.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 41 lines · Ian Campbell
Quoted 40 lines · Doug Goldstein
Quoted 39 lines · Ian Campbell
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 27.01.16 at 15:30, <[email protected]> wrote:
Quoted 12 lines · Ian Campbell
Review ALL_OBJS := $(TARGET_SUBARCH)/head.o · line 56
Quoted 7 lines · Doug Goldstein
(quoted diff) +1
-1@@ -52,7 +52,7 @@ ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS) $(TARGET): $(TARGET)-syms $(TARGET).axf $(OBJCOPY) -O binary -S $< $@ -ifeq (arm64,$(XEN_TARGET_ARCH)) +ifdef CONFIG_ARM_64The old way looks to be the prevailing normal form. I don't especially
object to the change but things ought to remain consistent.Quoted 8 lines
Quoted 6 lines
Which part? Using arm32/arm64? Or having the if blocks rather than var-$(CONFIG_THING) ?
My goal here is consistency and that was to standardize on the form of
var-$(CONFIG_THING) across the board.But there's no var-$(CONFIG_THING) in the code above.
Indeed, I was referring to the change from:
-ifeq (arm64,$(XEN_TARGET_ARCH))
to
+ifdef
CONFIG_ARM_64While:
ifeq ($(CONFIG_ARM_64),y)
is the more prevalent style.
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines
Ian.
Oh sure. We can do that. Would you like me to send a v2 or are you comfortable squashing that into the patch?
I may as well just do it, thanks.
I'll change my style going forward to use that form as well.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 16 lines · Ian Campbell
Quoted 15 lines · Doug Goldstein
Quoted 14 lines · Ian Campbell
Indeed, I was referring to the change from:
-ifeq (arm64,$(XEN_TARGET_ARCH))
to
+ifdef
CONFIG_ARM_64While:
ifeq ($(CONFIG_ARM_64),y)
is the more prevalent style.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Ian.
Oh sure. We can do that. Would you like me to send a v2 or are you comfortable squashing that into the patch?
I may as well just do it, thanks.
Pushed with that change, thanks.
Ian.