Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
This works when I build within the kernel build system (make menuconfig, make etc...)
when I set CONFIG_THING to m via the Kconfig system I get a thing.ko built.
when I set CONFIG_THING to y via the Kconfig system I get thing support built into the kernel.
I thought that a Makefile similar to that below would help, but obviously CONFIG_THING does not
get set correctly.
ifneq ($(KERNELRELEASE),)
include Kbuild
else
# Normal Makefile
KERNELDIR := /lib/modules/`uname -r`/build CONFIG_THING = m
all:
$(MAKE) -C $(KERNELDIR) M=`pwd` $@
# Module clean up
clean:
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
endif
Is there any way I can force CONFIG_THING to be 'm' in order to reuse the Kbuild file?
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe