mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Ports: Update dmidecode's patches to use git patches
This commit is contained in:
parent
03e9253d37
commit
09d63910c2
|
@ -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
|
||||
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
Loading…
Reference in a new issue