Re: [RESEND RESEND RESEND PATCH] templates: introduce GRUB_TOP_LEVEL_* vars

2022-09-29 Thread Denton Liu
Thanks for the response, Oskari! On Thu, Sep 29, 2022 at 01:08:03AM -0500, Oskari Pirhonen wrote: > On Tue, Sep 27, 2022 at 05:30:45 -0700, Denton Liu wrote: > > A user may wish to use an image that is not sorted as the "latest" > > version as the top-level entry. For example, in Arch Linux, if a

Re: [PATCH] loopback: Support transparent decompression of backing file

2022-09-29 Thread Daniel Kiper
On Thu, Aug 25, 2022 at 11:08:57PM -0500, Glenn Washburn wrote: > A new option is added to the loopback command, -D or --decompress, which > when specified transparently decompresses the backing file. This allows > compressed images to be used as if they were uncompressed. > > Add documentation to

Re: [PATCH] read: Fix overflow in grub_getline()

2022-09-29 Thread Daniel Kiper
On Thu, Aug 25, 2022 at 07:59:09PM -0500, Glenn Washburn wrote: > From: Li Gen > > Store returned value from grub_getkey() in int instead of char to > prevent throwing away the extended bits. This was a problem because, > for instance, the left arrow key press would return > (GRUB_TERM_EXTENDED |

Re: [PATCH] cmp: Only return success when both files have the same contents

2022-09-29 Thread Daniel Kiper
On Thu, Aug 25, 2022 at 07:56:29PM -0500, Glenn Washburn wrote: > From: Li Gen > > This allows the cmp command to be used in GRUB scripts to conditionally > run commands based on whether two files are the same. > > Signed-off-by: Li Gen > Signed-off-by: Glenn Washburn > --- > grub-core/commands

Re: [PATCH] configure: Add -DGRUB_HAS_PCI when compiling C/C++ files on targets that support PCI

2022-09-29 Thread Daniel Kiper
On Thu, Aug 25, 2022 at 10:52:26PM -0500, Glenn Washburn wrote: > The list of targets that support PCI is in gentpl.py. However, there is no > support for generating makefile script from a .def file that will apply > globally to the makefile, but on a per target basis. So instead, use > gentpl.py i

[PATCH] Fix __clzsi2 logic

2022-09-29 Thread Tuan Phan
Fix the incorrect return value of __clzsi2 function. Fixes: e795b90 ("RISC-V: Add libgcc helpers for clz") Signed-off-by: Tuan Phan --- grub-core/kern/compiler-rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/kern/compiler-rt.c b/grub-core/kern/compiler-rt.c ind

Re: [RESEND RESEND RESEND PATCH] templates: introduce GRUB_TOP_LEVEL_* vars

2022-09-29 Thread Oskari Pirhonen
On Thu, Sep 29, 2022 at 03:23:07 -0700, Denton Liu wrote: > Thanks for the response, Oskari! > > On Thu, Sep 29, 2022 at 01:08:03AM -0500, Oskari Pirhonen wrote: > > On Tue, Sep 27, 2022 at 05:30:45 -0700, Denton Liu wrote: > > > A user may wish to use an image that is not sorted as the "latest" >