[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1507559715-30918-4-git-send-email-yamada.masahiro@socionext.com>
Date: Mon, 9 Oct 2017 23:35:15 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: linux-kbuild@...r.kernel.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
Mark Salter <msalter@...hat.com>, linux-c6x-dev@...ux-c6x.org,
Aurelien Jacquiot <jacquiot.aurelien@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] c6x: add KBUILD_ prefix to CFLAGS_MODULE
CFLAGS_MODULE is supposed to be set by users, not by in-kernel
makefiles.
Documentation/kbuild/makefiles.txt clearly explains the difference:
KBUILD_CFLAGS_MODULE Options for $(CC) when building modules
$(KBUILD_CFLAGS_MODULE) is used to add arch-specific options that
are used for $(CC).
From commandline CFLAGS_MODULE shall be used (see kbuild.txt).
Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
---
arch/c6x/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile
index 6b0be67..6f6096f 100644
--- a/arch/c6x/Makefile
+++ b/arch/c6x/Makefile
@@ -12,7 +12,7 @@ cflags-y += -mno-dsbt -msdata=none -D__linux__
cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls
-CFLAGS_MODULE += -mlong-calls -mno-dsbt -msdata=none
+KBUILD_CFLAGS_MODULE += -mlong-calls -mno-dsbt -msdata=none
CHECKFLAGS +=
--
2.7.4
Powered by blists - more mailing lists