Hi!

On 09/17/2013 08:25 PM, [email protected] wrote:
> Hi!
>> I wonder if it wouldn't be easier to enter the directory and make the
>> kernel part Makefile to be noop if there is no kernel-devel package or
>> if the kernel version is not new enough.
>>
>> Ideally the makefile in the kernel part should look like:
>>
>>
>> top_srcdir   ?= ../../../..
>>
>> include $(top_srcdir)/include/mk/env_pre.mk
>>
>> REQ_VERSION_MAJOR       = 3
>> REQ_VERSION_PATCH       = 7
>>
>> MODULE_NAME = ltp_foo_bar
>>
>> include $(top_srcdir)/include/mk/module.mk
>>
>>
>> And the rest of the magic should be in the module.mk file.
>>
>> Then:
>>
>> 1) make in the dir is noop if devel package is missing or
>>     version is too old
>>
>>     - the parent Makefile has only subdirs defined, no need
>>       for additional magic there
>>
>> 2) module is build
>>
>> 3) if module was build installed
>       if module was build, i.e. the .ko file exist install it
>       on install, dtto for clean
>
Yeah, true... I forgot about version checking and kernel-devel, OK, I'll 
add it to module.mk. I'm not sure about first include you suggested... 
it will be included when make go to kernel tree.

Thanks,
Alexey

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to