On Thu, 2005-03-03 at 11:48 -0500, Tyler Trafford wrote:
> Attached is a much-cleaned version of driver/Makefile2.6. Let me know
> if there are any problems with it.
New kernels will look for a Kbuild file in preference to a Makefile so
you could move all the stuff between "ifneq" and "else" into a file
named Kbuild in the same directory and replace it in Makefile2.6 with
"include Kbuild" which keeps backwards compatibility with kernels that
don't do this. See Documentation/kbuild/modules.txt.
e.g.
Makefile2.6:
ifneq ($(KERNELRELEASE),)
include Kbuild
else
MDIR := ivtv
[etc]
Kbuild:
ivtv-objs := ivtv-driver.o [etc]
It's neat because it nicely separates the kernel build stuff from the
other Makefile stuff.
Ian.
--
Ian Campbell
Current Noise: Behemoth - Slaves Shall Serve
FUN is never having to say you're SUSHI!!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel