[ANNOUNCE] Kconfiglib GUI menuconfig

2019-05-04 Thread Ulf Magnusson
Hello, Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a Tkinter-based guiconfig.py in addition to the curses-based menuconfig.py. It has been tested on Linux, Windows, and macOS. See https://github.com/ulfalizer/Kconfiglib#menuconfig-interfaces for a screenshot (with show-all mode

Re: [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-05 Thread Ulf Magnusson
On Thu, Oct 4, 2018 at 10:03 PM Luis Chamberlain wrote: > > Every now and then a project is born, and they decide to use Linux's > kconfig to enable configuration of their project. As it stands we *know* > kconfig is now used in at least over 12 different projects [0]. I myself > added kconfig to

Re: [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-05 Thread Ulf Magnusson
On Thu, Oct 4, 2018 at 10:03 PM Luis Chamberlain wrote: > > Every now and then a project is born, and they decide to use Linux's > kconfig to enable configuration of their project. As it stands we *know* > kconfig is now used in at least over 12 different projects [0]. I myself > added kconfig to

[ANNOUNCE] Kconfiglib menuconfig and documentation generation updates

2018-09-27 Thread Ulf Magnusson
Hello, Here's two small Kconfiglib (https://github.com/ulfalizer/kconfiglib) updates. First, I've made it a lot easier to try out the menuconfig implementation on the kernel. This will work now, in the kernel root: $ git clone https://github.com/ulfalizer/Kconfiglib.git $ git am

[ANNOUNCE] Kconfiglib menuconfig and documentation generation updates

2018-09-27 Thread Ulf Magnusson
Hello, Here's two small Kconfiglib (https://github.com/ulfalizer/kconfiglib) updates. First, I've made it a lot easier to try out the menuconfig implementation on the kernel. This will work now, in the kernel root: $ git clone https://github.com/ulfalizer/Kconfiglib.git $ git am

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-26 Thread Ulf Magnusson
On Thu, May 24, 2018 at 6:45 AM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > 2018-05-21 20:06 GMT+09:00 Ulf Magnusson <ulfali...@gmail.com>: > >>> >>> static char *__expand_string(const char **str, bool (*is_end)(const char *)) >>&g

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-26 Thread Ulf Magnusson
On Thu, May 24, 2018 at 6:45 AM, Masahiro Yamada wrote: > 2018-05-21 20:06 GMT+09:00 Ulf Magnusson : > >>> >>> static char *__expand_string(const char **str, bool (*is_end)(const char *)) >>> { >>> const char *in, *prev_in, *p; >>>

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-22 Thread Ulf Magnusson
On Mon, May 21, 2018 at 5:47 AM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/20/2018 08:33 PM, Ulf Magnusson wrote: >> On Mon, May 21, 2018 at 4:45 AM, Randy Dunlap <rdun...@infradead.org> wrote: >>> On 05/19/2018 09:47 PM, Ulf Magnusson wrote: >>>&

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-22 Thread Ulf Magnusson
On Mon, May 21, 2018 at 5:47 AM, Randy Dunlap wrote: > On 05/20/2018 08:33 PM, Ulf Magnusson wrote: >> On Mon, May 21, 2018 at 4:45 AM, Randy Dunlap wrote: >>> On 05/19/2018 09:47 PM, Ulf Magnusson wrote: >>>> On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap >>

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Tue, May 22, 2018 at 6:50 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada > <yamada.masah...@socionext.com> wrote: >> 2018-05-22 0:10 GMT+09:00 Ulf Magnusson <ulfali...@gmail.com>: >>> On Mon, May 21,

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Tue, May 22, 2018 at 6:50 AM, Ulf Magnusson wrote: > On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada > wrote: >> 2018-05-22 0:10 GMT+09:00 Ulf Magnusson : >>> On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: >>>> On Mon, May 21, 2018 at 4:23 PM, Ulf Ma

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > 2018-05-22 0:10 GMT+09:00 Ulf Magnusson <ulfali...@gmail.com>: >> On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: >>> On Mon, May 21, 20

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada wrote: > 2018-05-22 0:10 GMT+09:00 Ulf Magnusson : >> On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: >>> On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: >>>> On Sun, May 20, 2018 a

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: >> On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg <s...@ravnborg.org> wrote: >>> Will the following be equal

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: > On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: >> On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: >>> Will the following be equal: >>> >>> $(foo,abc,$(x),$(y)) >>> $

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg <s...@ravnborg.org> wrote: >> Will the following be equal: >> >> $(foo,abc,$(x),$(y)) >> $(foo, abc, $(x), $(y))

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: > On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: >> Will the following be equal: >> >> $(foo,abc,$(x),$(y)) >> $(foo, abc, $(x), $(y)) >> >> make is rather annoying as space

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: > Will the following be equal: > > $(foo,abc,$(x),$(y)) > $(foo, abc, $(x), $(y)) > > make is rather annoying as space is significant, but there seems no good > reason > for kconfig to inheritate this. > So

Re: [PATCH v4 07/31] kconfig: add built-in function support

2018-05-21 Thread Ulf Magnusson
On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: > Will the following be equal: > > $(foo,abc,$(x),$(y)) > $(foo, abc, $(x), $(y)) > > make is rather annoying as space is significant, but there seems no good > reason > for kconfig to inheritate this. > So unless there are

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 1:06 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Mon, May 21, 2018 at 6:43 AM, Masahiro Yamada > <yamada.masah...@socionext.com> wrote: >> Hi. >> >> >> >> 2018-05-21 0:46 GMT+09:00 Ulf Magnusson <ulfali...@gmai

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 1:06 PM, Ulf Magnusson wrote: > On Mon, May 21, 2018 at 6:43 AM, Masahiro Yamada > wrote: >> Hi. >> >> >> >> 2018-05-21 0:46 GMT+09:00 Ulf Magnusson : >> >>> s/environments/environment variables/ >> >&g

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 6:43 AM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > Hi. > > > > 2018-05-21 0:46 GMT+09:00 Ulf Magnusson <ulfali...@gmail.com>: > >> s/environments/environment variables/ > > Will fix. > > >> >

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-21 Thread Ulf Magnusson
On Mon, May 21, 2018 at 6:43 AM, Masahiro Yamada wrote: > Hi. > > > > 2018-05-21 0:46 GMT+09:00 Ulf Magnusson : > >> s/environments/environment variables/ > > Will fix. > > >> >>> +* They will be written out to include/config/auto.conf.

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-20 Thread Ulf Magnusson
On Mon, May 21, 2018 at 4:45 AM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/19/2018 09:47 PM, Ulf Magnusson wrote: >> On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap <rdun...@infradead.org> wrote: >>> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>>

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-20 Thread Ulf Magnusson
On Mon, May 21, 2018 at 4:45 AM, Randy Dunlap wrote: > On 05/19/2018 09:47 PM, Ulf Magnusson wrote: >> On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap wrote: >>> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>>> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >&

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-20 Thread Ulf Magnusson
On Thu, May 17, 2018 at 8:16 AM, Masahiro Yamada wrote: > To get access to environment variables, Kconfig needs to define a > symbol using "option env=" syntax. It is tedious to add a symbol entry > for each environment variable given that we need to define much

Re: [PATCH v4 03/31] kconfig: reference environment variables directly and remove 'option env='

2018-05-20 Thread Ulf Magnusson
On Thu, May 17, 2018 at 8:16 AM, Masahiro Yamada wrote: > To get access to environment variables, Kconfig needs to define a > symbol using "option env=" syntax. It is tedious to add a symbol entry > for each environment variable given that we need to define much more > such as 'CC', 'AS',

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-20 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-20 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol now. >>> Regular ex

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-20 Thread Ulf Magnusson
On Sun, May 20, 2018 at 5:45 AM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >> Hello, >> >> I've added incremental search for jumping directly to a symbol now. >> Regular expressions are supported as well. >>

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-20 Thread Ulf Magnusson
On Sun, May 20, 2018 at 5:45 AM, Randy Dunlap wrote: > On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >> Hello, >> >> I've added incremental search for jumping directly to a symbol now. >> Regular expressions are supported as well. >> >&

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:24 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Sun, May 20, 2018 at 5:51 AM, Randy Dunlap <rdun...@infradead.org> wrote: >> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>>&g

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:24 AM, Ulf Magnusson wrote: > On Sun, May 20, 2018 at 5:51 AM, Randy Dunlap wrote: >> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> I've added i

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:47 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap <rdun...@infradead.org> wrote: >> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>>&g

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:47 AM, Ulf Magnusson wrote: > On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap wrote: >> On 05/19/2018 08:45 PM, Randy Dunlap wrote: >>> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> I've added i

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol now. >>> Regular ex

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 5:51 AM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-19 Thread Ulf Magnusson
On Sun, May 20, 2018 at 5:51 AM, Randy Dunlap wrote: > On 05/19/2018 08:45 PM, Randy Dunlap wrote: >> On 05/08/2018 09:59 AM, Ulf Magnusson wrote: >>> Hello, >>> >>> I've added incremental search for jumping directly to a symbol now. >>> Regular ex

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-14 Thread Ulf Magnusson
On Mon, May 14, 2018 at 6:58 PM, Pavel Machek wrote: > Hi! > >> > config CAN_PEAK_PCIEFD >> > depends on PCI >> > tristate "PEAK-System PCAN-PCIe FD cards" >> > ---help--- >> > This driver adds support for the PEAK-System PCI Express FD >> >

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-14 Thread Ulf Magnusson
On Mon, May 14, 2018 at 6:58 PM, Pavel Machek wrote: > Hi! > >> > config CAN_PEAK_PCIEFD >> > depends on PCI >> > tristate "PEAK-System PCAN-PCIe FD cards" >> > ---help--- >> > This driver adds support for the PEAK-System PCI Express FD >> > CAN-FD

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-10 Thread Ulf Magnusson
On Tue, May 8, 2018 at 6:59 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > Hello, > > I've added incremental search for jumping directly to a symbol now. > Regular expressions are supported as well. > > Some screenshots below: > > https://raw.githubuserco

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-10 Thread Ulf Magnusson
On Tue, May 8, 2018 at 6:59 PM, Ulf Magnusson wrote: > Hello, > > I've added incremental search for jumping directly to a symbol now. > Regular expressions are supported as well. > > Some screenshots below: > > https://raw.githubusercontent.com/ulfalizer/Kconfiglib/scre

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-08 Thread Ulf Magnusson
Hello, I've added incremental search for jumping directly to a symbol now. Regular expressions are supported as well. Some screenshots below: https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss10.png

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-08 Thread Ulf Magnusson
Hello, I've added incremental search for jumping directly to a symbol now. Regular expressions are supported as well. Some screenshots below: https://raw.githubusercontent.com/ulfalizer/Kconfiglib/screenshots/screenshots/ss10.png

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-03 Thread Ulf Magnusson
On Thu, May 3, 2018 at 10:28 PM, Randy Dunlap wrote: > Hi, > > (with new kconfiglib.py and menuconfig.py) > > Thanks for the fixes. > > If I use "LC_CTYPE=C.UTF-8" then I get the down arrows in the bottom colored > bar. Without that, I get an upside-down T (that is 193,

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-03 Thread Ulf Magnusson
On Thu, May 3, 2018 at 10:28 PM, Randy Dunlap wrote: > Hi, > > (with new kconfiglib.py and menuconfig.py) > > Thanks for the fixes. > > If I use "LC_CTYPE=C.UTF-8" then I get the down arrows in the bottom colored > bar. Without that, I get an upside-down T (that is 193, 0xc1, line drawing >

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-03 Thread Ulf Magnusson
On Thu, May 3, 2018 at 10:31 PM, Randy Dunlap wrote: > One minor nit (bikeshed?): I'm not crazy about "make scriptconfig". :) > > thanks, > -- > ~Randy To be honest, I just do ARCH=x86 SRCARCH=x86 KERNELVERSION=`make kernelversion` \ Kconfiglib/menuconfig.py

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-03 Thread Ulf Magnusson
On Thu, May 3, 2018 at 10:31 PM, Randy Dunlap wrote: > One minor nit (bikeshed?): I'm not crazy about "make scriptconfig". :) > > thanks, > -- > ~Randy To be honest, I just do ARCH=x86 SRCARCH=x86 KERNELVERSION=`make kernelversion` \ Kconfiglib/menuconfig.py Should probably add a

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-02 Thread Ulf Magnusson
On Tue, May 1, 2018 at 8:52 PM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/01/2018 11:13 AM, Randy Dunlap wrote: >> On 05/01/2018 10:56 AM, Randy Dunlap wrote: >>> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>&

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-02 Thread Ulf Magnusson
On Tue, May 1, 2018 at 8:52 PM, Randy Dunlap wrote: > On 05/01/2018 11:13 AM, Randy Dunlap wrote: >> On 05/01/2018 10:56 AM, Randy Dunlap wrote: >>> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> Kconfiglib (https://gi

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 9:47 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Tue, May 1, 2018 at 9:12 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: >> On Tue, May 1, 2018 at 7:56 PM, Randy Dunlap <rdun...@infradead.org> wrote: >>> On 04/30/2018 05:57

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 9:47 PM, Ulf Magnusson wrote: > On Tue, May 1, 2018 at 9:12 PM, Ulf Magnusson wrote: >> On Tue, May 1, 2018 at 7:56 PM, Randy Dunlap wrote: >>> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> Kconfi

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 9:12 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Tue, May 1, 2018 at 7:56 PM, Randy Dunlap <rdun...@infradead.org> wrote: >> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>> Hello, >>> >>> Kconfiglib (https://github.

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 9:12 PM, Ulf Magnusson wrote: > On Tue, May 1, 2018 at 7:56 PM, Randy Dunlap wrote: >> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>> Hello, >>> >>> Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a >>> te

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 8:52 PM, Randy Dunlap <rdun...@infradead.org> wrote: > On 05/01/2018 11:13 AM, Randy Dunlap wrote: >> On 05/01/2018 10:56 AM, Randy Dunlap wrote: >>> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>&

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 8:52 PM, Randy Dunlap wrote: > On 05/01/2018 11:13 AM, Randy Dunlap wrote: >> On 05/01/2018 10:56 AM, Randy Dunlap wrote: >>> On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> Kconfiglib (https://gi

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 7:56 PM, Randy Dunlap <rdun...@infradead.org> wrote: > On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >> Hello, >> >> Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a >> terminal menuconfig implementation, implemented in plain

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-01 Thread Ulf Magnusson
On Tue, May 1, 2018 at 7:56 PM, Randy Dunlap wrote: > On 04/30/2018 05:57 PM, Ulf Magnusson wrote: >> Hello, >> >> Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a >> terminal menuconfig implementation, implemented in plain curses >> (which

[ANNOUNCE] Kconfiglib menuconfig implementation

2018-04-30 Thread Ulf Magnusson
Hello, Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a terminal menuconfig implementation, implemented in plain curses (which is in the Python standard library). The interface should feel familiar to people used to mconf. It has some features that mconf lacks: - Seamless

[ANNOUNCE] Kconfiglib menuconfig implementation

2018-04-30 Thread Ulf Magnusson
Hello, Kconfiglib (https://github.com/ulfalizer/Kconfiglib) now has a terminal menuconfig implementation, implemented in plain curses (which is in the Python standard library). The interface should feel familiar to people used to mconf. It has some features that mconf lacks: - Seamless

Re: [PATCH 17/30] Documentation: kconfig: document a new Kconfig macro language

2018-04-18 Thread Ulf Magnusson
On Tue, Apr 17, 2018 at 5:07 PM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > 2018-04-15 17:08 GMT+09:00 Ulf Magnusson <ulfali...@gmail.com>: >> On Fri, Apr 13, 2018 at 7:06 AM, Masahiro Yamada >> <yamada.masah...@socionext.com> wrote: >>

Re: [PATCH 17/30] Documentation: kconfig: document a new Kconfig macro language

2018-04-18 Thread Ulf Magnusson
On Tue, Apr 17, 2018 at 5:07 PM, Masahiro Yamada wrote: > 2018-04-15 17:08 GMT+09:00 Ulf Magnusson : >> On Fri, Apr 13, 2018 at 7:06 AM, Masahiro Yamada >> wrote: >>> Add a document for the macro language introduced to Kconfig. >>> >>> The motivation o

Re: [PATCH 17/30] Documentation: kconfig: document a new Kconfig macro language

2018-04-15 Thread Ulf Magnusson
On Fri, Apr 13, 2018 at 7:06 AM, Masahiro Yamada wrote: > Add a document for the macro language introduced to Kconfig. > > The motivation of this work is to move the compiler option tests to > Kconfig from Makefile. A number of kernel features require the >

Re: [PATCH 17/30] Documentation: kconfig: document a new Kconfig macro language

2018-04-15 Thread Ulf Magnusson
On Fri, Apr 13, 2018 at 7:06 AM, Masahiro Yamada wrote: > Add a document for the macro language introduced to Kconfig. > > The motivation of this work is to move the compiler option tests to > Kconfig from Makefile. A number of kernel features require the > compiler support. Enabling such

Re: [PATCH 08/30] kconfig: add built-in function support

2018-04-15 Thread Ulf Magnusson
On Fri, Apr 13, 2018 at 7:06 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > This commit adds the basic infrastructure to

Re: [PATCH 08/30] kconfig: add built-in function support

2018-04-15 Thread Ulf Magnusson
On Fri, Apr 13, 2018 at 7:06 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > This commit adds the basic infrastructure to expand functions. > Change the

Re: [PATCH 20/30] kconfig: add basic helper macros to scripts/Kconfig.include

2018-04-15 Thread Ulf Magnusson
f-by: Masahiro Yamada <yamada.masah...@socionext.com> > Reviewed-by: Kees Cook <keesc...@chromium.org> > Reviewed-by: Ulf Magnusson <ulfali...@gmail.com> > --- > > Changes in v3: > - Move helpers to scripts/Kconfig.include > > Changes in v2: None >

Re: [PATCH 20/30] kconfig: add basic helper macros to scripts/Kconfig.include

2018-04-15 Thread Ulf Magnusson
ewed-by: Kees Cook > Reviewed-by: Ulf Magnusson > --- > > Changes in v3: > - Move helpers to scripts/Kconfig.include > > Changes in v2: None > > Kconfig | 2 ++ > MAINTAINERS | 1 + > scripts/Kconfig.include | 17 + > 3

Re: [PATCH v2 09/21] kconfig: add 'macro' keyword to support user-defined function

2018-04-01 Thread Ulf Magnusson
On Sun, Apr 1, 2018 at 8:05 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada > <yamada.masah...@socionext.com> wrote: >> Now, we got a basic ability to test compiler capability in Kconfig. >> >> config CC_HA

Re: [PATCH v2 09/21] kconfig: add 'macro' keyword to support user-defined function

2018-04-01 Thread Ulf Magnusson
On Sun, Apr 1, 2018 at 8:05 AM, Ulf Magnusson wrote: > On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada > wrote: >> Now, we got a basic ability to test compiler capability in Kconfig. >> >> config CC_HAS_STACKPROTECTOR >> def_bool $(shell (($CC -Werror -fsta

Re: [PATCH v2 10/21] kconfig: add 'success' and 'cc-option' macros

2018-04-01 Thread Ulf Magnusson
to y if the given compiler flag is supported, n otherwise > +macro cc-option $(success $CC -Werror $(1) -c -x c /dev/null -o /dev/null) > + > config CONSTRUCTORS > bool > depends on !UML > -- > 2.7.4 > Reviewed-by: Ulf Magnusson <ulfali...@gmail.com>

Re: [PATCH v2 10/21] kconfig: add 'success' and 'cc-option' macros

2018-04-01 Thread Ulf Magnusson
-option $(success $CC -Werror $(1) -c -x c /dev/null -o /dev/null) > + > config CONSTRUCTORS > bool > depends on !UML > -- > 2.7.4 > Reviewed-by: Ulf Magnusson Some other tests (e.g. scripts/*-stack-protector.sh) also pass -S and -O0 and stuff to speed things up

Re: [PATCH v2 09/21] kconfig: add 'macro' keyword to support user-defined function

2018-04-01 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > Now, we got a basic ability to test compiler capability in Kconfig. > > config CC_HAS_STACKPROTECTOR > def_bool $(shell (($CC -Werror -fstack-protector -c -x c /dev/null -o > /dev/null) && echo y) ||

Re: [PATCH v2 09/21] kconfig: add 'macro' keyword to support user-defined function

2018-04-01 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > Now, we got a basic ability to test compiler capability in Kconfig. > > config CC_HAS_STACKPROTECTOR > def_bool $(shell (($CC -Werror -fstack-protector -c -x c /dev/null -o > /dev/null) && echo y) || echo n) > > This works, but it

Re: [PATCH v2 08/21] kconfig: replace $UNAME_RELEASE with function call

2018-03-31 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > Now that 'shell' function is supported, this can be self-contained in > Kconfig. > > Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com> Reviewed-by: Ulf Magnusson <ulfali...@gmail.com>

Re: [PATCH v2 08/21] kconfig: replace $UNAME_RELEASE with function call

2018-03-31 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > Now that 'shell' function is supported, this can be self-contained in > Kconfig. > > Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-31 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-31 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by make.) > > Real examples will look

Re: [PATCH v2 06/21] kconfig: remove string expansion for mainmenu after yyparse()

2018-03-31 Thread Ulf Magnusson
4 ("kconfig: Don't leak > main menus during parsing") can go away. > > Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com> Reviewed-by: Ulf Magnusson <ulfali...@gmail.com>

Re: [PATCH v2 06/21] kconfig: remove string expansion for mainmenu after yyparse()

2018-03-31 Thread Ulf Magnusson
menus during parsing") can go away. > > Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson

Re: [PATCH v2 05/21] kconfig: remove string expansion in file_lookup()

2018-03-31 Thread Ulf Magnusson
h before expansion for look-up: > if (!strcmp(name, file->name)) { > > Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com> s/environments/environment variables/ Reviewed-by: Ulf Magnusson <ulfali...@gmail.com>

Re: [PATCH v2 05/21] kconfig: remove string expansion in file_lookup()

2018-03-31 Thread Ulf Magnusson
if (!strcmp(name, file->name)) { > > Signed-off-by: Masahiro Yamada s/environments/environment variables/ Reviewed-by: Ulf Magnusson

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-31 Thread Ulf Magnusson
On Sun, Apr 1, 2018 at 4:27 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > > AFAICS, we only need the following functionality: > > 1. Record referenced environment variables along with their value > > 2. Go through all the recorded environment variables and write

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-31 Thread Ulf Magnusson
On Sun, Apr 1, 2018 at 4:27 AM, Ulf Magnusson wrote: > > AFAICS, we only need the following functionality: > > 1. Record referenced environment variables along with their value > > 2. Go through all the recorded environment variables and write > dependency information

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-31 Thread Ulf Magnusson
Here's a more in-depth review: On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option env=" syntax. It is tedious to add a config entry for each > environment given that we need more

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-31 Thread Ulf Magnusson
Here's a more in-depth review: On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option env=" syntax. It is tedious to add a config entry for each > environment given that we need more environments such as 'CC',

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-29 Thread Ulf Magnusson
On Thu, Mar 29, 2018 at 4:56 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Thu, Mar 29, 2018 at 4:19 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: >> I've been kinda busy lately, so that's why I disappeared. >> >> I'll try to go over this patchse

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-29 Thread Ulf Magnusson
On Thu, Mar 29, 2018 at 4:56 AM, Ulf Magnusson wrote: > On Thu, Mar 29, 2018 at 4:19 AM, Ulf Magnusson wrote: >> I've been kinda busy lately, so that's why I disappeared. >> >> I'll try to go over this patchset in more detail over the weekend. >> >> On Tue,

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
On Thu, Mar 29, 2018 at 4:19 AM, Ulf Magnusson <ulfali...@gmail.com> wrote: > I've been kinda busy lately, so that's why I disappeared. > > I'll try to go over this patchset in more detail over the weekend. > > On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada > <ya

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
On Thu, Mar 29, 2018 at 4:19 AM, Ulf Magnusson wrote: > I've been kinda busy lately, so that's why I disappeared. > > I'll try to go over this patchset in more detail over the weekend. > > On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada > wrote: >> To get an environm

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-28 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-28 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by make.) > > Real examples will look

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
I've been kinda busy lately, so that's why I disappeared. I'll try to go over this patchset in more detail over the weekend. On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
I've been kinda busy lately, so that's why I disappeared. I'll try to go over this patchset in more detail over the weekend. On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option env=" syntax. It is tedious to

Re: [PATCH 0/3] Improve and extend checkpatch.pl Kconfig help text checks

2018-03-05 Thread Ulf Magnusson
On Sat, Feb 24, 2018 at 2:53 PM, Masahiro Yamada <yamada.masah...@socionext.com> wrote: > 2018-02-23 10:30 GMT+09:00 Ulf Magnusson <ulfali...@gmail.com>: >> On Fri, Feb 16, 2018 at 10:14 PM, Joe Perches <j...@perches.com> wrote: >>> On Fri, 2018-02-16

Re: [PATCH 0/3] Improve and extend checkpatch.pl Kconfig help text checks

2018-03-05 Thread Ulf Magnusson
On Sat, Feb 24, 2018 at 2:53 PM, Masahiro Yamada wrote: > 2018-02-23 10:30 GMT+09:00 Ulf Magnusson : >> On Fri, Feb 16, 2018 at 10:14 PM, Joe Perches wrote: >>> On Fri, 2018-02-16 at 21:22 +0100, Ulf Magnusson wrote: >>>> Hello, >>>> >>>> Th

Re: [PATCH] scripts/kconfig: replace single character strcat() appends

2018-03-03 Thread Ulf Magnusson
On Sat, Mar 3, 2018 at 7:14 PM, Ulf Magnusson <ulfali...@gmail.com> wrote: > On Sat, Mar 3, 2018 at 12:12 AM, Joey Pabalinas <joeypabali...@gmail.com> > wrote: >> On Fri, Mar 02, 2018 at 02:44:53PM +0100, Ulf Magnusson wrote: >>> Not sure this is an imp

Re: [PATCH] scripts/kconfig: replace single character strcat() appends

2018-03-03 Thread Ulf Magnusson
On Sat, Mar 3, 2018 at 7:14 PM, Ulf Magnusson wrote: > On Sat, Mar 3, 2018 at 12:12 AM, Joey Pabalinas > wrote: >> On Fri, Mar 02, 2018 at 02:44:53PM +0100, Ulf Magnusson wrote: >>> Not sure this is an improvement. Zeroing the bytes after the initial >>>

Re: [PATCH] scripts/kconfig: replace single character strcat() appends

2018-03-03 Thread Ulf Magnusson
On Sat, Mar 3, 2018 at 12:12 AM, Joey Pabalinas <joeypabali...@gmail.com> wrote: > On Fri, Mar 02, 2018 at 02:44:53PM +0100, Ulf Magnusson wrote: >> Not sure this is an improvement. Zeroing the bytes after the initial >> null terminator is redundant, and the explicit '\0' make

  1   2   3   4   5   6   7   >