summaryrefslogtreecommitdiff
path: root/Ports/dmidecode
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-05-16 19:21:31 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-19 20:17:10 +0430
commit09d63910c28250a38d725271f53f5fbdbb1d8f6e (patch)
tree86032ec652dec12b46d2985b0fec47ff095f5a90 /Ports/dmidecode
parent03e9253d37387ba747751a215bfe911dc875067f (diff)
downloadserenity-09d63910c28250a38d725271f53f5fbdbb1d8f6e.zip
Ports: Update dmidecode's patches to use git patches
Diffstat (limited to 'Ports/dmidecode')
-rw-r--r--Ports/dmidecode/patches/0001-Use-serenity-s-firmware-binary-path.patch25
-rw-r--r--Ports/dmidecode/patches/ReadMe.md8
-rw-r--r--Ports/dmidecode/patches/dmidecode.patch11
3 files changed, 30 insertions, 14 deletions
diff --git a/Ports/dmidecode/patches/0001-Use-serenity-s-firmware-binary-path.patch b/Ports/dmidecode/patches/0001-Use-serenity-s-firmware-binary-path.patch
new file mode 100644
index 0000000000..0b49ecde27
--- /dev/null
+++ b/Ports/dmidecode/patches/0001-Use-serenity-s-firmware-binary-path.patch
@@ -0,0 +1,25 @@
+From 546bd7af0869cb4064d7e29baacfdaa1e174d063 Mon Sep 17 00:00:00 2001
+From: Liav A <liavalb@gmail.com>
+Date: Fri, 1 Apr 2022 11:01:13 +0300
+Subject: [PATCH] Use serenity's firmware binary path
+
+---
+ dmidecode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dmidecode.c b/dmidecode.c
+index cd2b5c9..49bf30e 100644
+--- a/dmidecode.c
++++ b/dmidecode.c
+@@ -90,7 +90,7 @@ static const char *bad_index = "<BAD INDEX>";
+ #define FLAG_NO_FILE_OFFSET (1 << 0)
+ #define FLAG_STOP_AT_EOT (1 << 1)
+
+-#define SYS_FIRMWARE_DIR "/sys/firmware/dmi/tables"
++#define SYS_FIRMWARE_DIR "/sys/firmware/bios"
+ #define SYS_ENTRY_FILE SYS_FIRMWARE_DIR "/smbios_entry_point"
+ #define SYS_TABLE_FILE SYS_FIRMWARE_DIR "/DMI"
+
+--
+2.36.1
+
diff --git a/Ports/dmidecode/patches/ReadMe.md b/Ports/dmidecode/patches/ReadMe.md
index 9d2490760e..754e32505a 100644
--- a/Ports/dmidecode/patches/ReadMe.md
+++ b/Ports/dmidecode/patches/ReadMe.md
@@ -1,5 +1,7 @@
-# Patches for dmidecode
+# Patches for dmidecode on SerenityOS
+
+## `0001-Use-serenity-s-firmware-binary-path.patch`
+
+Use serenity's firmware binary path
-## `dmidecode.patch`
-Set the correct path for the dmi firmware.
diff --git a/Ports/dmidecode/patches/dmidecode.patch b/Ports/dmidecode/patches/dmidecode.patch
deleted file mode 100644
index bb9aa3cb7f..0000000000
--- a/Ports/dmidecode/patches/dmidecode.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -u b/dmidecode.c b/dmidecode.c
---- b/dmidecode.c
-+++ b/dmidecode.c
-@@ -90,7 +90,7 @@
- #define FLAG_NO_FILE_OFFSET (1 << 0)
- #define FLAG_STOP_AT_EOT (1 << 1)
-
--#define SYS_FIRMWARE_DIR "/sys/firmware/dmi/tables"
-+#define SYS_FIRMWARE_DIR "/sys/firmware/bios"
- #define SYS_ENTRY_FILE SYS_FIRMWARE_DIR "/smbios_entry_point"
- #define SYS_TABLE_FILE SYS_FIRMWARE_DIR "/DMI"