Skip to contentSkip to conversation

Arm: fix build with CONFIG_DTB_FILE set

PATCH In review Jan Beulich 2 participants 2 messages May 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Arm: fix build with CONFIG_DTB_FILE set

Recent changes no longer allow modification of AFLAGS. The needed conversion was apparently missed in 2740d96efdd3 ("xen/build: have the root Makefile generates the CFLAGS").

xen/arch/arm/Makefile +1 -1
@@ -68,7 +68,7 @@ extra-y += $(TARGET_SUBARCH)/head.o
 
 ifdef CONFIG_DTB_FILE
 obj-y += dtb.o
-AFLAGS += -DCONFIG_DTB_FILE=\"$(CONFIG_DTB_FILE)\"
+AFLAGS-y += -DCONFIG_DTB_FILE=\"$(CONFIG_DTB_FILE)\"
 endif
 
 ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

Recent changes no longer allow modification of AFLAGS. The needed conversion was apparently missed in 2740d96efdd3 ("xen/build: have the root Makefile generates the CFLAGS").

Cheers,

Quoted 13 lines
xen/arch/arm/Makefile +1 -1
@@ -68,7 +68,7 @@ extra-y += $(TARGET_SUBARCH)/head.o
 
  ifdef CONFIG_DTB_FILE
  obj-y += dtb.o
-AFLAGS += -DCONFIG_DTB_FILE=\"$(CONFIG_DTB_FILE)\"
+AFLAGS-y += -DCONFIG_DTB_FILE=\"$(CONFIG_DTB_FILE)\"
  endif
 
  ALL_OBJS := $(TARGET_SUBARCH)/head.o $(ALL_OBJS)
Signature · 1 line
Julien Grall