All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/3] Gummiboot fixup
@ 2019-03-19 11:28 Esben Haabendal
  2019-03-19 11:28 ` [Buildroot] [PATCH 1/3] gummiboot: use new official upstream git repository Esben Haabendal
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Esben Haabendal @ 2019-03-19 11:28 UTC (permalink / raw)
  To: buildroot

From: Esben Haabendal <esben@haabendal.dk>

These patches fixes gummiboot for building with toolchains using
newer gcc and glibc versions.

Esben Haabendal (3):
  gummiboot: use new official upstream git repository
  gummiboot: upgrade to last commit before being removed
  gummiboot: fix compatibility with newer glibc versions

 boot/gummiboot/0001-glibc-2.25-fix.patch | 16 ++++++++++++++++
 boot/gummiboot/gummiboot.mk              |  4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 boot/gummiboot/0001-glibc-2.25-fix.patch

-- 
2.21.0

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

* [Buildroot] [PATCH 1/3] gummiboot: use new official upstream git repository
  2019-03-19 11:28 [Buildroot] [PATCH 0/3] Gummiboot fixup Esben Haabendal
@ 2019-03-19 11:28 ` Esben Haabendal
  2019-03-19 11:28 ` [Buildroot] [PATCH 2/3] gummiboot: upgrade to last commit before being removed Esben Haabendal
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Esben Haabendal @ 2019-03-19 11:28 UTC (permalink / raw)
  To: buildroot

From: Esben Haabendal <esben@haabendal.dk>

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
---
 boot/gummiboot/gummiboot.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/gummiboot/gummiboot.mk b/boot/gummiboot/gummiboot.mk
index 85a5daaeab69..0e67e5e8ce0e 100644
--- a/boot/gummiboot/gummiboot.mk
+++ b/boot/gummiboot/gummiboot.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-GUMMIBOOT_SITE = http://cgit.freedesktop.org/gummiboot
+GUMMIBOOT_SITE = https://gitlab.freedesktop.org/archived-projects/gummiboot.git
 GUMMIBOOT_SITE_METHOD = git
 GUMMIBOOT_VERSION = 43
 GUMMIBOOT_LICENSE = LGPL-2.1+
-- 
2.21.0

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

* [Buildroot] [PATCH 2/3] gummiboot: upgrade to last commit before being removed
  2019-03-19 11:28 [Buildroot] [PATCH 0/3] Gummiboot fixup Esben Haabendal
  2019-03-19 11:28 ` [Buildroot] [PATCH 1/3] gummiboot: use new official upstream git repository Esben Haabendal
@ 2019-03-19 11:28 ` Esben Haabendal
  2019-03-19 11:28 ` [Buildroot] [PATCH 3/3] gummiboot: fix compatibility with newer glibc versions Esben Haabendal
  2019-03-19 18:56 ` [Buildroot] [PATCH 0/3] Gummiboot fixup Peter Korsgaard
  3 siblings, 0 replies; 10+ messages in thread
From: Esben Haabendal @ 2019-03-19 11:28 UTC (permalink / raw)
  To: buildroot

From: Esben Haabendal <esben@haabendal.dk>

This upgrades to version 48 plus the last commits done after that.
Note, that after that, gummiboot is officially dead, so there will
be no more upstream commits after this.

For various reasons, there are still users of gummiboot, so let's base our
work on the latest gummiboot "version".

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
---
 boot/gummiboot/gummiboot.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/gummiboot/gummiboot.mk b/boot/gummiboot/gummiboot.mk
index 0e67e5e8ce0e..748e87030e7b 100644
--- a/boot/gummiboot/gummiboot.mk
+++ b/boot/gummiboot/gummiboot.mk
@@ -6,7 +6,7 @@
 
 GUMMIBOOT_SITE = https://gitlab.freedesktop.org/archived-projects/gummiboot.git
 GUMMIBOOT_SITE_METHOD = git
-GUMMIBOOT_VERSION = 43
+GUMMIBOOT_VERSION = 2bcd919c681c952eb867ef1bdb458f1bc49c2d55
 GUMMIBOOT_LICENSE = LGPL-2.1+
 GUMMIBOOT_LICENSE_FILES = LICENSE
 
-- 
2.21.0

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

* [Buildroot] [PATCH 3/3] gummiboot: fix compatibility with newer glibc versions
  2019-03-19 11:28 [Buildroot] [PATCH 0/3] Gummiboot fixup Esben Haabendal
  2019-03-19 11:28 ` [Buildroot] [PATCH 1/3] gummiboot: use new official upstream git repository Esben Haabendal
  2019-03-19 11:28 ` [Buildroot] [PATCH 2/3] gummiboot: upgrade to last commit before being removed Esben Haabendal
@ 2019-03-19 11:28 ` Esben Haabendal
  2019-03-19 21:02   ` Thomas Petazzoni
  2019-03-19 18:56 ` [Buildroot] [PATCH 0/3] Gummiboot fixup Peter Korsgaard
  3 siblings, 1 reply; 10+ messages in thread
