Skip to contentSkip to conversation

: "make BOARD=xyz menuconfig" / oldconfig etc does not work

Buildroot bugs at busybox.net 3 participants 3 messages Nov 27, 2007 – Dec 13, 2007

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=1568
======================================================================

Reported By:                hmoffatt
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   1568
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-31-2007 22:52 PDT
Last Modified:              11-27-2007 13:28 PST

======================================================================
Summary: "make BOARD=xyz menuconfig" / oldconfig etc does not
work
Description:
buildroot allows you to do "make BOARD=xyz world" to compile using the configuration file in local/xyz/xyz.config, but you can't call menuconfig, oldconfig etc in this way.

The problem is that the name of the configuration file isn't being passed to the kconfig tool (package/config/conf). kconfig uses $BUILDROOT_CONFIG, so all that is needed is to set that environment variable.

Patch attached fixes this so that "make BOARD=xyz oldconfig" works.
======================================================================

----------------------------------------------------------------------
hmoffatt - 11-01-07 18:02
----------------------------------------------------------------------
"make BOARD=xyz world" also fails due to a few more hard-coded references to .config. br2-board-config2.diff fixes those.

----------------------------------------------------------------------
UlfSamuelsson - 11-27-07 13:28
----------------------------------------------------------------------
Once you have a ".config" file, you can store your board configuration by:

$ make saveconfig

This will store the .config for buildroot, linux, uclibc and busybox. If the project name is "xyz", then they will be stored in the "local/xyz"

You can retrieve your configuration by:

$ make BOARD=xyz getconfig

It is wrong to make the things depend on BUILDROOT_CONFIG. They should depend on ".config"

Issue History
Date Modified Username Field Change
======================================================================

10-31-07 22:52  hmoffatt       New Issue                                    
10-31-07 22:52  hmoffatt       Status                   new => assigned     
10-31-07 22:52  hmoffatt       Assigned To               => buildroot       
10-31-07 22:52  hmoffatt       File Added: br-board-config.diff                 

11-01-07 18:01 hmoffatt File Added: br-board-config2.diff

11-01-07 18:02  hmoffatt       Note Added: 0002885                          
11-27-07 13:28  UlfSamuelsson  Note Added: 0002977                          

======================================================================

#1 lore raw
Quoted 29 lines · bugs at busybox.net

Description:
buildroot allows you to do "make BOARD=xyz world" to compile using the configuration file in local/xyz/xyz.config, but you can't call menuconfig, oldconfig etc in this way.

The problem is that the name of the configuration file isn't being passed to the kconfig tool (package/config/conf). kconfig uses $BUILDROOT_CONFIG, so all that is needed is to set that environment variable.

Patch attached fixes this so that "make BOARD=xyz oldconfig" works.
======================================================================

----------------------------------------------------------------------
hmoffatt - 11-01-07 18:02
----------------------------------------------------------------------
"make BOARD=xyz world" also fails due to a few more hard-coded references to .config. br2-board-config2.diff fixes those.

----------------------------------------------------------------------
UlfSamuelsson - 11-27-07 13:28
----------------------------------------------------------------------
Once you have a ".config" file, you can store your board configuration by:

$ make saveconfig

This will store the .config for buildroot, linux, uclibc and busybox. If the project name is "xyz", then they will be stored in the "local/xyz"

Quoted 6 lines

You can retrieve your configuration by:

$ make BOARD=xyz getconfig

It is wrong to make the things depend on BUILDROOT_CONFIG. They should depend on ".config"

That's ok if you want to use getconfig and saveconfig all the time. I would rather not have any .config but always use "make BOARD=xyz ...".

IMHO there is too much risk of forgetting to save your configuration. You could "make menuconfig" then "make getconfig" and forget to saveconfig in between. I already hate it that you have to "make busybox-update" and "make linux-update" and "make uclibc-update" after reconfiguring those - they should just use my configuration files as specified by BR2_PACKAGE_BUSYBOX_CONFIG etc.

This can be done by either modifying the kconf tools to use an environment variable, or perhaps by symlinking the relevant files to .config instead of copying them (assuming kconf's save is symlink-friendly).

I mean no offense when I ask, is project support well-supported by the buildroot community over all? Is it your work originally Ulf with little support from the others? Some things like the above don't work as I expect them, so it feels a bit rough. In the case of my patch in this bug report, you could apply it and make me happy without any detriment to the way you work (with getconfig/saveconfig).

Regards
Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#2 lore raw

[Buildroot] [buildroot 0001568]: "make BOARD=xyz menuconfig"/ oldconfig etc does not work

Quoted 7 lines

I mean no offense when I ask, is project support well-supported by the buildroot community over all? Is it your work originally Ulf with little support from the others? Some things like the above don't work as I expect them, so it feels a bit rough. In the case of my patch in this bug report, you could apply it and make me happy without any detriment to the way you work (with getconfig/saveconfig).

No, you destroy the original intent by making certain things depend on the stuff in local/<proj>/*.config

We do not depend on the different "defconfigs" as well. We copy them to .config and then we depend on .config

A good way to fix your problem could be to have a

make BOARD=xyz reconfig

which would

* make BOARD=$(BOARD) getconfig
* make menuconfig
* make saveconfig

Best Regards
Ulf Samuelsson