Ports: Update dmidecode's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 19:21:31 +04:30 committed by Ali Mohammad Pur
parent 03e9253d37
commit 09d63910c2
Notes: sideshowbarker 2024-07-17 10:51:50 +09:00
3 changed files with 30 additions and 14 deletions

View file

@ -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

View file

@ -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.

View file

@ -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"