* [ptxdist] Scripting of Kconfig options
@ 2015-03-27 19:29 Tobias Schmidl
2015-04-02 16:17 ` Michael Olbrich
2015-04-08 5:57 ` Tobias Schmidl
0 siblings, 2 replies; 3+ messages in thread
From: Tobias Schmidl @ 2015-03-27 19:29 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 382 bytes --]
Hello *,
I'm trying to automate a ptxdist build via Jenkins. Therefore, I need to
select a (known) PTXDist menuconfig option via shell script, i.e. "ptxdist
menuconfig" is not really an option.
Right now the whole thing is done via sed, but I'm wondering if there is
a more pratical way of choosing an option fron an option group…
Best regards,
Tobias Schmidl
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 11118 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Scripting of Kconfig options
2015-03-27 19:29 [ptxdist] Scripting of Kconfig options Tobias Schmidl
@ 2015-04-02 16:17 ` Michael Olbrich
2015-04-08 5:57 ` Tobias Schmidl
1 sibling, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2015-04-02 16:17 UTC (permalink / raw)
To: ptxdist
Hi,
On Fri, Mar 27, 2015 at 08:29:31PM +0100, Tobias Schmidl wrote:
> I'm trying to automate a ptxdist build via Jenkins. Therefore, I need to
> select a (known) PTXDist menuconfig option via shell script, i.e. "ptxdist
> menuconfig" is not really an option.
>
> Right now the whole thing is done via sed, but I'm wondering if there is
> a more pratical way of choosing an option fron an option group…
By 'option group' you mean a 'choice' right? I don't think, that there is
some special tool. I'd use sed and then 'fix' the ptxconfig with
"ptxdist oldconfig < /dev/null". For a choice that would be:
1. Remove all alternatives
2. Append the option you want at the end of the file
3. Run oldconfig
Kconfig will then keep the option you added and adds the others with 'is
not set'.
This keeps the sed magic simple and still produces a valid ptxconfig.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Scripting of Kconfig options
2015-03-27 19:29 [ptxdist] Scripting of Kconfig options Tobias Schmidl
2015-04-02 16:17 ` Michael Olbrich
@ 2015-04-08 5:57 ` Tobias Schmidl
1 sibling, 0 replies; 3+ messages in thread
From: Tobias Schmidl @ 2015-04-08 5:57 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 963 bytes --]
Hello Michael,
-----ptxdist-bounces@pengutronix.de schrieb: -----
>> I'm trying to automate a ptxdist build via Jenkins. Therefore, I need
>> to select a (known) PTXDist menuconfig option via shell script, i.e.
>> "ptxdist > menuconfig" is not really an option.
>>
>>
>> Right now the whole thing is done via sed, but I'm wondering if there
>> is a more pratical way of choosing an option fron an option group…
> By 'option group' you mean a 'choice' right? I don't think, that there is
> some special tool. I'd use sed and then 'fix' the ptxconfig with
> "ptxdist oldconfig < /dev/null". For a choice that would be:
> 1. Remove all alternatives
> 2. Append the option you want at the end of the file
> 3. Run oldconfig
> Kconfig will then keep the option you added and adds the others with 'is
> not set'.
> This keeps the sed magic simple and still produces a valid ptxconfig.
thanks, will try!
Best regards,
Tobias
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 11118 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-08 5:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-27 19:29 [ptxdist] Scripting of Kconfig options Tobias Schmidl
2015-04-02 16:17 ` Michael Olbrich
2015-04-08 5:57 ` Tobias Schmidl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox