From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add x-loader bootloader
Date: Tue, 19 Apr 2011 22:25:02 +0200 [thread overview]
Message-ID: <20110419222502.5ae9dc71@surf> (raw)
In-Reply-To: <1302730208-17584-1-git-send-email-tremyfr@yahoo.fr>
Hi Philippe,
Great to see such a patch. I really like the fact that you leveraged
the package infrastructure to add support for x-loader. Actually, I
think we should use the package infrastructure for all bootloaders and
for the kernel as well, so that we can easily benefits from
improvements made at the package infrastructure level.
On Wed, 13 Apr 2011 23:30:08 +0200
Philippe Reynes <tremyfr@yahoo.fr> wrote:
> +define XLOADER_INSTALL_TARGET_CMDS
> + $(INSTALL) -D -m 0755 $(@D)/MLO $(BINARIES_DIR)/
> +endef
In order to properly support the kernel and bootloaders as packages, we
probably need to implement a <pkg>_INSTALL_IMAGES_CMDS thing, which
gets enabled on a per-package basis via a <pkg>_IMAGES_INSTALL = YES
value.
The kernel could for examples do :
LINUX_IMAGES_INSTALL = YES
in order to tell that it wants to install the kernel image in
$(BINARIES_DIR), and it could also do :
LINUX_TARGET_INSTALL = YES
in order to tell that it wants to install its kernel modules to the
target root filesystem. Same thing for U-Boot, which can build the
bootloader image, but also some target utilities like
fw_printenv/fw_setenv.
> +ifeq ($(BR2_TARGET_XLOADER),y)
> +TARGETS+=xloader
That should typically be done by the package infrastructure, but at the
moment, the package infrastructure assumes that the option is named
BR2_PACKAGE_<something>. We need to figure out to make this a little
bit more generic maybe.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2011-04-19 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 21:30 [Buildroot] [PATCH] Add x-loader bootloader Philippe Reynes
2011-04-19 20:25 ` Thomas Petazzoni [this message]
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=20110419222502.5ae9dc71@surf \
--to=thomas.petazzoni@free-electrons.com \
--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