* [PATCH] crypto: ux500 - use ccflags-y instead of CFLAGS_<basename>.o
@ 2019-04-19 5:37 Masahiro Yamada
2019-04-25 7:51 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-04-19 5:37 UTC (permalink / raw)
To: Herbert Xu, linux-crypto; +Cc: Masahiro Yamada, David S. Miller, linux-kernel
Instead of adding CFLAGS_<basename>.o to every file, let's use
ccflags-y, which is effective for all C files in the directory.
No behavior change.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
drivers/crypto/ux500/cryp/Makefile | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/crypto/ux500/cryp/Makefile b/drivers/crypto/ux500/cryp/Makefile
index b497ae3dde07..dc8fff29c4b3 100644
--- a/drivers/crypto/ux500/cryp/Makefile
+++ b/drivers/crypto/ux500/cryp/Makefile
@@ -3,11 +3,7 @@
# * Author: shujuan.chen@stericsson.com for ST-Ericsson.
# * License terms: GNU General Public License (GPL) version 2 */
-ifdef CONFIG_CRYPTO_DEV_UX500_DEBUG
-CFLAGS_cryp_core.o := -DDEBUG
-CFLAGS_cryp.o := -DDEBUG
-CFLAGS_cryp_irq.o := -DDEBUG
-endif
+ccflags-$(CONFIG_CRYPTO_DEV_UX500_DEBUG) += -DDEBUG
obj-$(CONFIG_CRYPTO_DEV_UX500_CRYP) += ux500_cryp.o
ux500_cryp-objs := cryp.o cryp_irq.o cryp_core.o
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: ux500 - use ccflags-y instead of CFLAGS_<basename>.o
2019-04-19 5:37 [PATCH] crypto: ux500 - use ccflags-y instead of CFLAGS_<basename>.o Masahiro Yamada
@ 2019-04-25 7:51 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2019-04-25 7:51 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: linux-crypto, yamada.masahiro, davem, linux-kernel
Masahiro Yamada <yamada.masahiro@socionext.com> wrote:
> Instead of adding CFLAGS_<basename>.o to every file, let's use
> ccflags-y, which is effective for all C files in the directory.
>
> No behavior change.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> drivers/crypto/ux500/cryp/Makefile | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-25 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19 5:37 [PATCH] crypto: ux500 - use ccflags-y instead of CFLAGS_<basename>.o Masahiro Yamada
2019-04-25 7:51 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).