• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Building kernel module twice

Nithin

Senior member
I have a kernel module that needs to be built twice. once without -DFLAG and once with -DFLAG. i want to create two modules module_flag.ko and module_noflag.ko

How can I modify the makefile to build two modules one with flag and one without?

Thanks,
N.
 
Build a module with the flag.
Find the *.ko file(s)
copy those to a safe place.
make clean
then edit the makefile manually to get rid of the flag
build it again.

That's the approach I would go.
 
drag, yes that is what we are doing right now. we're currently overwriting the makefile with a new one that does not have the flag.

i was hoping for something where i could specify it in the makefile itself. with just one makefile. through some makefile trick.
 
Back
Top