[systemd-devel] [RFC 8/8] add makefile flags to turn on and off my hacks

AKASHI Takahiro takahiro.akashi at linaro.org
Wed Jun 25 02:13:37 PDT 2014


KDBUS_HACKx: 1 => enabled, 0 => disabled

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 Makefile |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c593b51..3b19999 100644
--- a/Makefile
+++ b/Makefile
@@ -20,13 +20,15 @@ obj-m += kdbus$(EXT).o
 KERNELDIR 		?= /lib/modules/$(shell uname -r)/build
 PWD			:= $(shell pwd)
 
+KDBUS_HACKS ?= -DKDBUS_HACK1=0 -DKDBUS_HACK2=0 -DKDBUS_HACK3=0
+
 all: module test
 
 test::
 	$(MAKE) -C test KBUILD_MODNAME=kdbus$(EXT)
 
 module:
-	$(MAKE) -C $(KERNELDIR) M=$(PWD)
+	$(MAKE) -C $(KERNELDIR) M=$(PWD) KCFLAGS="$(KDBUS_HACKS)"
 
 clean:
 	rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
-- 
1.7.9.5



More information about the systemd-devel mailing list