mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
xbmk: add fake config makefile args to flashprog
also pcsx-redux this way, commands like "./mk -u" without argument will not fail. these fake makefile commands do nothing. otherwise, an error errors because their makefiles do not define these options. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
From b7a4d2907d3358173510aa6e31af08afe4969b38 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Leah Rowe <leah@libreboot.org>
|
||||||
|
Date: Thu, 22 May 2025 11:25:42 +0100
|
||||||
|
Subject: [PATCH 1/1] lbmk hack: add config Makefile options
|
||||||
|
|
||||||
|
this prevents a build error when running the
|
||||||
|
-u, -m, -s, -l and -n options in lbmk without
|
||||||
|
argument.
|
||||||
|
|
||||||
|
this makes no functional changes to flashprog.
|
||||||
|
|
||||||
|
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
||||||
|
---
|
||||||
|
Makefile | 18 +++++++++++++++++-
|
||||||
|
1 file changed, 17 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 12adf61..701f842 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -1113,7 +1113,23 @@ libpayload: clean
|
||||||
|
gitconfig:
|
||||||
|
./util/getrevision.sh -c 2>/dev/null && ./util/git-hooks/install.sh
|
||||||
|
|
||||||
|
-.PHONY: all install clean distclean config branch tag versioninfo _export export tarball libpayload gitconfig
|
||||||
|
+oldconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+menuconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+savedefconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+olddefconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+nconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+.PHONY: all install clean distclean config branch tag versioninfo _export export tarball libpayload gitconfig oldconfig menuconfig savedefconfig olddefconfig nconfig
|
||||||
|
|
||||||
|
# Disable implicit suffixes and built-in rules (for performance and profit)
|
||||||
|
.SUFFIXES:
|
||||||
|
--
|
||||||
|
2.39.5
|
||||||
|
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
From e4cd98fb5e3baf8260a3692cab745dea925b0764 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Leah Rowe <leah@libreboot.org>
|
||||||
|
Date: Thu, 22 May 2025 11:29:37 +0100
|
||||||
|
Subject: [PATCH 1/1] lbmk hack: add no-ops for config commands
|
||||||
|
|
||||||
|
./mk -u, -m, -s, -l and -n cause errors without
|
||||||
|
arguments, because pcsx-redux's makefile doesn't
|
||||||
|
have them. additionally, i use my own makefile here,
|
||||||
|
so that only the openbios is compiled.
|
||||||
|
|
||||||
|
add these so that lbmk doesn't crash during tests.
|
||||||
|
|
||||||
|
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
||||||
|
---
|
||||||
|
lbmkbofhmakefile | 15 +++++++++++++++
|
||||||
|
1 file changed, 15 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/lbmkbofhmakefile b/lbmkbofhmakefile
|
||||||
|
index fe2e36d2..e0e2a11e 100644
|
||||||
|
--- a/lbmkbofhmakefile
|
||||||
|
+++ b/lbmkbofhmakefile
|
||||||
|
@@ -14,3 +14,18 @@ clean:
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
make -C src/mips/openbios clean
|
||||||
|
+
|
||||||
|
+oldconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+menuconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+savedefconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+olddefconfig:
|
||||||
|
+ :
|
||||||
|
+
|
||||||
|
+nconfig:
|
||||||
|
+ :
|
||||||
|
--
|
||||||
|
2.39.5
|
||||||
|
|
||||||
Reference in New Issue
Block a user