From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 08/10 v2] package/petitboot: Add petitboot, the userspace bootloader
Date: Wed, 12 Mar 2014 23:16:50 +0100 [thread overview]
Message-ID: <20140312221650.GB3389@free.fr> (raw)
In-Reply-To: <1394595957.566506.967533808031.8.gpush@pablo>
Jeremy, All,
On 2014-03-12 11:45 +0800, Jeremy Kerr spake thusly:
> This change adds the petitboot package, a bootloader that exists in
> userspace, and uses the kexec facility to boot into a new kernel.
[--SNIP--]
> diff --git a/package/petitboot/Config.in b/package/petitboot/Config.in
> new file mode 100644
> index 0000000..f5ffe8e
> --- /dev/null
> +++ b/package/petitboot/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_PETITBOOT
> + bool "petitboot"
> + depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
> + select BR2_PACKAGE_UDEV
Package udev no longer exists. udev is now a virtual package that is
provided by eother systemd of eudev. So you can not 'select'
BR2_PACKAGE_UDEV.
You should instead use:
depends on BR2_PACKAGE_HAS_UDEV
[--SNIP--]
> diff --git a/package/petitboot/petitboot.mk b/package/petitboot/petitboot.mk
> new file mode 100644
> index 0000000..8370fa2
> --- /dev/null
> +++ b/package/petitboot/petitboot.mk
> @@ -0,0 +1,64 @@
> +################################################################################
> +#
> +# petitboot
> +#
> +################################################################################
[--SNIP--]
> +define PETITBOOT_PRE_CONFIGURE_BOOTSTRAP
> + (cd $(@D) && ./bootstrap $(PETITBOOT_BOOTSTRAP_VERSION))
> +endef
> +
> +PETITBOOT_PRE_CONFIGURE_HOOKS += PETITBOOT_PRE_CONFIGURE_BOOTSTRAP
I find it too bad that an autotools package can not be autoreconf'ed.
I've looked a bit at what this bootstrap does, and all it really is used
for is to shoehorn the veersion in configure.ac.
Since you seem to be involved in petitboot, here's a suggestion to do it
otherwise:
- move the version stuff out of ./bootstrap, into its own script, eg.
./version.sh
- change configure.ac to use AC_INIT as thus:
AC_INIT([petitboot],
[m4_esyscmd_s([./version.sh])],
[Geoff Levand <geoff@infradead.org>])
Then the package will be entirely autoreconf-igurable. ;-)
I haven't looked further in the patch, just pointing out a few things I
spotted on a cursory look.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-03-12 22:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 3:45 [Buildroot] [PATCH 00/10 v2] Enable a buildroot-based petitboot bootloader Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 08/10 v2] package/petitboot: Add petitboot, the userspace bootloader Jeremy Kerr
2014-03-12 22:16 ` Yann E. MORIN [this message]
2014-03-12 3:45 ` [Buildroot] [PATCH 10/10 v2] Add powerpc petitboot defconfig Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 06/10 v2] package/powerpc-utils: Add powerpc hardware utilities Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 01/10 v2] package/busybox: Add facility for DHCP hooks Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 02/10 v2] package/dropbear: Add separate configuration option for dropbear server Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 05/10 v2] package/dtc: Update to v1.4.0 Jeremy Kerr
2014-03-29 15:18 ` Thomas Petazzoni
2014-03-12 3:45 ` [Buildroot] [PATCH 07/10 v2] package/kexec-lite: Add a package for the kexec-lite tools Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 09/10 v2] package/iprutils: Add IBM Power RAID utilities Jeremy Kerr
2014-03-29 15:17 ` Thomas Petazzoni
2014-03-12 3:45 ` [Buildroot] [PATCH 04/10 v2] package/ncurses: Allow building wide char support Jeremy Kerr
2014-03-12 3:45 ` [Buildroot] [PATCH 03/10 v2] package/ncurses: Remove duplicated library install code Jeremy Kerr
2014-03-12 3:49 ` Jeremy Kerr
2014-03-12 3:54 ` [Buildroot] [PATCH v2.1] " Jeremy Kerr
2014-03-23 22:25 ` Peter Korsgaard
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=20140312221650.GB3389@free.fr \
--to=yann.morin.1998@free.fr \
--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