mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] custom menu
@ 2015-06-09 11:01 Moritz Warning
  2015-06-09 11:49 ` Moritz Warning
  2015-06-09 12:24 ` Alexander Dahl
  0 siblings, 2 replies; 4+ messages in thread
From: Moritz Warning @ 2015-06-09 11:01 UTC (permalink / raw)
  To: ptxdist

Hi,

I tried to create a custom menu entry and created a file rules/Kconfig:

source "config/Kconfig"

comment "--------- Project Specific Menu -------------"

menu "Project Specific Menu               "
source "generated/project_specific.in"
endmenu


There are also a few rules/*.in files containing "## 
SECTION=project_specific" on top. But no change in the
menu can be seen.
It looks like rules/Kconfig is completely ignored.

Any ideas?
(do not laugh, it is ptxdist-2012.03.0)

regards and cookies,
mwarning

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] custom menu
  2015-06-09 11:01 [ptxdist] custom menu Moritz Warning
@ 2015-06-09 11:49 ` Moritz Warning
  2015-06-09 12:24 ` Alexander Dahl
  1 sibling, 0 replies; 4+ messages in thread
From: Moritz Warning @ 2015-06-09 11:49 UTC (permalink / raw)
  To: ptxdist

Ok,

the Kconfig files needs to be in $BSP/, not $BSP/rules.

But I cannot use the template:
$cp /usr/local/lib/ptxdist-2012.03.0/rules/templates/kconfig/Kconfig .
$ ./ptxdist menuconfig
config/Kconfig:6: invalid statement

ptxdist: ' menuconfig' returned with an error


But it work when I copy the global Kconfig and add a submenu there:
cp /usr/local/lib/ptxdist-2012.03.0/rules/Kconfig .
$ ./ptxdist menuconfig
<works>

Any ideas on how to use the template? Copying over and then modifying 
the global Kconfig is not the way to go...


On 06/09/2015 01:01 PM, Moritz Warning wrote:
> Hi,
>
> I tried to create a custom menu entry and created a file rules/Kconfig:
>
> source "config/Kconfig"
>
> comment "--------- Project Specific Menu -------------"
>
> menu "Project Specific Menu               "
> source "generated/project_specific.in"
> endmenu
>
>
> There are also a few rules/*.in files containing "##
> SECTION=project_specific" on top. But no change in the
> menu can be seen.
> It looks like rules/Kconfig is completely ignored.
>
> Any ideas?
> (do not laugh, it is ptxdist-2012.03.0)
>
> regards and cookies,
> mwarning
>

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] custom menu
  2015-06-09 11:01 [ptxdist] custom menu Moritz Warning
  2015-06-09 11:49 ` Moritz Warning
@ 2015-06-09 12:24 ` Alexander Dahl
  2015-06-09 13:29   ` Moritz Warning
  1 sibling, 1 reply; 4+ messages in thread
From: Alexander Dahl @ 2015-06-09 12:24 UTC (permalink / raw)
  To: ptxdist; +Cc: Moritz Warning

Hei hei,

Am 2015-06-09 13:01, schrieb Moritz Warning:
> I tried to create a custom menu entry and created a file rules/Kconfig:

You don't need to.

> There are also a few rules/*.in files containing "##
> SECTION=project_specific" on top. But no change in the
> menu can be seen.

Without changes in some Kconfig this should lead to showing those
packages at the top of the menuconfig.

> Any ideas?
> (do not laugh, it is ptxdist-2012.03.0)

We already told you in IRC this is not recommended. ;-) But I think the
menu mechanism was not touched and should work with your BSP, too.

Besides: I have one rule in my BSP, containing "project_specific" in the
first line and it looks somewhat like the following:


## SECTION=project_specific

menuconfig MY_DEVICE
    bool
    select FOO
    select BAR
    prompt "my Device                     "
    default y

if MY_DEVICE

    choice
        prompt "baz"

        config OPT_THIS
            bool
            prompt "this     "

        config OPT_THAT
            bool
            prompt "that        "
    endchoice

    menu "First submenu                "
        source "generated/firstsubmenu.in"
    endmenu

    source "generated/anotherthing.in"

endif

# vim: ft=kconfig noet tw=72


This firstsubmenu.in however is not there as a file but I have other
rules starting with '## SECTION=firstsubmenu' which are put there
automatically.

This way the menuconfig is not filled with all my packages but with one
additional submenu where I can put under all my other stuff.

HTH & Greets
Alex

--
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] custom menu
  2015-06-09 12:24 ` Alexander Dahl
@ 2015-06-09 13:29   ` Moritz Warning
  0 siblings, 0 replies; 4+ messages in thread
From: Moritz Warning @ 2015-06-09 13:29 UTC (permalink / raw)
  To: Alexander Dahl, ptxdist

Thanks, that did it.

On 06/09/2015 02:24 PM, Alexander Dahl wrote:
> Hei hei,
>
> Am 2015-06-09 13:01, schrieb Moritz Warning:
>> I tried to create a custom menu entry and created a file rules/Kconfig:
>
> You don't need to.
>
>> There are also a few rules/*.in files containing "##
>> SECTION=project_specific" on top. But no change in the
>> menu can be seen.
>
> Without changes in some Kconfig this should lead to showing those
> packages at the top of the menuconfig.
>
>> Any ideas?
>> (do not laugh, it is ptxdist-2012.03.0)
>
> We already told you in IRC this is not recommended. ;-) But I think the
> menu mechanism was not touched and should work with your BSP, too.
>
> Besides: I have one rule in my BSP, containing "project_specific" in the
> first line and it looks somewhat like the following:
>
>
> ## SECTION=project_specific
>
> menuconfig MY_DEVICE
>      bool
>      select FOO
>      select BAR
>      prompt "my Device                     "
>      default y
>
> if MY_DEVICE
>
>      choice
>          prompt "baz"
>
>          config OPT_THIS
>              bool
>              prompt "this     "
>
>          config OPT_THAT
>              bool
>              prompt "that        "
>      endchoice
>
>      menu "First submenu                "
>          source "generated/firstsubmenu.in"
>      endmenu
>
>      source "generated/anotherthing.in"
>
> endif
>
> # vim: ft=kconfig noet tw=72
>
>
> This firstsubmenu.in however is not there as a file but I have other
> rules starting with '## SECTION=firstsubmenu' which are put there
> automatically.
>
> This way the menuconfig is not filled with all my packages but with one
> additional submenu where I can put under all my other stuff.
>
> HTH & Greets
> Alex
>
> --
> »With the first link, the chain is forged. The first speech censured,
> the first thought forbidden, the first freedom denied, chains us all
> irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
> *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***
>

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2015-06-09 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09 11:01 [ptxdist] custom menu Moritz Warning
2015-06-09 11:49 ` Moritz Warning
2015-06-09 12:24 ` Alexander Dahl
2015-06-09 13:29   ` Moritz Warning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox