All of lore.kernel.org
 help / color / mirror / Atom feed
* new way of writing defconfigs for freescale's powerpc platforms
@ 2015-04-09 21:52 Lijun Pan
  2015-04-09 22:31 ` Scott Wood
  2015-04-17  0:54 ` Michael Ellerman
  0 siblings, 2 replies; 24+ messages in thread
From: Lijun Pan @ 2015-04-09 21:52 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Scott Wood, Richard Schmitt

Hi Maintainers,

We have a proposal for writing the defconfigs for freescale's powperpc plat=
forms in a new way.
Can you take a look and provide some feedback?

You know currently we have mpc85xx_defconfig, corenet32_defconfig, bsc913x_=
defconfig, *fman*_defconfig, etc.
We are going to extract some common parts from the existing defconfigs, and=
 name it, say, fsl_basic_defconfig.
Then, we could create some defconfigs targeting specific features or specif=
ic platforms.
Say, features specific: kvm_defconfig, fman_defconfig, etc.
Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig, t1_defconfig=
, t2_defconfig, t2_defconfig, b4_defconfig, etc
When we want to make a kernel image for p1 platform,
Using the following steps:

make ./scripts/kconfig/merge_config.sh arch/powerpc/configs/fsl_basic_confi=
g p1_defconfig
make

What do you think of this new approach?
Will you accept this approach?

Here is a brief quote of the reasons why we take this approach.
"we've had complaints in the past that some feature X  is available on one =
platform but not another.=20
Why.  And our answer has been, it's arbitrary.=20
Some platform config files define it, and some platform config files don't.=
 =20
That's because when someone adds a feature, they don't update all relevant =
defconfigs.

Sometimes config files that should be very similar, are in fact very differ=
ent.=20
take for example corenet32_smp_defconfig and corenet64_smp_defconfig. =20
There are differences in mtd settings, and others when the only difference =
should be very close to just PPC64.

So the hope was to create some kind of layered architecture. =20
Have a basic defconfig, then maybe have a fragment for 64 bit,=20
then fragments for particular platform differences, then a fragment for KVM=
,=20
and a fragment for ASF and so on."

Thanks
Lijun

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-09 21:52 new way of writing defconfigs for freescale's powerpc platforms Lijun Pan
@ 2015-04-09 22:31 ` Scott Wood
  2015-04-16  4:44   ` Bob Cochran
  2015-04-16 17:04   ` Lijun Pan
  2015-04-17  0:54 ` Michael Ellerman
  1 sibling, 2 replies; 24+ messages in thread
From: Scott Wood @ 2015-04-09 22:31 UTC (permalink / raw)
  To: Pan Lijun-B44306; +Cc: linuxppc-dev, Schmitt Richard-B43082

On Thu, 2015-04-09 at 16:52 -0500, Pan Lijun-B44306 wrote:
> Hi Maintainers,
> 
> We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way.
> Can you take a look and provide some feedback?
> 
> You know currently we have mpc85xx_defconfig, corenet32_defconfig, bsc913x_defconfig, *fman*_defconfig, etc.
> We are going to extract some common parts from the existing defconfigs, and name it, say, fsl_basic_defconfig.
> Then, we could create some defconfigs targeting specific features or specific platforms.
> Say, features specific: kvm_defconfig, fman_defconfig, etc.
> Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig, t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc
> When we want to make a kernel image for p1 platform,
> Using the following steps:
> 
> make ./scripts/kconfig/merge_config.sh arch/powerpc/configs/fsl_basic_config p1_defconfig
> make
> 
> What do you think of this new approach?
> Will you accept this approach?

I'm OK with a merge_config approach.

I'm not OK with having separate builds for p1/p2/p4/t1/t2/b4.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-09 22:31 ` Scott Wood
@ 2015-04-16  4:44   ` Bob Cochran
  2015-04-16 13:20     ` Bob Cochran
  2015-04-16 18:39     ` Scott Wood
  2015-04-16 17:04   ` Lijun Pan
  1 sibling, 2 replies; 24+ messages in thread
From: Bob Cochran @ 2015-04-16  4:44 UTC (permalink / raw)
  To: Scott Wood, Pan Lijun-B44306; +Cc: linuxppc-dev, Schmitt Richard-B43082

On 04/09/2015 06:31 PM, Scott Wood wrote:
> On Thu, 2015-04-09 at 16:52 -0500, Pan Lijun-B44306 wrote:
>> Hi Maintainers,
>>
>> We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way.
>> Can you take a look and provide some feedback?
>>
>> You know currently we have mpc85xx_defconfig, corenet32_defconfig, bsc913x_defconfig, *fman*_defconfig, etc.
>> We are going to extract some common parts from the existing defconfigs, and name it, say, fsl_basic_defconfig.
>> Then, we could create some defconfigs targeting specific features or specific platforms.
>> Say, features specific: kvm_defconfig, fman_defconfig, etc.
>> Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig, t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc
>> When we want to make a kernel image for p1 platform,
>> Using the following steps:
>>
>> make ./scripts/kconfig/merge_config.sh arch/powerpc/configs/fsl_basic_config p1_defconfig
>> make
>>
>> What do you think of this new approach?
>> Will you accept this approach?
>
> I'm OK with a merge_config approach.
>
> I'm not OK with having separate builds for p1/p2/p4/t1/t2/b4.
>
> -Scott


As you probably know, Freescale makes use of the Yocto Project build 
system for its SDK and submits patches to the SDK at a public 
meta-fsl-ppc repo at http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/

I have seen some kernel related patches in the past come across the 
Yocto Project site that made use of the Yocto Project kernel tools, 
which includes a process for maintaining kernel configuration fragments. 
  It sounds like the requirements you have could be met with Yocto's 
existing process.

I was hoping to see Freescale continue to move in the direction of using 
the Yocto kernel tools rather than roll its own solution.

The Yocto kernel tools make use of description files (*.scc) and 
configuration fragments (*.cfg).

