Files
packages/anda/tools/crossystem/use-flashrom-cros.patch
T
Raboneko fe3877a94f add: crossystem (#2418) (#2445)
(cherry picked from commit bbbd0a4d35)

Co-authored-by: WeirdTreeThing <bradyn127@protonmail.com>
2024-10-29 00:25:45 +08:00

27 lines
802 B
Diff

diff --git a/host/lib/flashrom.c b/host/lib/flashrom.c
index 6a80201..c67a99d 100644
--- a/host/lib/flashrom.c
+++ b/host/lib/flashrom.c
@@ -23,7 +23,7 @@
#include "flashrom.h"
#include "subprocess.h"
-#define FLASHROM_EXEC_NAME "flashrom"
+#define FLASHROM_EXEC_NAME "flashrom-cros"
/**
* Helper to create a temporary file, and optionally write some data
diff --git a/host/lib/include/flashrom.h b/host/lib/include/flashrom.h
index 81d6ba9..6b760d6 100644
--- a/host/lib/include/flashrom.h
+++ b/host/lib/include/flashrom.h
@@ -10,7 +10,7 @@
#include "2return_codes.h"
#include "fmap.h"
-#define FLASHROM_PROGRAMMER_INTERNAL_AP "host"
+#define FLASHROM_PROGRAMMER_INTERNAL_AP "internal"
#define FLASHROM_PROGRAMMER_INTERNAL_EC "ec"
/* Utilities for firmware images and (FMAP) sections */