diff options
author | Cao jin <caoj.fnst@cn.fujitsu.com> | 2017-10-09 15:11:47 +0800 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-31 00:38:53 +0900 |
commit | 3a5befc146175de8bf6c4eb68866a4f5ad46265a (patch) | |
tree | 1a55010a3948881b59fa93d804e56130126ed239 /arch/hexagon | |
parent | 265444a008ae4451f69a24efda7b3f542cb30f7d (diff) | |
download | linux-stable-3a5befc146175de8bf6c4eb68866a4f5ad46265a.tar.gz linux-stable-3a5befc146175de8bf6c4eb68866a4f5ad46265a.tar.bz2 linux-stable-3a5befc146175de8bf6c4eb68866a4f5ad46265a.zip |
hexagon/kbuild: replace CFLAGS_MODULE with KBUILD_CFLAGS_MODULE
As kbuild document & commit 6588169d51 says: KBUILD_CFLAGS_MODULE is
used to add arch-specific options for $(CC). From commandline,
CFLAGS_MODULE shall be used.
Doesn't have any functional change, but just follow kbuild rules.
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
CC: linux-hexagon@vger.kernel.org
Acked-by: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/hexagon')
-rw-r--r-- | arch/hexagon/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/hexagon/Makefile b/arch/hexagon/Makefile index 207711a0fd0c..4f5c84c4bbb4 100644 --- a/arch/hexagon/Makefile +++ b/arch/hexagon/Makefile @@ -11,9 +11,9 @@ KBUILD_CFLAGS += -fno-short-enums # Modules must use either long-calls, or use pic/plt. # Use long-calls for now, it's easier. And faster. -# CFLAGS_MODULE += -fPIC -# LDFLAGS_MODULE += -shared -CFLAGS_MODULE += -mlong-calls +# KBUILD_CFLAGS_MODULE += -fPIC +# KBUILD_LDFLAGS_MODULE += -shared +KBUILD_CFLAGS_MODULE += -mlong-calls cflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION}) aflags-y += $(call cc-option,-mv${CONFIG_HEXAGON_ARCH_VERSION}) |