Here is a link to the latest stable Yocto kernel development manual: 
http://www.yoctoproject.org/docs/1.7.1/kernel-dev/kernel-dev.html

Bob





>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-16  4:44   ` Bob Cochran
@ 2015-04-16 13:20     ` Bob Cochran
  2015-04-16 13:37       ` Richard Schmitt
  2015-04-16 18:39     ` Scott Wood
  1 sibling, 1 reply; 24+ messages in thread
From: Bob Cochran @ 2015-04-16 13:20 UTC (permalink / raw)
  To: Scott Wood, Pan Lijun-B44306; +Cc: linuxppc-dev, Schmitt Richard-B43082

On 04/16/2015 12:44 AM, Bob Cochran wrote:
> On 04/09/2015 06:31 PM, Scott Wood wrote:
>> On Thu, 2015-04-09 at 16:52 -0500, Pan Lijun-B44306 wrote:
>>> Hi Maintainers,
>>>
>>> We have a proposal for writing the defconfigs for freescale's
>>> powperpc platforms in a new way.
>>> Can you take a look and provide some feedback?
>>>
>>> You know currently we have mpc85xx_defconfig, corenet32_defconfig,
>>> bsc913x_defconfig, *fman*_defconfig, etc.
>>> We are going to extract some common parts from the existing
>>> defconfigs, and name it, say, fsl_basic_defconfig.
>>> Then, we could create some defconfigs targeting specific features or
>>> specific platforms.
>>> Say, features specific: kvm_defconfig, fman_defconfig, etc.
>>> Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig,
>>> t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc
>>> When we want to make a kernel image for p1 platform,
>>> Using the following steps:
>>>
>>> make ./scripts/kconfig/merge_config.sh
>>> arch/powerpc/configs/fsl_basic_config p1_defconfig
>>> make
>>>
>>> What do you think of this new approach?
>>> Will you accept this approach?
>>
>> I'm OK with a merge_config approach.
>>
>> I'm not OK with having separate builds for p1/p2/p4/t1/t2/b4.
>>
>> -Scott
>
>
> As you probably know, Freescale makes use of the Yocto Project build
> system for its SDK and submits patches to the SDK at a public
> meta-fsl-ppc repo at
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/
>
> I have seen some kernel related patches in the past come across the
> Yocto Project site that made use of the Yocto Project kernel tools,
> which includes a process for maintaining kernel configuration fragments.


Here is a link to a patch from a Freescale developer introducing Yocto 
kernel tool support (description files & configuration fragments) to the 
meta-fsl-ppc repo (FSL QorIQ SDK on Yocto).

https://lists.yoctoproject.org/pipermail/meta-freescale/2014-October/010890.html



>   It sounds like the requirements you have could be met with Yocto's
> existing process.
>
> I was hoping to see Freescale continue to move in the direction of using
> the Yocto kernel tools rather than roll its own solution.
>
> The Yocto kernel tools make use of description files (*.scc) and
> configuration fragments (*.cfg).
>
> Here is a link to the latest stable Yocto kernel development manual:
> http://www.yoctoproject.org/docs/1.7.1/kernel-dev/kernel-dev.html
>
> Bob
>
>
>
>
>
>>
>>
>> _______________________________________________
>> Linuxppc-dev mailing list
>> Linuxppc-dev@lists.ozlabs.org
>> https://lists.ozlabs.org/listinfo/linuxppc-dev
>>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 24+ messages in thread

* RE: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-16 13:20     ` Bob Cochran
@ 2015-04-16 13:37       ` Richard Schmitt
  0 siblings, 0 replies; 24+ messages in thread
From: Richard Schmitt @ 2015-04-16 13:37 UTC (permalink / raw)
  To: Bob Cochran, Scott Wood, Lijun Pan; +Cc: linuxppc-dev

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQm9iIENvY2hyYW4gW21h
aWx0bzpwcGNAbWluZGNoYXNlcnMuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwgQXByaWwgMTYsIDIw
MTUgODoyMSBBTQ0KPiBUbzogV29vZCBTY290dC1CMDc0MjE7IFBhbiBMaWp1bi1CNDQzMDYNCj4g
Q2M6IGxpbnV4cHBjLWRldkBvemxhYnMub3JnOyBTY2htaXR0IFJpY2hhcmQtQjQzMDgyDQo+IFN1
YmplY3Q6IFJlOiBuZXcgd2F5IG9mIHdyaXRpbmcgZGVmY29uZmlncyBmb3IgZnJlZXNjYWxlJ3Mg
cG93ZXJwYyBwbGF0Zm9ybXMNCj4gDQo+IE9uIDA0LzE2LzIwMTUgMTI6NDQgQU0sIEJvYiBDb2No
cmFuIHdyb3RlOg0KPiA+IE9uIDA0LzA5LzIwMTUgMDY6MzEgUE0sIFNjb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cvZG9jcy8xLjcuMS9rZXJuZWwtZGV2L2tlcm5lbC1kZXYuaHRtbA0K
PiA+DQo+ID4gQm9iDQo+ID4NCj4gPg0KUmljaA0KDQo+ID4NCj4gPg0KPiA+DQo+ID4+DQo+ID4+
DQo+ID4+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+
ID4+IExpbnV4cHBjLWRldiBtYWlsaW5nIGxpc3QNCj4gPj4gTGludXhwcGMtZGV2QGxpc3RzLm96
bGFicy5vcmcNCj4gPj4gaHR0cHM6Ly9saXN0cy5vemxhYnMub3JnL2xpc3RpbmZvL2xpbnV4cHBj
LWRldg0KPiA+Pg0KPiA+DQo+ID4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX18NCj4gPiBMaW51eHBwYy1kZXYgbWFpbGluZyBsaXN0DQo+ID4gTGludXhwcGMt
ZGV2QGxpc3RzLm96bGFicy5vcmcNCj4gPiBodHRwczovL2xpc3RzLm96bGFicy5vcmcvbGlzdGlu
Zm8vbGludXhwcGMtZGV2DQoNCg==

