From 6a975f3433042a173c7ffc2b69fc53e212dd9b03 Mon Sep 17 00:00:00 2001 From: Joachim Foerster Date: Wed, 21 Jun 2023 12:13:04 +0200 Subject: [PATCH] modules/mqnic/Makefile: Define CPP symbol DEBUG when environment variable DEBUG is provided Signed-off-by: Joachim Foerster --- modules/mqnic/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/mqnic/Makefile b/modules/mqnic/Makefile index 23b15f887..1860a93fa 100644 --- a/modules/mqnic/Makefile +++ b/modules/mqnic/Makefile @@ -26,6 +26,10 @@ mqnic-y += mqnic_cq.o mqnic-y += mqnic_eq.o mqnic-y += mqnic_ethtool.o +ifneq ($(DEBUG),) +ccflags-y += -DDEBUG +endif + else ifneq ($(KERNEL_SRC),)