xen: arm: prevent building with CONFIG_EARLY_PRINTK if not a debug build
PATCH 1/1 xen: arm: prevent building with CONFIG_EARLY_PRINTK if not a debug build
early printk on ARM is tied to debug being enabled, so error out instead of silently and unexpectedly building without early printk when asked.
Signed-off-by Ian Campbell <[email protected]>
--- xen/arch/arm/Rules.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
xen/arch/arm/Rules.mk +8 -0
@@ -99,4 +99,12 @@ CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_INC=\"debug-$(EARLY_PRINTK_INC).inc\" CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_BAUD=$(EARLY_PRINTK_BAUD) CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_BASE_ADDRESS=$(EARLY_UART_BASE_ADDRESS) CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_REG_SHIFT=$(EARLY_UART_REG_SHIFT) + +else # !debug + +ifneq ($(CONFIG_EARLY_PRINTK),) +# Early printk is dependant on a debug build. +$(error CONFIG_EARLY_PRINTK enabled for non-debug build) +endif + endif
Signature · 1 line
1.8.5.3
Quoted 3 lines · Ian Campbell
early printk on ARM is tied to debug being enabled, so error out instead of silently and unexpectedly building without early printk when asked.
Signed-off-by Ian Campbell <[email protected]>
Should really be:
Signed-off-by Ian Campbell <[email protected]>
Quoted 3 lines · Ian Campbell
early printk on ARM is tied to debug being enabled, so error out instead of silently and unexpectedly building without early printk when asked.
Signed-off-by Ian Campbell <[email protected]>
Acked-by Julien Grall <[email protected]>
Quoted 22 lines
--- xen/arch/arm/Rules.mk | 8 ++++++++ 1 file changed, 8 insertions(+)xen/arch/arm/Rules.mk +8
-0@@ -99,4 +99,12 @@ CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_INC=\"debug-$(EARLY_PRINTK_INC).inc\" CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_BAUD=$(EARLY_PRINTK_BAUD) CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_BASE_ADDRESS=$(EARLY_UART_BASE_ADDRESS) CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_REG_SHIFT=$(EARLY_UART_REG_SHIFT) + +else # !debug + +ifneq ($(CONFIG_EARLY_PRINTK),) +# Early printk is dependant on a debug build. +$(error CONFIG_EARLY_PRINTK enabled for non-debug build) +endif + endif
Signature · 1 line
Julien Grall
Quoted 6 lines · Julien Grall
Quoted 3 lines · Ian Campbell
early printk on ARM is tied to debug being enabled, so error out instead of silently and unexpectedly building without early printk when asked.
Signed-off-by Ian Campbell <[email protected]>Acked-by Julien Grall <[email protected]>
Thanks. Applied.