aboutsummaryrefslogtreecommitdiffstats
path: root/testing/booster/0003-generator-Convert-constants-pointing-to-directory-to.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/booster/0003-generator-Convert-constants-pointing-to-directory-to.patch')
-rw-r--r--testing/booster/0003-generator-Convert-constants-pointing-to-directory-to.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/testing/booster/0003-generator-Convert-constants-pointing-to-directory-to.patch b/testing/booster/0003-generator-Convert-constants-pointing-to-directory-to.patch
deleted file mode 100644
index 325b96bc6ec..00000000000
--- a/testing/booster/0003-generator-Convert-constants-pointing-to-directory-to.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 6973fcc7ac110b2b62c431a091968dc3212fa512 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
-Date: Sat, 11 Jun 2022 16:18:04 +0200
-Subject: [PATCH] generator: Convert constants pointing to directory to
- variables
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This allows modifying their value via the `-X` flag provided by
-`go tool link`. This eases packaging of Booster as distributions
-which use different paths for these directories don't need to patch
-Booster but instead can set these variables using:
-
- go build --ldflags="-X main.consolefontsDir=/foo/bar/…"
----
- generator/console.go | 2 +-
- generator/generator.go | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/generator/console.go b/generator/console.go
-index 05aeb3b..e66747c 100644
---- a/generator/console.go
-+++ b/generator/console.go
-@@ -14,7 +14,7 @@ import (
- )
-
- // path to console fonts, adjust it to your distro (e.g. Fedora uses /usr/lib/kbd/consolefonts path for it)
--const consolefontsDir = "/usr/share/kbd/consolefonts/"
-+var consolefontsDir = "/usr/share/kbd/consolefonts/"
-
- func (img *Image) enableVirtualConsole(vConsolePath, localePath string) (*VirtualConsole, error) {
- debug("enabling virtual console")
-diff --git a/generator/generator.go b/generator/generator.go
-index fdd92be..474cebc 100644
---- a/generator/generator.go
-+++ b/generator/generator.go
-@@ -58,7 +58,7 @@ const (
- netStatic
- )
-
--const (
-+var (
- imageModulesDir = "/usr/lib/modules/"
- firmwareDir = "/usr/lib/firmware/"
- )