add: crossystem (#2418)

This commit is contained in:
WeirdTreeThing
2024-10-28 11:16:12 -04:00
committed by GitHub
parent bc9496daf3
commit bbbd0a4d35
4 changed files with 86 additions and 0 deletions
@@ -0,0 +1,26 @@
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 */