^ permalink raw reply	[flat|nested] 24+ messages in thread

* RE: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-09 22:31 ` Scott Wood
  2015-04-16  4:44   ` Bob Cochran
@ 2015-04-16 17:04   ` Lijun Pan
  1 sibling, 0 replies; 24+ messages in thread
From: Lijun Pan @ 2015-04-16 17:04 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, Richard Schmitt

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV29vZCBTY290dC1CMDc0
MjENCj4gU2VudDogVGh1cnNkYXksIEFwcmlsIDA5LCAyMDE1IDU6MzEgUE0NCj4gVG86IFBhbiBM
aWp1bi1CNDQzMDYNCj4gQ2M6IGxpbnV4cHBjLWRldkBvemxhYnMub3JnOyBTY2htaXR0IFJpY2hh
cmQtQjQzMDgyDQo+IFN1Ym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ZWZjb25maWcsDQo+ID4gdDFfZGVmY29uZmlnLCB0Ml9kZWZjb25maWcsIHQyX2RlZmNvbmZpZywg
YjRfZGVmY29uZmlnLCBldGMgV2hlbiB3ZQ0KPiA+IHdhbnQgdG8gbWFrZSBhIGtlcm5lbCBpbWFn
ZSBmb3IgcDEgcGxhdGZvcm0sIFVzaW5nIHRoZSBmb2xsb3dpbmcgc3RlcHM6DQo+ID4NCj4gPiBt
YWtlIC4vc2NyaXB0cy9rY29uZmlnL21lcmdlX2NvbmZpZy5zaA0KPiA+IGFyY2gvcG93ZXJwYy9j
b25maWdzL2ZzbF9iYXNpY19jb25maWcgcDFfZGVmY29uZmlnIG1ha2UNCj4gPg0KPiA+IFdoYXQg
ZG8geW91IHRoaW5rIG9mIHRoaXMgbmV3IGFwcHJvYWNoPw0KPiA+IFdpbGwgeW91IGFjY2VwdCB0
aGlzIGFwcHJvYWNoPw0KPiANCj4gSSdtIE9LIHdpdGggYSBtZXJnZV9jb25maWcgYXBwcm9hY2gu
DQo+IA0KPiBJJ20gbm90IE9LIHdpdGggaGF2aW5nIHNlcGFyYXRlIGJ1aWxkcyBmb3IgcDEvcDIv
cDQvdDEvdDIvYjQuDQoNCklmIHdlIGRvbid0IGhhdmUgc2VwYXJhdGUgYnVpbGQgZm9yIHAxL3Ay
L3A0L3QxL3QyL2I0LCBpbiB3aGF0IHdheSBkbyB3ZQ0KYnVpbGQgZm9yIHRoZXNlIFNvQyB3aXRo
IG1lcmdlX2NvbmZpZyBhcHByb2FjaD8gRG8geW91IGhhdmUgYW55IHN1Z2dlc3Rpb25zPyANCg0K
PiANCj4gLVNjb3R0DQo+IA0KDQo=

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-16  4:44   ` Bob Cochran
  2015-04-16 13:20     ` Bob Cochran
@ 2015-04-16 18:39     ` Scott Wood
  1 sibling, 0 replies; 24+ messages in thread
From: Scott Wood @ 2015-04-16 18:39 UTC (permalink / raw)
  To: Bob Cochran; +Cc: Pan Lijun-B44306, Schmitt Richard-B43082, linuxppc-dev

On Thu, 2015-04-16 at 00:44 -0400, Bob Cochran wrote:
> As you probably know, Freescale makes use of the Yocto Project build 
> system for its SDK and submits patches to the SDK at a public 
> meta-fsl-ppc repo at http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/
> 
> I have seen some kernel related patches in the past come across the 
> Yocto Project site that made use of the Yocto Project kernel tools, 
> which includes a process for maintaining kernel configuration fragments. 
>   It sounds like the requirements you have could be met with Yocto's 
> existing process.
> 
> I was hoping to see Freescale continue to move in the direction of using 
> the Yocto kernel tools rather than roll its own solution.
> 
> The Yocto kernel tools make use of description files (*.scc) and 
> configuration fragments (*.cfg).

We do use Yocto for our SDK, but there's always going to be a need to be
able to build kernels outside of Yocto.  The kernel should be
self-contained regarding its own configuration.

merge_config.sh isn't "rolling our own solution". It's a standard kernel
tool.  x86 already has a couple config fragments defined.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-09 21:52 new way of writing defconfigs for freescale's powerpc platforms Lijun Pan
  2015-04-09 22:31 ` Scott Wood
@ 2015-04-17  0:54 ` Michael Ellerman
  2015-04-17  4:13   ` Scott Wood
  1 sibling, 1 reply; 24+ messages in thread
From: Michael Ellerman @ 2015-04-17  0:54 UTC (permalink / raw)
  To: Lijun Pan; +Cc: Scott Wood, linuxppc-dev, Richard Schmitt

On Thu, 2015-04-09 at 21:52 +0000, Lijun Pan wrote:
> Hi Maintainers,
> 
> We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way.
> Can you take a look and provide some feedback?
> 
> You know currently we have mpc85xx_defconfig, corenet32_defconfig, bsc913x_defconfig, *fman*_defconfig, etc.
> We are going to extract some common parts from the existing defconfigs, and name it, say, fsl_basic_defconfig.
> Then, we could create some defconfigs targeting specific features or specific platforms.
> Say, features specific: kvm_defconfig, fman_defconfig, etc.
> Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig, t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc
> When we want to make a kernel image for p1 platform,
> Using the following steps:
> 
> make ./scripts/kconfig/merge_config.sh arch/powerpc/configs/fsl_basic_config p1_defconfig
> make
> 
> What do you think of this new approach?

I don't like that the user has to manually run merge_config.sh.

How does a user even know that it's an option?

It also breaks scripts that auto build the kernel, which expect to be able to do:

  $ make foo_defconfig
  $ make

Scripts like mine for example :)

  http://kisskb.ellerman.id.au/kisskb/head/8734/

What I'd be happy with is something that does merge_config under the covers. So
a user still runs 'make fsl_plat_foo_defconfig', but under the covers it does a
merge config.

kvmconfig and tinyconfig are implemented that way already, so with a bit more
work hopefully you can do that for arch configs also.

cheers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-17  0:54 ` Michael Ellerman
@ 2015-04-17  4:13   ` Scott Wood
  2015-04-17  6:18     ` Michael Ellerman
  0 siblings, 1 reply; 24+ messages in thread
