Commit Graph

322 Commits

Author SHA1 Message Date
Felix Zielcke
958247d031 Strip grub-emu binary. 2023-11-06 14:39:55 +01:00
Julian Andres Klode
4ece60aa69 Fix lintian overrides 2023-11-06 14:39:55 +01:00
Fabian Grünbichler
108001dc79 switch packaging to be Proxmox branded
SBAT version is 3 (as opposed to Debian's 4) since we haven't shipped a version
3 Grub that doesn't have the version 3 fixes..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-04-05 10:07:59 +02:00
Steve McIntyre
16895d90dd Switch build-deps from gcc-10 to gcc-12. Closes: #1022184
Also needs backports from upstream commits to fix warnings/errors
from using gcc 12:

be8eb0eed util/mkimage: Fix dangling pointer may be used error
acffb8148 build: Fix -Werror=array-bounds array subscript 0 is outside array bounds
3ce13d974 lib/reed_solomon: Fix array subscript 0 is outside array bounds
2022-12-11 16:47:49 +00:00
Steve McIntyre
582873fcd2 Don't strip Xen binaries so they work again.
Closes: #1017944. Thanks to Valentin Kleibel for the patch.
2022-09-14 22:40:29 +01:00
Julian Andres Klode
63b0bc75a8
Disable building with LTO
As used in Ubuntu and possibly other downstreams (maybe Debian one day),
as that breaks the build.
2022-04-25 18:04:43 +02:00
Colin Watson
adb3ce1bab Drop now-unnecessary sparc PIE workaround from debian/rules
Thanks, John Paul Adrian Glaubitz.

Closes: #952815
2022-02-08 23:32:18 +00:00
Colin Watson
454fb40fa5 Remove some old Lintian overrides 2021-12-30 15:21:50 +00:00
Colin Watson
863b91c797 Update a few leftover uses of "which" to use "command -v" instead 2021-12-01 13:17:34 +00:00
Colin Watson
4144b27ff6 Add SBAT section
See https://github.com/rhboot/shim/blob/main/SBAT.md.  Thanks to Chris
Coulson for an initial version of this patch.
2021-02-27 15:11:03 +00:00
Colin Watson
fdff3397ab Build with GCC 10
Closes: #978515
2020-12-28 22:27:10 +00:00
Colin Watson
9fba9a05ab Build with GCC 9
Closes: #944166
2019-11-08 09:43:25 +00:00
Colin Watson
615a889341 Run gentpl.py with python3 2019-08-03 13:11:28 +01:00
Steve McIntyre
e8bc4a231a Add an extra di-specific version of the UEFI netboot image
Identical to the normal netboot image, but With a different baked-in
prefix value ("$vendor-installer/$ARCH/grub" instead of "/grub").

Helps to fix #928750, making d-i consistent in terms of PXE setup.
2019-06-15 09:39:03 +01:00
Colin Watson
8be00ff3bf New upstream release candidate (2.04~rc1) 2019-05-30 16:52:12 +01:00
Colin Watson
1c998dbeca Upgrade to debhelper v10 2019-01-14 15:07:04 +00:00
Colin Watson
09fc936b04 Add PVH builds to grub-xen-bin and grub-xen-host 2019-01-07 11:43:11 +00:00
Colin Watson
7981cb3aac Build with GCC 8
This includes a cherry-pick from upstream to fix packed-not-aligned
errors.

Closes: #915735
2018-12-07 09:44:12 +00:00
Colin Watson
48dbe1e38f Move bash completions to modern location
We now install these in /usr/share/bash-completion/completions/grub and
add appropriate symlinks.

Closes: #912852
2018-11-16 16:39:55 +00:00
Colin Watson
303b237fde Remove dh_builddeb override to use xz compression
This has been the default since dpkg 1.17.0.
2018-10-27 13:06:15 +01:00
Colin Watson
6f7b90eb5e Fix indentation 2018-07-30 10:04:09 +01:00
Luca Boccassi
49a4f5cd46 Add XB-Efi-Vendor metadata to efi-*-bin packages
Downstream distributions that do not rebuild grub but want to support
Secure Boot need to know the path used when building the monolothic EFI
images, as that's necessary to create the layout and the grub.cfg files
in the live media.
Export the path, which is the distribution vendor, in a control file
metadata variable so that it can be programmatically accessed.
2018-06-28 05:50:35 +02:00
Luca Boccassi
a010d4da7f template packages: install changelog and copyright
Lintian throws an un-overridable error because the binary packages that
contain the templates do not have a copyright and changelog.
Instead of skipping them in the dh_installdocs step, install just the
copyright and changelog.
2018-06-27 09:17:03 +02:00
Philipp Hahn
15c5f08335 Add template for signing monolithic EFI binaries 2018-06-27 09:15:57 +02:00
Philipp Hahn
bd2c77bead Build monolithic EFI binaries for signing. 2018-06-27 09:15:17 +02:00
Colin Watson
5f1f4e3bfc Build with GCC 7 (closes: #892397). 2018-04-01 10:49:45 +01:00
John Paul Adrian Glaubitz
d68bc4821f Build without PIE on sparc and sparc64
On sparc and sparc64, grub2 needs to be built without PIE as otherwise
the bootloader crashes when trying to boot any machine.

Closes: #891733
2018-02-28 12:01:20 +00:00
John Paul Adrian Glaubitz
32bfd0551f Build prep-bootdev on powerpc and ppc64 2017-12-07 00:13:44 +00:00
Colin Watson
496cca8525 Update grub-mkrescue argument style 2016-09-26 23:16:08 +01:00
Colin Watson
66dae07a68 Build with GCC 6 (closes: #835964). 2016-09-19 13:21:09 +01:00
Steve Beattie
fe0d2f2573 debian/rules: Disable PIE builds for GRUB modules. 2016-05-23 08:56:14 +01:00
Colin Watson
a2b59ff2d4 Apply the arm64 -mpc-relative-literal-loads workaround in configure rather than in debian/rules, to cope with toolchains that don't have the relevant patch applied. 2016-01-22 11:01:37 +00:00
Colin Watson
2f871c085c Temporarily work around arm64 build failure with gcc-5 >= 5.3.1-4 using -mpc-relative-literal-loads. 2016-01-22 02:20:45 +00:00
Colin Watson
2d0dbeff54 Change versioned Conflicts from grub-common and grub2-common into Breaks or Breaks+Replaces as appropriate. 2016-01-16 22:22:59 +00:00
Colin Watson
a97ee38475 Drop build-dependency on libusb-dev, since it was currently unused in any case; also explicitly configure with --disable-grub-emu-usb to avoid possible future ambiguity (closes: #810421). 2016-01-10 04:29:12 +00:00
Colin Watson
0b29b4e03c Reduce the CFLAGS -O3 default on Ubuntu ppc64el to -O2; it introduces various -Werror failures and isn't worth it here. 2015-09-05 19:09:01 +01:00
Colin Watson
ab16fcc4a6 Make builds that are not limited to architecture-dependent packages (i.e. dpkg-buildpackage -b) work on non-x86 architectures. 2015-09-04 11:43:32 +01:00
Colin Watson
b99f120bd7 Go back to forcing a particular compiler version, but this time gcc-5. The reason for this is that new compiler versions often make slight changes to the size of compiled code which break delicate parts of GRUB, and we want to make sure that we test newer versions before switching to them. 2015-09-04 00:16:20 +01:00
Felix Zielcke
fcf286094d Use dpkg-buildflags at least for the host binaries. 2015-08-22 21:07:11 +02:00
Felix Zielcke
705e89fa6f Stop forcing gcc-4.9 for building. 2015-08-21 09:19:25 +02:00
dann frazier
0b814ed1cd Build image tarball on arm64 2015-05-19 17:05:58 -06:00
Felix Zielcke
63992cb660 Run the tests with LC_MESSAGES=C.UTF-8. Some tests fail with non english locale. (Closes: #782580) 2015-04-14 17:52:27 +02:00
Ian Campbell
60bd062882 Provide prebuilt grub-xen binaries for host use in a new grub-xen-host package.
These can be referenced via kernel= in guest cfg to boot a guest using grub2.

debian/grub-xen-host_grub.cfg is the same as the qemu-firmware variant,
although I'm not sure what the best content is so it's more of a placeholder
for now.

---
v3: Use EXTRA_PACKAGES, drop unnecessary debian/grub-xen-host.dirs, use
    "normal" command/shell to interpret the grub.cfg which allows proper use of
    "if" etc., use proposed spec paths. http://lists.xen.org/archives/html/xen-devel/2014-08/msg02964.html
v2: Include a usable grub.cfg
2014-10-22 10:15:29 +01:00
Ian Campbell
51cc7f7b39 Add EXTRA_PACKAGES to debian/rules which for now contains only grub-rescue-pc. 2014-10-19 16:39:45 +01:00
Colin Watson
7d36f5f261 On ppc64el, look for a PReP partition and install the core image to the first one if found.
For now this is done by borrowing prep-bootdev.c from grub-installer, incurring a dependency on libparted.
2014-09-26 18:04:28 +01:00
Colin Watson
f36bde6c3e Disable flicker-free-boot on Ubuntu ppc64el for now, as it isn't needed there and causes too many problems (LP: #1338471). 2014-09-26 14:03:00 +01:00
Colin Watson
539388ac19 Refactor flicker-free-boot configuration in debian/rules to reduce duplication. 2014-09-26 13:58:19 +01:00
Colin Watson
14910ac219 On architectures without a real GRUB port, just build the utilities
This makes tools such as grub-probe and grub-fstest available
everywhere, and makes grub-mount available on all Linux and kFreeBSD
architectures.
2014-09-23 20:55:13 +01:00
Colin Watson
5fa35d0085 Apply patches from Paulo Flabiano Smorigo to allow building a 32-bit big-endian loader on ppc64el using -m32 -mbig-endian, replacing the cross-compiler hack. 2014-09-19 15:18:11 +01:00
Colin Watson
1534c3f0c6 Adjust packaging for x32.
- Build-depend on cpio on x32 as well.
- Make grub-efi-ia32-bin and grub-efi-amd64-bin depend on efibootmgr on
  any Linux architecture for which they are built (in practice, adding
  x32).
- Build grub-mount-udeb on x32 as well.
- Add Lintian binary-from-other-architecture overrides where
  appropriate.
2014-09-08 01:25:14 +01:00