All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] how to make two defconfig simultaneously
@ 2020-04-09  8:13 Jerry Huang
  2020-04-09 11:34 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Jerry Huang @ 2020-04-09  8:13 UTC (permalink / raw)
  To: buildroot

Hi, all guys,
Is there any mechanism to make two defconfig simultaneously ?
For example:
"make xxx_defcofnig yyy_defconfig"

After doing this operation, .config file will be created according to these two defconfig xxx_defcofnig and yyy_defconfig.

Best Regards
Jerry Huang

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

* [Buildroot] how to make two defconfig simultaneously
  2020-04-09  8:13 [Buildroot] how to make two defconfig simultaneously Jerry Huang
@ 2020-04-09 11:34 ` Thomas Petazzoni
  2020-04-09 12:16   ` Vladimir Oltean
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2020-04-09 11:34 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 9 Apr 2020 08:13:52 +0000
Jerry Huang <jerry.huang@nxp.com> wrote:

> Hi, all guys,
> Is there any mechanism to make two defconfig simultaneously ?
> For example:
> "make xxx_defcofnig yyy_defconfig"

It is not clear what you want to achieve. Do you want to build
xxx_defconfig and yyy_defconfig as two separate configurations and two
separate builds ?

Or do you want to combine them together because each describes only one
part of the overall system ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] how to make two defconfig simultaneously
  2020-04-09 11:34 ` Thomas Petazzoni
@ 2020-04-09 12:16   ` Vladimir Oltean
  2020-04-09 12:25     ` Thomas Petazzoni
  2020-04-09 12:59     ` [Buildroot] [EXT] " Jerry Huang
  0 siblings, 2 replies; 8+ messages in thread
From: Vladimir Oltean @ 2020-04-09 12:16 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Thu, 9 Apr 2020 at 14:34, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello,
>
> On Thu, 9 Apr 2020 08:13:52 +0000
> Jerry Huang <jerry.huang@nxp.com> wrote:
>
> > Hi, all guys,
> > Is there any mechanism to make two defconfig simultaneously ?
> > For example:
> > "make xxx_defcofnig yyy_defconfig"
>
> It is not clear what you want to achieve. Do you want to build
> xxx_defconfig and yyy_defconfig as two separate configurations and two
> separate builds ?
>
> Or do you want to combine them together because each describes only one
> part of the overall system ?
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

I would assume the question is about merging a defconfig with multiple
fragments.

Thanks,
-Vladimir

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

* [Buildroot] how to make two defconfig simultaneously
  2020-04-09 12:16   ` Vladimir Oltean
@ 2020-04-09 12:25     ` Thomas Petazzoni
  2020-04-09 12:45       ` Vladimir Oltean
  2020-04-09 12:59     ` [Buildroot] [EXT] " Jerry Huang
  1 sibling, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2020-04-09 12:25 UTC (permalink / raw)
  To: buildroot

On Thu, 9 Apr 2020 15:16:36 +0300
Vladimir Oltean <olteanv@gmail.com> wrote:

> > Thomas Petazzoni, CTO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com  
> 
> I would assume the question is about merging a defconfig with multiple
> fragments.

Then:

$ ./support/kconfig/merge_config.sh fragment1 fragment2

see also
https://bootlin.com/doc/training/buildroot/buildroot-slides.pdf slides
43 and 44.

However, I would recommend to *not* store fragments under configs/ with
a _defconfig suffix, as this is normally used for complete defconfigs,
not fragments.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] how to make two defconfig simultaneously
  2020-04-09 12:25     ` Thomas Petazzoni
@ 2020-04-09 12:45       ` Vladimir Oltean
  2020-04-09 13:03         ` [Buildroot] [EXT] " Jerry Huang
  2020-04-09 13:18         ` [Buildroot] " Thomas Petazzoni
  0 siblings, 2 replies; 8+ messages in thread
From: Vladimir Oltean @ 2020-04-09 12:45 UTC (permalink / raw)
  To: buildroot

On Thu, 9 Apr 2020 at 15:25, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Thu, 9 Apr 2020 15:16:36 +0300
> Vladimir Oltean <olteanv@gmail.com> wrote:
>
> > > Thomas Petazzoni, CTO, Bootlin
> > > Embedded Linux and Kernel engineering
> > > https://bootlin.com
> >
> > I would assume the question is about merging a defconfig with multiple
> > fragments.
>
> Then:
>
> $ ./support/kconfig/merge_config.sh fragment1 fragment2
>
> see also
> https://bootlin.com/doc/training/buildroot/buildroot-slides.pdf slides
> 43 and 44.
>
> However, I would recommend to *not* store fragments under configs/ with
> a _defconfig suffix, as this is normally used for complete defconfigs,
> not fragments.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

Ok, this answers the 'how to merge them' portion of the question.
Are there guidelines for where defconfig fragments _can_ be stored,
how they should be structured, named, what they can contain? All the
files that I see in the configs/ folder are simple defconfigs.

Thanks,
-Vladimir

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

* [Buildroot] [EXT] Re: how to make two defconfig simultaneously
  2020-04-09 12:16   ` Vladimir Oltean
  2020-04-09 12:25     ` Thomas Petazzoni
@ 2020-04-09 12:59     ` Jerry Huang
  1 sibling, 0 replies; 8+ messages in thread
From: Jerry Huang @ 2020-04-09 12:59 UTC (permalink / raw)
  To: buildroot


Best Regards
Jerry Huang

> -----Original Message-----
> From: Vladimir Oltean <olteanv@gmail.com>
> Sent: Thursday, April 9, 2020 8:17 PM
> To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Jerry Huang <jerry.huang@nxp.com>; Heiko Thiery
> <heiko.thiery@gmail.com>; buildroot at busybox.net; Michael Walle
> <michael@walle.cc>; matthew.weber at collins.com; geomatsi at gmail.com
> Subject: [EXT] Re: [Buildroot] how to make two defconfig simultaneously
> 
> Caution: EXT Email
> 
> Hi Thomas,
> 
> On Thu, 9 Apr 2020 at 14:34, Thomas Petazzoni
> <thomas.petazzoni@bootlin.com> wrote:
> >
> > Hello,
> >
> > On Thu, 9 Apr 2020 08:13:52 +0000
> > Jerry Huang <jerry.huang@nxp.com> wrote:
> >
> > > Hi, all guys,
> > > Is there any mechanism to make two defconfig simultaneously ?
> > > For example:
> > > "make xxx_defcofnig yyy_defconfig"
> >
> > It is not clear what you want to achieve. Do you want to build
> > xxx_defconfig and yyy_defconfig as two separate configurations and two
> > separate builds ?
> >
> > Or do you want to combine them together because each describes only
> > one part of the overall system ?
> >
> > Thomas
> > --
> > Thomas Petazzoni, CTO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fboot
> >
> lin.com%2F&amp;data=02%7C01%7Cjerry.huang%40nxp.com%7Ce7d05d28845
> b4814
> >
> 915308d7dc7fe08d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63
> 722031
> >
> 4094883841&amp;sdata=Sd7B87UCsB8NS3js1OtmDEytOeClhUOFHfXTrhWqsn
> M%3D&am
> > p;reserved=0
> 
> I would assume the question is about merging a defconfig with multiple
> fragments.
Yes, this is my purpose.

> Thanks,
> -Vladimir

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

* [Buildroot] [EXT] Re: how to make two defconfig simultaneously
  2020-04-09 12:45       ` Vladimir Oltean
@ 2020-04-09 13:03         ` Jerry Huang
  2020-04-09 13:18         ` [Buildroot] " Thomas Petazzoni
  1 sibling, 0 replies; 8+ messages in thread
From: Jerry Huang @ 2020-04-09 13:03 UTC (permalink / raw)
  To: buildroot



Best Regards
Jerry Huang