From: Scott Wood @ 2015-04-17  4:13 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: Lijun Pan, Richard Schmitt, linuxppc-dev

On Fri, 2015-04-17 at 10:54 +1000, Michael Ellerman wrote:
> On Thu, 2015-04-09 at 21:52 +0000, Lijun Pan wrote:
> > Hi Maintainers,
> > 
> > We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way.
> > Can you take a look and provide some feedback?
> > 
> > You know currently we have mpc85xx_defconfig, corenet32_defconfig, bsc913x_defconfig, *fman*_defconfig, etc.
> > We are going to extract some common parts from the existing defconfigs, and name it, say, fsl_basic_defconfig.
> > Then, we could create some defconfigs targeting specific features or specific platforms.
> > Say, features specific: kvm_defconfig, fman_defconfig, etc.
> > Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig, t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc
> > When we want to make a kernel image for p1 platform,
> > Using the following steps:
> > 
> > make ./scripts/kconfig/merge_config.sh arch/powerpc/configs/fsl_basic_config p1_defconfig
> > make
> > 
> > What do you think of this new approach?
> 
> I don't like that the user has to manually run merge_config.sh.
> 
> How does a user even know that it's an option?
> 
> It also breaks scripts that auto build the kernel, which expect to be able to do:
> 
>   $ make foo_defconfig
>   $ make
> 
> Scripts like mine for example :)
> 
>   http://kisskb.ellerman.id.au/kisskb/head/8734/
> 
> What I'd be happy with is something that does merge_config under the covers. So
> a user still runs 'make fsl_plat_foo_defconfig', but under the covers it does a
> merge config.
> 
> kvmconfig and tinyconfig are implemented that way already, so with a bit more
> work hopefully you can do that for arch configs also.

kvmconfig and tinyconfig are still separate user-visible steps to be
applied after running a base defconfig.

For breaking a platform defconfig into components, we could do something
like this in arch/powerpc/Makefile:

# Can't call mergeconfig directly as it isn't defined at this point
define domerge
       @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile $(1).config
endef

corenet64_smp_defconfig: corenet64_basic_defconfig
	$(call domerge,smp)
	$(call domerge,altivec)
	$(call domerge,corenet_drivers)
	$(call domerge,embedded_misc) # filesystems etc

And this in scripts/kconfig/Makefile:

%.config:
       $(call mergeconfig,$*)

One issue with this is that we'd lose the ability to use savedefconfig
(at least without manual manipulation of the results) to maintain the
defconfigs/fragments.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-17  4:13   ` Scott Wood
@ 2015-04-17  6:18     ` Michael Ellerman
  2015-04-17 18:50       ` Lijun Pan
  0 siblings, 1 reply; 24+ messages in thread
From: Michael Ellerman @ 2015-04-17  6:18 UTC (permalink / raw)
  To: Scott Wood; +Cc: Lijun Pan, Richard Schmitt, linuxppc-dev

On Thu, 2015-04-16 at 23:13 -0500, Scott Wood wrote:
> On Fri, 2015-04-17 at 10:54 +1000, Michael Ellerman wrote:
> > On Thu, 2015-04-09 at 21:52 +0000, Lijun Pan wrote:
> > > Hi Maintainers,
> > > 
> > > We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way.
> > > Can you take a look and provide some feedback?
> > > 
> > > You know currently we have mpc85xx_defconfig, corenet32_defconfig, bsc913x_defconfig, *fman*_defconfig, etc.
> > > We are going to extract some common parts from the existing defconfigs, and name it, say, fsl_basic_defconfig.
> > > Then, we could create some defconfigs targeting specific features or specific platforms.
> > > Say, features specific: kvm_defconfig, fman_defconfig, etc.
> > > Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig, t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc
> > > When we want to make a kernel image for p1 platform,
> > > Using the following steps:
> > > 
> > > make ./scripts/kconfig/merge_config.sh arch/powerpc/configs/fsl_basic_config p1_defconfig
> > > make
> > > 
> > > What do you think of this new approach?
> > 
> > I don't like that the user has to manually run merge_config.sh.
> > 
> > How does a user even know that it's an option?
> > 
> > It also breaks scripts that auto build the kernel, which expect to be able to do:
> > 
> >   $ make foo_defconfig
> >   $ make
> > 
> > Scripts like mine for example :)
> > 
> >   http://kisskb.ellerman.id.au/kisskb/head/8734/
> > 
> > What I'd be happy with is something that does merge_config under the covers. So
> > a user still runs 'make fsl_plat_foo_defconfig', but under the covers it does a
> > merge config.
> > 
> > kvmconfig and tinyconfig are implemented that way already, so with a bit more
> > work hopefully you can do that for arch configs also.
> 
> kvmconfig and tinyconfig are still separate user-visible steps to be
> applied after running a base defconfig.

Not as of recently:

  https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/scripts/kconfig/Makefile?id=63a91033d52e64a22e571fe84924c0b7f21c280d
 

Which pretty much does what you describe below I think.

> For breaking a platform defconfig into components, we could do something
> like this in arch/powerpc/Makefile:
> 
> # Can't call mergeconfig directly as it isn't defined at this point
> define domerge
>        @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile $(1).config
> endef
> 
> corenet64_smp_defconfig: corenet64_basic_defconfig
> 	$(call domerge,smp)
> 	$(call domerge,altivec)
> 	$(call domerge,corenet_drivers)
> 	$(call domerge,embedded_misc) # filesystems etc
> 
> And this in scripts/kconfig/Makefile:
> 
> %.config:
>        $(call mergeconfig,$*)
> 
> One issue with this is that we'd lose the ability to use savedefconfig
> (at least without manual manipulation of the results) to maintain the
> defconfigs/fragments.

That's probably OK, it's only maintainers who need to do that.

cheers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* RE: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-17  6:18     ` Michael Ellerman
@ 2015-04-17 18:50       ` Lijun Pan
  2015-04-17 18:52         ` Scott Wood
  0 siblings, 1 reply; 24+ messages in thread
From: Lijun Pan @ 2015-04-17 18:50 UTC (permalink / raw)
  To: Michael Ellerman, Scott Wood; +Cc: linuxppc-dev, Richard Schmitt

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTWljaGFlbCBFbGxlcm1h
biBbbWFpbHRvOm1wZUBlbGxlcm1hbi5pZC5hdV0NCj4gU2VudDogRnJpZGF5LCBBcHJpbCAxNywg
MjAxNSAxOjE5IEFNDQo+IFRvOiBXb29kIFNjb3R0LUIwNzQyMQ0KPiBDYzogUGFuIExpanVuLUI0
NDMwNjsgbGludXhwcGMtZGV2QG96bGFicy5vcmc7IFNjaG1pdHQgUmljaGFyZC1CNDMwODINCj4g
U3ViamVjdDogUmU6IG5ldyB3YXkgb2Ygd3JpdGluZyBkZWZjb25maWdzIGZvciBmcmVlc2NhbGUn
cyBwb3dlcnBjIHBsYXRmb3Jtcw0KPiANCj4gT24gVGh1LCAyMDE1LTA0LTE2IGF0IDIzOjEzIC0w
NTAwLCBTY290dCBXb29kIHdyb3RlOg0KPiA+IE9uIEZyaSwgMjAxNS0wNC0xNyBhdCAxMDo1NCAr
MTAwMCwgTWljaGFlbCBFbGxlcm1hbiB3cm90ZToNCj4gPiA+IE9uIFRodSwgMjAxNS0wNC0wOSBh
dCAyMTo1MiArMDAwMCwgTGlqdW4gUGFuIHdyb3RlOg0KPiA+ID4gPiBIaSBNYWludGFpbmVycywN
Cj4gPiA+ID4NCj4gPiA+ID4gV2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XR5IHRvIHVzZSBzYXZlZGVmY29uZmlnDQo+ID4gKGF0IGxlYXN0
IHdpdGhvdXQgbWFudWFsIG1hbmlwdWxhdGlvbiBvZiB0aGUgcmVzdWx0cykgdG8gbWFpbnRhaW4g
dGhlDQo+ID4gZGVmY29uZmlncy9mcmFnbWVudHMuDQo+IA0KPiBUaGF0J3MgcHJvYmFibHkgT0ss
IGl0J3Mgb25seSBtYWludGFpbmVycyB3aG8gbmVlZCB0byBkbyB0aGF0Lg0KPiANCj4gY2hlZXJz
DQo+IA0KDQo=

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-17 18:50       ` Lijun Pan
@ 2015-04-17 18:52         ` Scott Wood
  2015-04-18  4:53           ` Lijun Pan
  0 siblings, 1 reply; 24+ messages in thread
From: Scott Wood @ 2015-04-17 18:52 UTC (permalink / raw)
  To: Pan Lijun-B44306; +Cc: Schmitt Richard-B43082, linuxppc-dev

On Fri, 2015-04-17 at 13:50 -0500, Pan Lijun-B44306 wrote:
> 
> 
> > -----Original Message-----
> > From: Michael Ellerman [mailto:mpe@ellerman.id.au]
> > Sent: Friday, April 17, 2015 1:19 AM
> > To: Wood Scott-B07421
> > Cc: Pan Lijun-B44306; linuxppc-dev@ozlabs.org; Schmitt Richard-B43082
> > Subject: Re: new way of writing defconfigs for freescale's powerpc platforms
> > 
> > On Thu, 2015-04-16 at 23:13 -0500, Scott Wood wrote:
> > > On Fri, 2015-04-17 at 10:54 +1000, Michael Ellerman wrote:
> > > > On Thu, 2015-04-09 at 21:52 +0000, Lijun Pan wrote:
> > > > > Hi Maintainers,
> > > > >
> > > > > We have a proposal for writing the defconfigs for freescale's powperpc
> > platforms in a new way.
> > > > > Can you take a look and provide some feedback?
> > > > >
> > > > > You know currently we have mpc85xx_defconfig, corenet32_defconfig,
> > bsc913x_defconfig, *fman*_defconfig, etc.
> > > > > We are going to extract some common parts from the existing defconfigs,
> > and name it, say, fsl_basic_defconfig.
> > > > > Then, we could create some defconfigs targeting specific features or
> > specific platforms.
> > > > > Say, features specific: kvm_defconfig, fman_defconfig, etc.
> > > > > Platforms specific: p1_defconfig, p2_defcongfig, p4_defconfig,
> > > > > t1_defconfig, t2_defconfig, t2_defconfig, b4_defconfig, etc When
> > > > > we want to make a kernel image for p1 platform, Using the following
> > steps:
> > > > >
> > > > > make ./scripts/kconfig/merge_config.sh
> > > > > arch/powerpc/configs/fsl_basic_config p1_defconfig make
> > > > >
> > > > > What do you think of this new approach?
> > > >
> > > > I don't like that the user has to manually run merge_config.sh.
> > > >
> > > > How does a user even know that it's an option?
> > > >
> > > > It also breaks scripts that auto build the kernel, which expect to be able to
> > do:
> > > >
> > > >   $ make foo_defconfig
> > > >   $ make
> > > >
> > > > Scripts like mine for example :)
> > > >
> > > >   http://kisskb.ellerman.id.au/kisskb/head/8734/
> > > >
> > > > What I'd be happy with is something that does merge_config under the
> > > > covers. So a user still runs 'make fsl_plat_foo_defconfig', but
> > > > under the covers it does a merge config.
> > > >
> > > > kvmconfig and tinyconfig are implemented that way already, so with a
> > > > bit more work hopefully you can do that for arch configs also.
> > >
> > > kvmconfig and tinyconfig are still separate user-visible steps to be
> > > applied after running a base defconfig.
> > 
> > Not as of recently:
> > 
> > 
> > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/scripts/kc
> > onfig/Makefile?id=63a91033d52e64a22e571fe84924c0b7f21c280d
> > 
> 
> Above patch is very generic.
> With this patch, we don't even need to modify arch/powerpc/Makefile.
> We can just add fragments (like smp.config, kvm_guest.config, etc) under
> arch/powerpc/configs/ or
> add platform independent config under kernel/configs/
> 
> example might be:
> make mpc85xx_defconfig
> make smp.config
> make kvm_guest.config

The point is that the user should not have to do that.  They can if they
want, but there should still be traditional named configs, which would
just work differently under the hood.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* RE: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-17 18:52         ` Scott Wood
@ 2015-04-18  4:53           ` Lijun Pan
  2015-04-18 13:46             ` Timur Tabi
  0 siblings, 1 reply; 24+ messages in thread