From: Esben Haabendal @ 2019-03-19 11:28 UTC (permalink / raw)
  To: buildroot

From: Esben Haabendal <esben@haabendal.dk>

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
---
 boot/gummiboot/0001-glibc-2.25-fix.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 boot/gummiboot/0001-glibc-2.25-fix.patch

diff --git a/boot/gummiboot/0001-glibc-2.25-fix.patch b/boot/gummiboot/0001-glibc-2.25-fix.patch
new file mode 100644
index 000000000000..377098f9ea60
--- /dev/null
+++ b/boot/gummiboot/0001-glibc-2.25-fix.patch
@@ -0,0 +1,16 @@
+Allow building with glibc with sys/sysmacros.h removed from sys/types.h.
+
+See https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html for why
+this was done.
+
+diff -urN gummiboot-43~orig/src/setup/setup.c gummiboot-43/src/setup/setup.c
+--- gummiboot-43~orig/src/setup/setup.c	2019-03-14 22:28:34.533206018 +0100
++++ gummiboot-43/src/setup/setup.c	2019-03-15 06:40:07.895651992 +0100
+@@ -37,6 +37,7 @@
+ #include <ftw.h>
+ #include <stdbool.h>
+ #include <blkid.h>
++#include <sys/sysmacros.h>
+ 
+ #include "efivars.h"
+ 
-- 
2.21.0

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

* [Buildroot] [PATCH 0/3] Gummiboot fixup
  2019-03-19 11:28 [Buildroot] [PATCH 0/3] Gummiboot fixup Esben Haabendal
                   ` (2 preceding siblings ...)
  2019-03-19 11:28 ` [Buildroot] [PATCH 3/3] gummiboot: fix compatibility with newer glibc versions Esben Haabendal
@ 2019-03-19 18:56 ` Peter Korsgaard
       [not found]   ` <CAOR3GqXSxZw3m+OD3FLCFOR0Gi-v3zNJGe2+3Bhy7R6av7LVhQ@mail.gmail.com>
  3 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2019-03-19 18:56 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esben.haabendal@gmail.com> writes:

 > From: Esben Haabendal <esben@haabendal.dk>
 > These patches fixes gummiboot for building with toolchains using
 > newer gcc and glibc versions.

 > Esben Haabendal (3):
 >   gummiboot: use new official upstream git repository
 >   gummiboot: upgrade to last commit before being removed
 >   gummiboot: fix compatibility with newer glibc versions

Out of interest, what is the use case for using gummiboot? We recently
added systemd-boot support, so I was considering removing gummiboot as
it is dead upstream.

Notice that you currently cannot enable systemd-boot without the rest of
systemd, so that may be a disadvantage.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 3/3] gummiboot: fix compatibility with newer glibc versions
  2019-03-19 11:28 ` [Buildroot] [PATCH 3/3] gummiboot: fix compatibility with newer glibc versions Esben Haabendal
@ 2019-03-19 21:02   ` Thomas Petazzoni
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2019-03-19 21:02 UTC (permalink / raw)
  To: buildroot

Hello Esben,

On Tue, 19 Mar 2019 12:28:52 +0100
Esben Haabendal <esben.haabendal@gmail.com> wrote:

> From: Esben Haabendal <esben@haabendal.dk>
> 
> Signed-off-by: Esben Haabendal <esben@haabendal.dk>

Since gummiboot is maintained in a Git repository upstream, we really
like to have patches generated using "git format-patch", as it makes
sense easier to handle. Also, we require all patches to have a
Signed-off-by.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 0/3] Gummiboot fixup
       [not found]   ` <CAOR3GqXSxZw3m+OD3FLCFOR0Gi-v3zNJGe2+3Bhy7R6av7LVhQ@mail.gmail.com>
@ 2019-03-20 13:46     ` Peter Korsgaard
       [not found]       ` <CAOR3GqU17TUskOwG_8DfwrcEt_AJcqzgD8=5j1c2Wa+LVveeSg@mail.gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2019-03-20 13:46 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esbenhaabendal@gmail.com> writes:

 > On Tue, Mar 19, 2019 at 7:56 PM Peter Korsgaard <peter@korsgaard.com> wrote:
 >> Out of interest, what is the use case for using gummiboot? We recently
 >> added systemd-boot support, so I was considering removing gummiboot as
 >> it is dead upstream.
 >> 
 >> Notice that you currently cannot enable systemd-boot without the rest of
 >> systemd, so that may be a disadvantage.
 >> 

 > In this case, I am upgrading a system which is currently using gummiboot.
 > Switching to systemd-boot does not seem to bring anything meaningful
 > improvements,
 > as gummiboot does the job of booting the system.

Ok. Out of interest, what is gummiboot adding over just directly booting
a Linux kernel with CONFIG_EFI_STUB?

 > And yes, this is not a systemd system, and transforming the entire
 > system to systemd is clearly a big thing compared to just fixing
 > building of gummiboot.

 > I would prefer if we could keep gummiboot support in buildroot for now.

Fine by me. Will you add yourself to DEVELOPERS for gummiboot?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 0/3] Gummiboot fixup
       [not found]       ` <CAOR3GqU17TUskOwG_8DfwrcEt_AJcqzgD8=5j1c2Wa+LVveeSg@mail.gmail.com>