> -----Original Message-----
> From: Vladimir Oltean <olteanv@gmail.com>
> Sent: Thursday, April 9, 2020 8:46 PM
> To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Jerry Huang <jerry.huang@nxp.com>; Heiko Thiery
> <heiko.thiery@gmail.com>; buildroot at busybox.net; Michael Walle
> <michael@walle.cc>; matthew.weber at collins.com; geomatsi at gmail.com
> Subject: [EXT] Re: [Buildroot] how to make two defconfig simultaneously
> 
> Caution: EXT Email
> 
> On Thu, 9 Apr 2020 at 15:25, Thomas Petazzoni
> <thomas.petazzoni@bootlin.com> wrote:
> >
> > On Thu, 9 Apr 2020 15:16:36 +0300
> > Vladimir Oltean <olteanv@gmail.com> wrote:
> >
> > > > Thomas Petazzoni, CTO, Bootlin
> > > > Embedded Linux and Kernel engineering
> > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
> > > >
> bootlin.com%2F&amp;data=02%7C01%7Cjerry.huang%40nxp.com%7Caa2566c
> 3
> > > >
> daca4d2d7f4a08d7dc83ed07%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%
> 7C
> > > >
> 1%7C637220331486875411&amp;sdata=cE7A7OhJopKeT7Z7ZvvIhaC6fJ9VdfFKC
> > > > 1IAns0ZwCc%3D&amp;reserved=0
> > >
> > > I would assume the question is about merging a defconfig with
> > > multiple fragments.
> >
> > Then:
> >
> > $ ./support/kconfig/merge_config.sh fragment1 fragment2
> >
> > see also
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fboot
> > lin.com%2Fdoc%2Ftraining%2Fbuildroot%2Fbuildroot-slides.pdf&amp;data=0
> >
> 2%7C01%7Cjerry.huang%40nxp.com%7Caa2566c3daca4d2d7f4a08d7dc83ed07
> %7C68
> >
> 6ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637220331486875411&amp
> ;sdata=
> >
> WbhRwcsABaCuTXLRIPz%2F0AqVbgZPXeFjA6lg%2BM6WL34%3D&amp;reserve
> d=0
> > slides
> > 43 and 44.
> >
> > However, I would recommend to *not* store fragments under configs/
> > with a _defconfig suffix, as this is normally used for complete
> > defconfigs, not fragments.
> >
> > Thomas
> > --
> > Thomas Petazzoni, CTO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fboot
> >
> lin.com%2F&amp;data=02%7C01%7Cjerry.huang%40nxp.com%7Caa2566c3dac
> a4d2d
> >
> 7f4a08d7dc83ed07%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C63
> 722033
> >
> 1486885410&amp;sdata=s9%2F4o8MhHm7fftdxDYiaFBF1kwo544D6l5TkRuqZN
> qI%3D&
> > amp;reserved=0
> 
> Ok, this answers the 'how to merge them' portion of the question.
> Are there guidelines for where defconfig fragments _can_ be stored, how they
> should be structured, named, what they can contain? All the files that I see in
> the configs/ folder are simple defconfigs.

They are that I want to know.


> Thanks,
> -Vladimir

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

* [Buildroot] how to make two defconfig simultaneously
  2020-04-09 12:45       ` Vladimir Oltean
  2020-04-09 13:03         ` [Buildroot] [EXT] " Jerry Huang
@ 2020-04-09 13:18         ` Thomas Petazzoni
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2020-04-09 13:18 UTC (permalink / raw)
  To: buildroot

On Thu, 9 Apr 2020 15:45:35 +0300
Vladimir Oltean <olteanv@gmail.com> wrote:

> Ok, this answers the 'how to merge them' portion of the question.
> Are there guidelines for where defconfig fragments _can_ be stored,
> how they should be structured, named, what they can contain? All the
> files that I see in the configs/ folder are simple defconfigs.

They can be stored wherever you want, and there are no particular
guidelines on how they should be structured. Each project will have its
own constraints. What matters is that Buildroot takes as input a single
.config file: how this .config file is produced is not relevant to
Buildroot.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2020-04-09 13:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09  8:13 [Buildroot] how to make two defconfig simultaneously Jerry Huang
2020-04-09 11:34 ` Thomas Petazzoni
2020-04-09 12:16   ` Vladimir Oltean
2020-04-09 12:25     ` Thomas Petazzoni
2020-04-09 12:45       ` Vladimir Oltean
2020-04-09 13:03         ` [Buildroot] [EXT] " Jerry Huang
2020-04-09 13:18         ` [Buildroot] " Thomas Petazzoni
2020-04-09 12:59     ` [Buildroot] [EXT] " Jerry Huang

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.