[PATCH] arm: Quote KBUILD_AFLAGS filtering properly

12 views
Skip to first unread message

Jan Kiszka

unread,
Jan 26, 2016, 2:40:09 AM1/26/16
to Jailhouse, Antonios Motakis
Otherwise we filter out those words separately, destroying any
"-include header.h" addition made elsewhere.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
hypervisor/arch/arm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypervisor/arch/arm/Makefile b/hypervisor/arch/arm/Makefile
index efa56c8..6f93dc5 100644
--- a/hypervisor/arch/arm/Makefile
+++ b/hypervisor/arch/arm/Makefile
@@ -12,7 +12,7 @@

include $(CONFIG_MK)

-KBUILD_AFLAGS := $(filter-out -include asm/unified.h,$(KBUILD_AFLAGS))
+KBUILD_AFLAGS := $(filter-out "-include asm/unified.h",$(KBUILD_AFLAGS))

always := built-in.o

--
2.1.4

Jan Kiszka

unread,
Jan 26, 2016, 4:47:26 AM1/26/16
to Jailhouse, Antonios Motakis
Otherwise we remove those words separately, destroying any
"-include header.h" addition made elsewhere.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---

Second try, fully tested now...

hypervisor/arch/arm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypervisor/arch/arm/Makefile b/hypervisor/arch/arm/Makefile
index efa56c8..6a156a3 100644
--- a/hypervisor/arch/arm/Makefile
+++ b/hypervisor/arch/arm/Makefile
@@ -12,7 +12,7 @@

include $(CONFIG_MK)

-KBUILD_AFLAGS := $(filter-out -include asm/unified.h,$(KBUILD_AFLAGS))
+KBUILD_AFLAGS := $(subst -include asm/unified.h,,$(KBUILD_AFLAGS))
Reply all
Reply to author
Forward
0 new messages