* [Buildroot] [Q] Make kconfig more flexible with selecting options
@ 2019-04-04 15:10 Vadim Kochan
2019-04-05 5:19 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Vadim Kochan @ 2019-04-04 15:10 UTC (permalink / raw)
To: buildroot
Hi All!
I am almost sure that the idea will be rejected but I will try)
I am trying to make external buildroot trees ability to select any
config option,
even if it is not boolean or tristate.
For example, I have external rpi br2 tree which in case of u-boot would
select default uboot board name as "rpi_3_32b" (BR2_TARGET_UBOOT_BOARD_DEFCONFIG
if it not set already), something like this:
----------------
config XXX
default BR2_TARGET_UBOOT_BOARD_DEFCONFIG "rpi_3_32b"
-----------------
of course to make it possible it needs to extend the kconfig parser,
there is one
RFC which I think allows to select config option with value other than
tristate or boolean:
https://marc.info/?l=linux-kbuild&m=127956469118089&w=2
and the linux kernel community rejected this approach ( I did not dig
into the implementation in details).
Regards,
Vadim Kochan
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [Q] Make kconfig more flexible with selecting options
2019-04-04 15:10 [Buildroot] [Q] Make kconfig more flexible with selecting options Vadim Kochan
@ 2019-04-05 5:19 ` Peter Korsgaard
2019-04-05 8:50 ` Vadym Kochan
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2019-04-05 5:19 UTC (permalink / raw)
To: buildroot
>>>>> "Vadim" == Vadim Kochan <vadim4j@gmail.com> writes:
> Hi All!
> I am almost sure that the idea will be rejected but I will try)
> I am trying to make external buildroot trees ability to select any
> config option,
> even if it is not boolean or tristate.
> For example, I have external rpi br2 tree which in case of u-boot would
> select default uboot board name as "rpi_3_32b" (BR2_TARGET_UBOOT_BOARD_DEFCONFIG
> if it not set already), something like this:
> ----------------
> config XXX
> default BR2_TARGET_UBOOT_BOARD_DEFCONFIG "rpi_3_32b"
> -----------------
> of course to make it possible it needs to extend the kconfig parser,
> there is one
> RFC which I think allows to select config option with value other than
> tristate or boolean:
> https://marc.info/?l=linux-kbuild&m=127956469118089&w=2
> and the linux kernel community rejected this approach ( I did not dig
> into the implementation in details).
Applying an unmaintained intrusive patch from 2010 is not really a
realistic option. Did you try the alternative proposed in the mailing
list thread?
E.G. add something like this to your overlay:
config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
string
default "rpi_3_32b"
Then the u-boot defconfig option should afaik default to that.
But I am not quite sure why you would want to do this in the first place
instead of just providing a defconfig file with the right options set?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [Q] Make kconfig more flexible with selecting options
2019-04-05 5:19 ` Peter Korsgaard
@ 2019-04-05 8:50 ` Vadym Kochan
0 siblings, 0 replies; 3+ messages in thread
From: Vadym Kochan @ 2019-04-05 8:50 UTC (permalink / raw)
To: buildroot
Hi Peter,
On Fri, Apr 05, 2019 at 07:19:04AM +0200, Peter Korsgaard wrote:
> >>>>> "Vadim" == Vadim Kochan <vadim4j@gmail.com> writes:
>
> > Hi All!
> > I am almost sure that the idea will be rejected but I will try)
>
> > I am trying to make external buildroot trees ability to select any
> > config option,
> > even if it is not boolean or tristate.
>
> > For example, I have external rpi br2 tree which in case of u-boot would
> > select default uboot board name as "rpi_3_32b" (BR2_TARGET_UBOOT_BOARD_DEFCONFIG
> > if it not set already), something like this:
>
> > ----------------
> > config XXX
> > default BR2_TARGET_UBOOT_BOARD_DEFCONFIG "rpi_3_32b"
> > -----------------
>
> > of course to make it possible it needs to extend the kconfig parser,
> > there is one
> > RFC which I think allows to select config option with value other than
> > tristate or boolean:
>
> > https://marc.info/?l=linux-kbuild&m=127956469118089&w=2
>
> > and the linux kernel community rejected this approach ( I did not dig
> > into the implementation in details).
>
> Applying an unmaintained intrusive patch from 2010 is not really a
> realistic option. Did you try the alternative proposed in the mailing
> list thread?
>
> E.G. add something like this to your overlay:
>
> config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
> string
> default "rpi_3_32b"
>
> Then the u-boot defconfig option should afaik default to that.
>
> But I am not quite sure why you would want to do this in the first place
> instead of just providing a defconfig file with the right options set?
Thank you! I tried just copy whole original BR2_TARGET_UBOOT_BOARD_DEFCONFIG with
different value and it did not work, but your shorter sample really
works. So thank you for your suggestion)
Regards,
Vadim Kochan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-05 8:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 15:10 [Buildroot] [Q] Make kconfig more flexible with selecting options Vadim Kochan
2019-04-05 5:19 ` Peter Korsgaard
2019-04-05 8:50 ` Vadym Kochan
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.