Cc: Chris Mason <chris.mason@...>, Jeff Mahoney <jeffm@...>, Tim Gardner <tim.gardner@...>, <linux-fsdevel@...>, <kernel-team@...>, <linux-kernel@...>, <linux-btrfs@...>, John Johansen <jjohansen@...>
Woah, you rely on autoconf.h. Uh no thanks, let the build system handle it.
# -*- Makefile -*-
btrfs-objs := ...
obj-m += btrfs.o and-so-on.o
ifneq (${CONFIG_SECURITY_APPARMOR},)
EXTRA_CFLAGS += -DI_HAZ_AN_APPARMOR
endif
all:
${MAKE} -C ${kdir} M=$PWD all;
Best of all, you can override that from the command line too...
make CONFIG_SECURITY_APPARMOR=y
(and if you don't, it takes its value from the appropriate .config,
all without you having to care about autoconf.h)
--