From: Lijun Pan @ 2015-04-18  4:53 UTC (permalink / raw)
  To: Scott Wood; +Cc: Richard Schmitt, linuxppc-dev

DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV29vZCBTY290dC1CMDc0
MjENCj4gU2VudDogRnJpZGF5LCBBcHJpbCAxNywgMjAxNSAxOjUzIFBNDQo+IFRvOiBQYW4gTGlq
dW4tQjQ0MzA2DQo+IENjOiBNaWNoYWVsIEVsbGVybWFuOyBsaW51eHBwYy1kZXZAb3psYWJzLm9y
ZzsgU2NobWl0dCBSaWNoYXJkLUI0MzA4Mg0KPiBTdWJqZWN0OiBSZTogbmV3IHdheSBvZiB3cml0
aW5nIGRlZmNvbmZpZ3MgZm9yIGZyZWVzY2FsZSdzIHBvd2VycGMgcGxhdGZvcm1zDQo+IA0KPiBP
biBGcmksIDIwMTUtMDQtMTcgYXQgMTM6NTAgLTA1MDAsIFBhbiBMaWp1bi1CNDQzMDYgd3JvdGU6
DQo+ID4NCj4gPg0KPiA+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPiA+IEZyb206
IE1pY2hhZWwgRWxsZXJtYW4gW21haWx0bzptcGVAZWxsZXJtYW4uaWQuYXVdDQo+ID4gPiBTZW50
OiBGcmlkYXksIEFwcmlsIDE3LCAyMDE1IDE6MTkgQU0NCj4gPiA+IFRvOiBXb29kIFNjb3R0LUIw
NzQyMQ0KPiA+ID4gQ2M6IFBhbiBMaWp1bi1CNDQzMDY7IGxpbnV4cHBjLWRldkBvemxhYnMub3Jn
OyBTY2htaXR0DQo+ID4gPiBSaWNoYXJkLUI0MzA4Mg0KPiA+ID4gU3ViamVjdDogUmU6IG5ldyB3
YXkgb2Ygd3JpdGluZyBkZWZjb25maWdzIGZvciBmcmVlc2NhbGUncyBwb3dlcnBjDQo+ID4gPiBw
bGF0Zm9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kIGNvbmZpZ3MsIHdoaWNoIHdvdWxk
IGp1c3Qgd29yaw0KPiBkaWZmZXJlbnRseSB1bmRlciB0aGUgaG9vZC4NCj4gDQo+IC1TY290dA0K
PiANCg0KSGF2ZSBqdXN0IHNlbnQgb3V0IGEgcGF0Y2ggY29uc2lkZXJpbmcgdGhlIHByZXZpb3Vz
IGRpc2N1c3Npb24uDQpodHRwOi8vcGF0Y2h3b3JrLm96bGFicy5vcmcvcGF0Y2gvNDYyMjQ5Lw0K
W1BBVENIXSBwb3dlcnBjL2RlZmNvbmZpZzogbmV3IHdheSBvZiB3cml0aW5nIGRlZmNvbmZpZw0K
DQo=

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-18  4:53           ` Lijun Pan
@ 2015-04-18 13:46             ` Timur Tabi
  2015-04-20 20:31               ` Scott Wood
  0 siblings, 1 reply; 24+ messages in thread
From: Timur Tabi @ 2015-04-18 13:46 UTC (permalink / raw)
  To: Lijun Pan; +Cc: Scott Wood, linuxppc-dev, Richard Schmitt

On Fri, Apr 17, 2015 at 11:53 PM, Lijun Pan <Lijun.Pan@freescale.com> wrote:

> Have just sent out a patch considering the previous discussion.
> http://patchwork.ozlabs.org/patch/462249/
> [PATCH] powerpc/defconfig: new way of writing defconfig

The ability to merge defconfigs is a feature that's been requested by
many people for a long time.  Any solution should definitely NOT be
PowerPC-only.

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-18 13:46             ` Timur Tabi
@ 2015-04-20 20:31               ` Scott Wood
  2015-04-21  2:02                 ` Timur Tabi
  0 siblings, 1 reply; 24+ messages in thread
From: Scott Wood @ 2015-04-20 20:31 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, Lijun Pan, Richard Schmitt