@ 2019-03-20 14:36         ` Peter Korsgaard
  2019-03-20 15:03           ` Esben Haabendal
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2019-03-20 14:36 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esbenhaabendal@gmail.com> writes:

Hi,

 >> Ok. Out of interest, what is gummiboot adding over just directly booting
 >> a Linux kernel with CONFIG_EFI_STUB?
 >> 

 > With gummiboot, I can point to a separate initramfs file. I haven't figured
 > out
 > how to do that with CONFIG_EFI_STUB, as the CONFIG_CMDLINE args
 > are not processed by the EFI stub.

I have never tried, but it looks as if you can just set
initrd=<path/to/initramfs/in/esp>

https://www.kernel.org/doc/Documentation/efi-stub.txt

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 0/3] Gummiboot fixup
  2019-03-20 14:36         ` Peter Korsgaard
@ 2019-03-20 15:03           ` Esben Haabendal
  2019-03-20 16:30             ` Peter Korsgaard
  0 siblings, 1 reply; 10+ messages in thread
From: Esben Haabendal @ 2019-03-20 15:03 UTC (permalink / raw)
  To: buildroot

On Wed, Mar 20, 2019 at 3:36 PM Peter Korsgaard <peter@korsgaard.com> wrote:

> >>>>> "Esben" == Esben Haabendal <esbenhaabendal@gmail.com> writes:
>
>   >> Ok. Out of interest, what is gummiboot adding over just directly
> booting
>  >> a Linux kernel with CONFIG_EFI_STUB?
>
>  > With gummiboot, I can point to a separate initramfs file. I haven't
> figured
>  > out
>  > how to do that with CONFIG_EFI_STUB, as the CONFIG_CMDLINE args
>  > are not processed by the EFI stub.
>
> I have never tried, but it looks as if you can just set
> initrd=<path/to/initramfs/in/esp>
>
> https://www.kernel.org/doc/Documentation/efi-stub.txt
>

Yes, you can use initrd=... if you provide the cmdline to the EFI stub.
But if you compile in the cmdline using CONFIG_CMDLINE, it will
not work, as it will only be available for Linux kernel, and not for
EFI stub.

/Esben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190320/64a132a5/attachment.html>

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

* [Buildroot] [PATCH 0/3] Gummiboot fixup
  2019-03-20 15:03           ` Esben Haabendal
@ 2019-03-20 16:30             ` Peter Korsgaard
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2019-03-20 16:30 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esbenhaabendal@gmail.com> writes:

 > Yes, you can use initrd=... if you provide the cmdline to the EFI stub.
 > But if you compile in the cmdline using CONFIG_CMDLINE, it will
 > not work, as it will only be available for Linux kernel, and not for
 > EFI stub.

I guess Even with CONFIG_CMDLINE, you could configure the boot entry to
pass initrd= to EFI, but OK.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2019-03-20 16:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 11:28 [Buildroot] [PATCH 0/3] Gummiboot fixup Esben Haabendal
2019-03-19 11:28 ` [Buildroot] [PATCH 1/3] gummiboot: use new official upstream git repository Esben Haabendal
2019-03-19 11:28 ` [Buildroot] [PATCH 2/3] gummiboot: upgrade to last commit before being removed Esben Haabendal
2019-03-19 11:28 ` [Buildroot] [PATCH 3/3] gummiboot: fix compatibility with newer glibc versions Esben Haabendal
2019-03-19 21:02   ` Thomas Petazzoni
2019-03-19 18:56 ` [Buildroot] [PATCH 0/3] Gummiboot fixup Peter Korsgaard
     [not found]   ` <CAOR3GqXSxZw3m+OD3FLCFOR0Gi-v3zNJGe2+3Bhy7R6av7LVhQ@mail.gmail.com>
2019-03-20 13:46     ` Peter Korsgaard
     [not found]       ` <CAOR3GqU17TUskOwG_8DfwrcEt_AJcqzgD8=5j1c2Wa+LVveeSg@mail.gmail.com>
2019-03-20 14:36         ` Peter Korsgaard
2019-03-20 15:03           ` Esben Haabendal
2019-03-20 16:30             ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.