]> git.proxmox.com Git - grub2.git/commitdiff
Refactor flicker-free-boot configuration in debian/rules to reduce duplication.
authorColin Watson <cjwatson@debian.org>
Fri, 26 Sep 2014 12:58:19 +0000 (13:58 +0100)
committerColin Watson <cjwatson@debian.org>
Fri, 26 Sep 2014 12:58:19 +0000 (13:58 +0100)
debian/changelog
debian/rules

index 5cf2c0f40534c47a2fc54daa40255b2b310ab8d3..18e28d214549aeb691a07f904c64c99b7ba193e6 100644 (file)
@@ -12,6 +12,8 @@ grub2 (2.02~beta2-14) UNRELEASED; urgency=medium
   * Stop adding a CHRP note on chrp_ibm machines, since that apparently
     breaks PowerVM and isn't needed on other machine types as far as we can
     tell (LP: #1334793).
+  * Refactor flicker-free-boot configuration in debian/rules to reduce
+    duplication.
 
  -- Colin Watson <cjwatson@debian.org>  Tue, 23 Sep 2014 12:13:20 +0100
 
index 2665226037d12460ebf3eec6d15b6e366f20a255..429692fbd91bef664024ac4733e9927ee4497b79 100755 (executable)
@@ -31,6 +31,7 @@ endif
 CC := gcc-4.9
 
 confflags = PACKAGE_VERSION="$(deb_version)" PACKAGE_STRING="GRUB $(deb_version)" CC=$(CC) TARGET_CC=$(CC) --enable-grub-mkfont
+substvars =
 
 AUTOGEN_DEB_FILES = config templates preinst postinst postrm dirs install links maintscript
 
@@ -57,20 +58,19 @@ endif
 ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
 DEFAULT_CMDLINE := quiet splash
 DEFAULT_TIMEOUT := 10
-DEFAULT_HIDDEN_TIMEOUT := 0
-DEFAULT_HIDDEN_TIMEOUT_BOOL := true
-confflags += \
-       --enable-ubuntu-recovery \
-       --enable-quiet-boot \
-       --enable-quick-boot \
-       --enable-gfxpayload-dynamic \
-       --enable-vt-handoff
-substvars := \
-       -Vlsb-base-depends="lsb-base (>= 3.0-6)" \
-       -Vgfxpayload-depends="grub-gfxpayload-lists [any-i386 any-amd64]"
+FLICKER_FREE_BOOT := yes
+confflags += --enable-ubuntu-recovery
 else ifeq (yes,$(shell dpkg-vendor --derives-from Tanglu && echo yes))
 DEFAULT_CMDLINE := quiet splash
 DEFAULT_TIMEOUT := 10
+FLICKER_FREE_BOOT := yes
+else
+DEFAULT_CMDLINE := quiet
+DEFAULT_TIMEOUT := 5
+FLICKER_FREE_BOOT := no
+endif
+
+ifeq ($(FLICKER_FREE_BOOT),yes)
 DEFAULT_HIDDEN_TIMEOUT := 0
 DEFAULT_HIDDEN_TIMEOUT_BOOL := true
 confflags += \
@@ -78,15 +78,12 @@ confflags += \
        --enable-quick-boot \
        --enable-gfxpayload-dynamic \
        --enable-vt-handoff
-substvars := \
+substvars += \
        -Vlsb-base-depends="lsb-base (>= 3.0-6)" \
        -Vgfxpayload-depends="grub-gfxpayload-lists [any-i386 any-amd64]"
 else
-DEFAULT_CMDLINE := quiet
-DEFAULT_TIMEOUT := 5
 DEFAULT_HIDDEN_TIMEOUT :=
 DEFAULT_HIDDEN_TIMEOUT_BOOL := false
-substvars :=
 endif
 
 SB_PACKAGE :=
@@ -395,10 +392,7 @@ override_dh_installdocs:
        dh_installdocs -pgrub-common -pgrub-rescue-pc -pgrub-firmware-qemu -A AUTHORS NEWS README THANKS TODO
        dh_installdocs -Ngrub-common -Ngrub-rescue-pc -Ngrub-firmware-qemu --link-doc=grub-common
 
-ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
-override_dh_installinit:
-       dh_installinit -- start 99 2 3 4 5 .
-else ifeq (yes,$(shell dpkg-vendor --derives-from Tanglu && echo yes))
+ifeq ($(FLICKER_FREE_BOOT),yes)
 override_dh_installinit:
        dh_installinit -- start 99 2 3 4 5 .
 else