public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Using old Config Style
@ 2016-02-10 16:02 Mario Albrecht
       [not found] ` <56BB7ADE.7090304@schmelzer.or.at>
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Albrecht @ 2016-02-10 16:02 UTC (permalink / raw)
  To: u-boot

Hi,

i have a small question about using old board specific config files.
I have a config file for a board which contains all needed commands
defined by #define CONFIG_CMD_ and #undef CONFIG_CMD_.
In new u-boot Version a autoconf.h file is generated which conflicts
the defines in the board.h file. How can I disable autoconf.h generation
or get the right commands in this file.

Regards Mario

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

* [U-Boot] Using old Config Style
       [not found]   ` <F50CAB352C149543A6F2FFE37D4B593492215B82@S1.mackware.local>
@ 2016-02-11 10:18     ` Hannes Schmelzer
  0 siblings, 0 replies; 2+ messages in thread
From: Hannes Schmelzer @ 2016-02-11 10:18 UTC (permalink / raw)
  To: u-boot



On 11.02.2016 09:55, Mario Albrecht wrote:
> Hallo Hannes,
>
> how can I define commands in defconfig file which should be used or not used?
>
> Regards Mario
>
> -----Urspr?ngliche Nachricht-----
> Von: Hannes Schmelzer [mailto:hannes at schmelzer.or.at]
> Gesendet: Mittwoch, 10. Februar 2016 19:01
> An: Mario Albrecht
> Betreff: Re: [U-Boot] Using old Config Style
>
>
> On 2016-02-10 17:02, Mario Albrecht wrote:
>> Hi,
>>
>> i have a small question about using old board specific config files.
>> I have a config file for a board which contains all needed commands
>> defined by #define CONFIG_CMD_ and #undef CONFIG_CMD_.
>> In new u-boot Version a autoconf.h file is generated which conflicts
>> the defines in the board.h file. How can I disable autoconf.h
>> generation or get the right commands in this file.
>>
>> Regards Mario
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
>>
> hi Mario,
>
> the much better approach would be converting your board to Kconfig.
> you can create some xxxboard_defconfig in configs/ were all your needed commands are checked.
>
> regards,
> Hannes
hi mario,

have a look for example in configs/tseries_mmc_defconfig.

Basically some commands are defined through Kconfig as 'default on' 
other with 'default off'.

# CONFIG_CMD_FPGA is not set
CONFIG_CMD_GPIO=y

in this example the CMD_FPGA is default on and set through my defconfig 
to OFF.
At the other hand CMD_GPIO is per default off and set through defconfig 
to ON.

To generate some xxx_defconfig file you may config your u-boot simply 
with "make menuconfig" and afterwards "make savedefconfig".
This will generate a "defconfig" File in your build-output folder, from 
there you can merge this with your xxx_defconfig file.

regards,
Hannes

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

end of thread, other threads:[~2016-02-11 10:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10 16:02 [U-Boot] Using old Config Style Mario Albrecht
     [not found] ` <56BB7ADE.7090304@schmelzer.or.at>
     [not found]   ` <F50CAB352C149543A6F2FFE37D4B593492215B82@S1.mackware.local>
2016-02-11 10:18     ` Hannes Schmelzer

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