On Sat, 2015-04-18 at 08:46 -0500, Timur Tabi wrote:
> On Fri, Apr 17, 2015 at 11:53 PM, Lijun Pan <Lijun.Pan@freescale.com> wrote:
> 
> > Have just sent out a patch considering the previous discussion.
> > http://patchwork.ozlabs.org/patch/462249/
> > [PATCH] powerpc/defconfig: new way of writing defconfig
> 
> The ability to merge defconfigs is a feature that's been requested by
> many people for a long time.  Any solution should definitely NOT be
> PowerPC-only.

The ability to merge configs is already there.  We're just talking about
using that functionality.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-20 20:31               ` Scott Wood
@ 2015-04-21  2:02                 ` Timur Tabi
  2015-04-21  2:09                   ` Scott Wood
  2015-04-21  3:27                   ` Michael Ellerman
  0 siblings, 2 replies; 24+ messages in thread
From: Timur Tabi @ 2015-04-21  2:02 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, Timur Tabi, Richard Schmitt, Lijun Pan

On Mon, Apr 20, 2015 at 3:31 PM, Scott Wood <scottwood@freescale.com> wrote:
>
>
> The ability to merge configs is already there.  We're just talking about
> using that functionality.

Why do you need a powerpc-specific way to use merge_config.sh?  Other
architectures have the same problem with defconfigs.

Besides, wouldn't it make more sense to define a new defconfig type,
like p1_defconfig.merge, and if you do "make p1_defconfig.merge" it
knows to call merge_config.sh?

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21  2:02                 ` Timur Tabi
@ 2015-04-21  2:09                   ` Scott Wood
  2015-04-21  3:42                     ` Timur Tabi
  2015-04-21  3:27                   ` Michael Ellerman
  1 sibling, 1 reply; 24+ messages in thread
From: Scott Wood @ 2015-04-21  2:09 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

On Mon, 2015-04-20 at 21:02 -0500, Timur Tabi wrote:
> On Mon, Apr 20, 2015 at 3:31 PM, Scott Wood <scottwood@freescale.com> wrote:
> >
> >
> > The ability to merge configs is already there.  We're just talking about
> > using that functionality.
> 
> Why do you need a powerpc-specific way to use merge_config.sh?  Other
> architectures have the same problem with defconfigs.

What are you perceiving as "powerpc-specific" about what we're
proposing?  Are you complaining about the actual content of which
fragments to use to produce which defconfigs going in arch/powerpc?

> Besides, wouldn't it make more sense to define a new defconfig type,
> like p1_defconfig.merge, and if you do "make p1_defconfig.merge" it
> knows to call merge_config.sh?

That's already there.  "make <foo>.config".

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21  2:02                 ` Timur Tabi
  2015-04-21  2:09                   ` Scott Wood
@ 2015-04-21  3:27                   ` Michael Ellerman
  1 sibling, 0 replies; 24+ messages in thread
From: Michael Ellerman @ 2015-04-21  3:27 UTC (permalink / raw)
  To: Timur Tabi; +Cc: Scott Wood, linuxppc-dev, Lijun Pan, Richard Schmitt

On Mon, 2015-04-20 at 21:02 -0500, Timur Tabi wrote:
> On Mon, Apr 20, 2015 at 3:31 PM, Scott Wood <scottwood@freescale.com> wrote:
> >
> >
> > The ability to merge configs is already there.  We're just talking about
> > using that functionality.
> 
> Why do you need a powerpc-specific way to use merge_config.sh?  Other
> architectures have the same problem with defconfigs.

Because no one has written a generic way to do it, are you volunteering?

> Besides, wouldn't it make more sense to define a new defconfig type,
> like p1_defconfig.merge, and if you do "make p1_defconfig.merge" it
> knows to call merge_config.sh?

No, we want the existing defconfig names to continue working.

cheers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21  2:09                   ` Scott Wood
@ 2015-04-21  3:42                     ` Timur Tabi
  2015-04-21  5:01                       ` Scott Wood
  0 siblings, 1 reply; 24+ messages in thread
From: Timur Tabi @ 2015-04-21  3:42 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

Scott Wood wrote:
>> >
>> >Why do you need a powerpc-specific way to use merge_config.sh?  Other
>> >architectures have the same problem with defconfigs.

> What are you perceiving as "powerpc-specific" about what we're
> proposing?

Well, there's the subject of this thread, which is "new way of writing 
defconfigs for freescale's powerpc platforms".

 > Are you complaining about the actual content of which
> fragments to use to produce which defconfigs going in arch/powerpc?

No, I'm just trying to figure out what's powerpc-specific about Lijun's 
proposal.

>> >Besides, wouldn't it make more sense to define a new defconfig type,
>> >like p1_defconfig.merge, and if you do "make p1_defconfig.merge" it
>> >knows to call merge_config.sh?

> That's already there.  "make <foo>.config".

Ok, so I'm definitely confused now.  I have no idea what's actually 
being proposed, since apparently the ability to have merge configs 
already exists.

Wouldn't it just be simpler to pass multiple defconfigs to 'make', and 
then 'make' will know to call merge_config.sh on them?  So instead of

make ./scripts/kconfig/merge_config.sh 
arch/powerpc/configs/fsl_basic_config p1_defconfig
make

we can just do

make fsl_basic_config p1_defconfig
make


-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21  3:42                     ` Timur Tabi
@ 2015-04-21  5:01                       ` Scott Wood
  2015-04-21 13:25                         ` Timur Tabi
  0 siblings, 1 reply; 24+ messages in thread
From: Scott Wood @ 2015-04-21  5:01 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

On Mon, 2015-04-20 at 22:42 -0500, Timur Tabi wrote:
> Scott Wood wrote:
> >> >
> >> >Why do you need a powerpc-specific way to use merge_config.sh?  Other
> >> >architectures have the same problem with defconfigs.
> 
> > What are you perceiving as "powerpc-specific" about what we're
> > proposing?
> 
> Well, there's the subject of this thread, which is "new way of writing 
> defconfigs for freescale's powerpc platforms".
> 
>  > Are you complaining about the actual content of which
> > fragments to use to produce which defconfigs going in arch/powerpc?
> 
> No, I'm just trying to figure out what's powerpc-specific about Lijun's 
> proposal.

The set of defconfigs that we're talking about refactoring to use this
mechanism.

> >> >Besides, wouldn't it make more sense to define a new defconfig type,
> >> >like p1_defconfig.merge, and if you do "make p1_defconfig.merge" it
> >> >knows to call merge_config.sh?
> 
> > That's already there.  "make <foo>.config".
> 
> Ok, so I'm definitely confused now.  I have no idea what's actually 
> being proposed, since apparently the ability to have merge configs 
> already exists.

The proposal is that we make use of that mechanism.

> Wouldn't it just be simpler to pass multiple defconfigs to 'make', and 
> then 'make' will know to call merge_config.sh on them?  So instead of
> 
> make ./scripts/kconfig/merge_config.sh 
> arch/powerpc/configs/fsl_basic_config p1_defconfig
> make
> 
> we can just do
> 
> make fsl_basic_config p1_defconfig
> make

We want single-name config targets to still work from the user's
perspective, but we want to reduce the (often imperfect) duplication
under the hood.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21  5:01                       ` Scott Wood
@ 2015-04-21 13:25                         ` Timur Tabi
  2015-04-21 17:55                           ` Scott Wood
  0 siblings, 1 reply; 24+ messages in thread
From: Timur Tabi @ 2015-04-21 13:25 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

Scott Wood wrote:
> We want single-name config targets to still work from the user's
> perspective, but we want to reduce the (often imperfect) duplication
> under the hood.

Ok, then define a new Kconfig option that merge_config.sh will look for. 
  So in p1_defconfig, there will be this line:

CONFIG_OTHER_DEFCONFIGS=fsl_basic_config

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21 13:25                         ` Timur Tabi
@ 2015-04-21 17:55                           ` Scott Wood
  2015-04-21 18:11                             ` Timur Tabi
  0 siblings, 1 reply; 24+ messages in thread
From: Scott Wood @ 2015-04-21 17:55 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

On Tue, 2015-04-21 at 08:25 -0500, Timur Tabi wrote:
> Scott Wood wrote:
> > We want single-name config targets to still work from the user's
> > perspective, but we want to reduce the (often imperfect) duplication
> > under the hood.
> 
> Ok, then define a new Kconfig option that merge_config.sh will look for. 
>   So in p1_defconfig, there will be this line:
> 
> CONFIG_OTHER_DEFCONFIGS=fsl_basic_config

If you want to do that go ahead.  In the meantime we'll use the
mechanism that already exists.

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21 17:55                           ` Scott Wood
@ 2015-04-21 18:11                             ` Timur Tabi
  2015-04-21 18:12                               ` Scott Wood
  0 siblings, 1 reply; 24+ messages in thread
From: Timur Tabi @ 2015-04-21 18:11 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

On 04/21/2015 12:55 PM, Scott Wood wrote:
>> >
>> >Ok, then define a new Kconfig option that merge_config.sh will look for.
>> >   So in p1_defconfig, there will be this line:
>> >
>> >CONFIG_OTHER_DEFCONFIGS=fsl_basic_config
> If you want to do that go ahead.  In the meantime we'll use the
> mechanism that already exists.

Dude, you are not making any sense.  If there is a mechanism that 
already exists, then what are we talking about?

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: new way of writing defconfigs for freescale's powerpc platforms
  2015-04-21 18:11                             ` Timur Tabi
@ 2015-04-21 18:12                               ` Scott Wood
  0 siblings, 0 replies; 24+ messages in thread
From: Scott Wood @ 2015-04-21 18:12 UTC (permalink / raw)
  To: Timur Tabi; +Cc: linuxppc-dev, Richard Schmitt, Lijun Pan

On Tue, 2015-04-21 at 13:11 -0500, Timur Tabi wrote:
> On 04/21/2015 12:55 PM, Scott Wood wrote:
> >> >
> >> >Ok, then define a new Kconfig option that merge_config.sh will look for.
> >> >   So in p1_defconfig, there will be this line:
> >> >
> >> >CONFIG_OTHER_DEFCONFIGS=fsl_basic_config
> > If you want to do that go ahead.  In the meantime we'll use the
> > mechanism that already exists.
> 
> Dude, you are not making any sense.  If there is a mechanism that 
> already exists, then what are we talking about?

Using it!

-Scott

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-04-21 18:20 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 21:52 new way of writing defconfigs for freescale's powerpc platforms Lijun Pan
2015-04-09 22:31 ` Scott Wood
2015-04-16  4:44   ` Bob Cochran
2015-04-16 13:20     ` Bob Cochran
2015-04-16 13:37       ` Richard Schmitt
2015-04-16 18:39     ` Scott Wood
2015-04-16 17:04   ` Lijun Pan
2015-04-17  0:54 ` Michael Ellerman
2015-04-17  4:13   ` Scott Wood
2015-04-17  6:18     ` Michael Ellerman
2015-04-17 18:50       ` Lijun Pan
2015-04-17 18:52         ` Scott Wood
2015-04-18  4:53           ` Lijun Pan
2015-04-18 13:46             ` Timur Tabi
2015-04-20 20:31               ` Scott Wood
2015-04-21  2:02                 ` Timur Tabi
2015-04-21  2:09                   ` Scott Wood
2015-04-21  3:42                     ` Timur Tabi
2015-04-21  5:01                       ` Scott Wood
2015-04-21 13:25                         ` Timur Tabi
2015-04-21 17:55                           ` Scott Wood
2015-04-21 18:11                             ` Timur Tabi
2015-04-21 18:12                               ` Scott Wood
2015-04-21  3:27                   ` Michael Ellerman

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.