All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>,
	"backports@vger.kernel.org" <backports@vger.kernel.org>
Subject: Re: compat-drivers wishlist
Date: Thu, 28 Mar 2013 23:54:50 +0100	[thread overview]
Message-ID: <5154CA3A.2010901@hauke-m.de> (raw)
In-Reply-To: <1364509642.10397.76.camel@jlt4.sipsolutions.net>

On 03/28/2013 11:27 PM, Johannes Berg wrote:
> On Thu, 2013-03-28 at 15:15 -0700, Luis R. Rodriguez wrote:
> 
>>> 1) Ability to copy only some drivers.
> 
>> Seems reasonable. Maybe admin-update can read your own .config
> 
> This is a tricky proposition, see below & my other mail on Kconfig
> thoughts.
> 
>> GNU patch could use some love. 
> 
> I'd hate to have to rely on a modified version of that :-)
> 
> FWIW, I think there's a python library to apply (unified) patches, if we
> want to get fancy.
> 
>> See commit 4a1a94f93 on compat-drivers.
> 
> Ah, what's that for? Refreshing patches? I've never seen dependencies in
> the compat patches so mostly I refresh manually, but yeah, the refresh
> part is something I'd have to think about. Though, to be honest, when
> you can just blow away your output directory and try again I'm not too
> worried about this. Trying to apply the patches could just leave it in
> the state you're in, and then you modify them until it works?

Refreshing patches should not be a problem. Normally I use
"./scripts/admin-refresh.sh -n -p -c -u refresh" to refresh the patches
and this should work with some minor changes with the proposal you made.

>> Maybe we need a context patch parser that given a .config will only
>> apply patches for the desired files. For this to work we'd need a
>> mapping of CONFIG_FOO symbols to respective driver path files regexps.
> 
> Even assuming we do have such a mapping, I think it's the wrong approach
> and causes a chicken-and-egg problem.
> 
> As I wrote in my other mail, you don't have a .config file before you
> know the target kernel. This is because, for example, there's no way to
> know if PCI is enabled in the target kernel, and thus sometimes you get
> PCI drivers and sometimes not. Also I think maintenance and driver split
> is not usually per Kconfig symbol but per directory. There are many more
> Kconfig symbols, after all.
> 
> Also above you said you could do the source copying (or pruning) based
> on the .config file. This has the exact same issue, I'd rather have the
> copying or pruning be based on directories.
> 
> Basically I'm saying the .config file only exists on the target build
> system, while the selective copying/pruning needs to be done on the
> tarball creation system.

How do you want to make the tar generation being configurable? The build
time Kconfig options should be generated from the Kconfig files provided
by the kernel and not by some own files.
I think some manual edited config file with the directories or files to
be included sounds good. This function would not be used by the normal
user so that should be good enough.

>>> 4) Kconfig.
> 
>> I think its possible to remove not desired source code based on
>> reading .config.
> 
> See above.
> 
> Oh, another issue I haven't addressed is default configurations, but I
> think that's easy to do by providing something like the kernel's
> defconfig.
> 
> johannes


  reply	other threads:[~2013-03-28 22:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 21:49 compat-drivers wishlist Johannes Berg
2013-03-28 22:15 ` Luis R. Rodriguez
2013-03-28 22:24   ` Luis R. Rodriguez
2013-03-28 22:32     ` Johannes Berg
2013-03-28 22:27   ` Johannes Berg
2013-03-28 22:54     ` Hauke Mehrtens [this message]
2013-03-28 23:01       ` Johannes Berg
2013-03-28 22:20 ` Johannes Berg
2013-03-28 22:40   ` Hauke Mehrtens
2013-03-28 22:59     ` Johannes Berg
2013-03-28 23:23   ` Luis R. Rodriguez
2013-03-28 23:40     ` Johannes Berg
2013-03-29  0:08       ` Luis R. Rodriguez
2013-03-30 18:30         ` Johannes Berg
2013-03-30 21:35           ` Luis R. Rodriguez
2013-03-30 21:48             ` Johannes Berg
2013-03-30 22:06               ` Luis R. Rodriguez
2013-03-30  0:29   ` Johannes Berg

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=5154CA3A.2010901@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=backports@vger.kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=mcgrof@do-not-panic.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.