mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
e1531466e1
This change updates grub to the 2.04 release. The new release changed how grub is built, so the bootstrap and bootstrap.conf files have to be added to the dist-git. Also, the gitignore file changed so it has to be updated. Since the patches have been forward ported to 2.04, there's no need for a logic to maintain a patch with the delta between the release and the grub master branch. So the release-to-master.patch is dropped and no longer is updated by the do-rebase script. Also since gnulib isn't part of the grub repository anymore and cloned by the boostrap tool, a gnulib tarball is included as other source file and copied before calling the bootstrap tool. That way grub can be built even in builders that only have access to the sources lookaside cache. Resolves: rhbz#1727279 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Peter Jones <pjones@redhat.com>
|
|
Date: Wed, 11 Jul 2018 13:43:15 -0400
|
|
Subject: [PATCH] gentpl: add 'disable = ' support
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
---
|
|
gentpl.py | 14 +++++++++++++-
|
|
1 file changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/gentpl.py b/gentpl.py
|
|
index f05812eace3..3a0c04963aa 100644
|
|
--- a/gentpl.py
|
|
+++ b/gentpl.py
|
|
@@ -592,11 +592,21 @@ def platform_conditional(platform, closure):
|
|
# };
|
|
#
|
|
def foreach_enabled_platform(defn, closure):
|
|
+ enabled = False
|
|
+ disabled = False
|
|
if 'enable' in defn:
|
|
+ enabled = True
|
|
for platform in GRUB_PLATFORMS:
|
|
if platform_tagged(defn, platform, "enable"):
|
|
platform_conditional(platform, closure)
|
|
- else:
|
|
+
|
|
+ if 'disable' in defn:
|
|
+ disabled = True
|
|
+ for platform in GRUB_PLATFORMS:
|
|
+ if not platform_tagged(defn, platform, "disable"):
|
|
+ platform_conditional(platform, closure)
|
|
+
|
|
+ if not enabled and not disabled:
|
|
for platform in GRUB_PLATFORMS:
|
|
platform_conditional(platform, closure)
|
|
|
|
@@ -655,6 +665,8 @@ def first_time(defn, snippet):
|
|
def is_platform_independent(defn):
|
|
if 'enable' in defn:
|
|
return False
|
|
+ if 'disable' in defn:
|
|
+ return False
|
|
for suffix in [ "", "_nodist" ]:
|
|
template = platform_values(defn, GRUB_PLATFORMS[0], suffix)
|
|
for platform in GRUB_PLATFORMS[1:]:
|