Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Unified Diff: host/arch/arm/lib/crossystem_arch.c

Issue 6813054: Add crossystem arch (reports x86 or arm, depending on platform) (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | host/arch/x86/lib/crossystem_arch.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: host/arch/arm/lib/crossystem_arch.c
diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c
index 34f38f6e72e3e1871b5cd2d388b058721a3a93c9..4304ce7c596bf4432eedf317f8f99d6e1a3af4eb 100644
--- a/host/arch/arm/lib/crossystem_arch.c
+++ b/host/arch/arm/lib/crossystem_arch.c
@@ -75,7 +75,9 @@ int VbGetArchPropertyInt(const char* name) {
const char* VbGetArchPropertyString(const char* name, char* dest, int size) {
/* TODO: IMPLEMENT ME! For now, return reasonable defaults for
* values where reasonable defaults exist. */
- if (!strcasecmp(name,"hwid")) {
+ if (!strcasecmp(name,"arch")) {
+ return StrCopy(dest, "arm", size);
+ } else if (!strcasecmp(name,"hwid")) {
return StrCopy(dest, "UnknownArmHwid", size);
} else if (!strcasecmp(name,"fwid")) {
return StrCopy(dest, "UnknownArmFwid", size);
« no previous file with comments | « no previous file | host/arch/x86/lib/crossystem_arch.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698