Hello All,

I work on the LKCD project and am facing a problem with extra-y. 

LKCD requires an additional target (kerntypes.o) built every time we 
build LKCD. Our patch adds this line into init/Makefile

extra-$(CONFIG_CRASH_DUMP) := kerntypes.o

The problem with this is that the target is not built when we build LKCD
as a module, as CONFIG_CRASH_DUMP is set to "m". I read the kbuild 
documentation and there does not seem to be anything equivalent to 
extra-y when it comes to modules.

In order to overcome the problem, I used an ifdef-endif wrapper as below.

ifdef CONFIG_CRASH_DUMP
extra-y                    := kerntypes.o
endif

This works fine but I believe the use of ifdefs in Makefiles is frowned 
upon.

Could someone kindly let me know a better way to handle this problem.

Thanks in advance!

-- 
Regards, Hari
Hariprasad Nellitheertha
Linux Technology Center
India Software Labs
IBM India, Bangalore


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to