All of lore.kernel.org
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Alexey Kodanev <alexey.kodanev@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v3 2/2] device-drivers: block: fixes
Date: Tue, 17 Sep 2013 18:25:23 +0200	[thread overview]
Message-ID: <20130917162523.GB14998@rei> (raw)
In-Reply-To: <20130917162159.GA14998@rei>

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

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2013-09-17 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 11:52 [LTP] [PATCH v3 2/2] device-drivers: block: fixes Alexey Kodanev
2013-09-17 16:21 ` chrubis
2013-09-17 16:25   ` chrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130917162523.GB14998@rei \
    --to=chrubis@suse.cz \
    --cc=alexey.kodanev@oracle.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vasily.isaenko@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.