From: "Jörg Krause" <jkrause@posteo.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 4/8] boot/uboot: Add uboot-menuconfig and friends
Date: Thu, 15 Jan 2015 21:55:45 +0100 [thread overview]
Message-ID: <1421355345.2625.29.camel@posteo.de> (raw)
In-Reply-To: <20150110164355.17d96522@free-electrons.com>
Dear Thomas Petazzoni,
On Sa, 2015-01-10 at 16:43 +0100, Thomas Petazzoni wrote:
> Dear J?rg Krause,
>
> On Sat, 10 Jan 2015 14:47:23 +0100, J?rg Krause wrote:
>
> > ifeq ($(BR2_TARGET_UBOOT),y)
> > +ifeq ($(BR2_TARGET_UBOOT_USE_KBUILD_KCONFIG),y)
> > +uboot-menuconfig uboot-xconfig uboot-gconfig uboot-nconfig: uboot-configure
> > + $(TARGET_MAKE_ENV) $(MAKE) $(UBOOT_MAKE_OPTS) -C $(UBOOT_DIR) $(subst uboot-,,$@)
> > + rm -f $(UBOOT_DIR)/.stamp_{built,target_installed,images_installed}
> > +uboot-savedefconfig: uboot-configure
> > + $(TARGET_MAKE_ENV) $(MAKE) $(UBOOT_MAKE_OPTS) -C $(UBOOT_DIR) $(subst uboot-,,$@)
> > +ifeq ($(BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG),y)
> > +uboot-update-defconfig: uboot-savedefconfig
> > + cp -f $(UBOOT_DIR)/defconfig $(BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE)
> > +else
> > +uboot-update-defconfig: ;
> > +endif # BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
> > +endif # BR2_TARGET_UBOOT_USE_KBUILD_KCONFIG
>
> Please use the kconfig-package infrastructure.
Using the kconfig-package infrastructure requires a .config file to be
set with UBOOT_KCONFIG_FILE. This .config file is copied to UBOOT_DIR
after patching and before configuration starts.
This causes me some trouble since in the U-Boot build process
the .config file (and also spl/.config and tpl/.config) is written by
make <board>_defconfig. This command is called in UBOOT_CONFIGURE_CMDS
which runs after copying .config to UBOOT_DIR.
The patches are mainly based on the Linux and Barebox packages, which
also uses the make _defconfig build step to make the .config file.
Best regards
J?rg Krause
next prev parent reply other threads:[~2015-01-15 20:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 13:47 [Buildroot] [PATCH v2 0/8] Add support for U-Boots Kbuild & Kconfig build system Jörg Krause
2015-01-10 13:47 ` [Buildroot] [PATCH v2 1/8] boot/uboot: Remove obsolete CONFIG_NOSOFTFLOAT flag Jörg Krause
2015-01-10 15:39 ` Thomas Petazzoni
2015-01-10 13:47 ` [Buildroot] [PATCH v2 2/8] boot/uboot: Replace TARGET_CONFIGURE_OPTS with TARGET_MAKE_ENV Jörg Krause
2015-01-10 15:39 ` Thomas Petazzoni
2015-01-10 13:47 ` [Buildroot] [PATCH v2 3/8] boot/uboot: Add support for Kbuild & Kconfig build system Jörg Krause
2015-01-10 15:43 ` Thomas Petazzoni
2015-01-10 13:47 ` [Buildroot] [PATCH v2 4/8] boot/uboot: Add uboot-menuconfig and friends Jörg Krause
2015-01-10 15:43 ` Thomas Petazzoni
2015-01-15 20:55 ` Jörg Krause [this message]
2015-01-10 13:47 ` [Buildroot] [PATCH v2 5/8] docs/manual/make-tips.mk: Add uboot documentation Jörg Krause
2015-01-10 13:47 ` [Buildroot] [PATCH v2 6/8] docs/manual/customize-configuration.txt: " Jörg Krause
2015-01-10 13:47 ` [Buildroot] [PATCH v2 7/8] docs/manual/customize-quick-guide.txt: " Jörg Krause
2015-01-10 13:47 ` [Buildroot] [PATCH v2 8/8] docs/manual/configure-other-components.txt: " Jörg Krause
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421355345.2625.29.camel@posteo.de \
--to=jkrause@posteo.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox