summaryrefslogtreecommitdiff
path: root/util/broadcom/secimage/misc.c
diff options
context:
space:
mode:
authorPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-11-28 18:50:11 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-11-30 10:26:37 +0000
commitaea00f496b1cf41fd5b568b4c6079c2ab76eafd4 (patch)
treea42e9c303964a884ae0ffb8218d2b3cf8696d212 /util/broadcom/secimage/misc.c
parent48418757cb48a08d0e0d4db25a950ba74b77b21e (diff)
broadcom: Remove SoC and board support
The reason for this code cleanup is the legacy Google Purin board which isn't available anymore and AFAIK never made it into the stores. * Remove broadcom cygnus SoC support * Remove /util/broadcom tool * Remove Google Purin mainboard * Remove MAINTAINERS entries Change-Id: I148dd7eb0192d396cb69bc26c4062f88a764771a Signed-off-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Reviewed-on: https://review.coreboot.org/c/29905 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/broadcom/secimage/misc.c')
-rw-r--r--util/broadcom/secimage/misc.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/util/broadcom/secimage/misc.c b/util/broadcom/secimage/misc.c
deleted file mode 100644
index 0d0cf0be80..0000000000
--- a/util/broadcom/secimage/misc.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2015 Broadcom Corporation
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation version 2.
- *
- * This program is distributed "as is" WITHOUT ANY WARRANTY of any
- * kind, whether express or implied; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <stdio.h>
-#include <string.h>
-#include "secimage.h"
-
-static unsigned char filebuffer[2049];
-
-void FillHeaderFromConfigFile(char *h, char *ConfigFileName)
-{
-
- int byte_count = 0;
- char *ptr;
- FILE *fp;
- unsigned int Tag;
- unsigned int Length;
- unsigned int Reserved;
- HEADER *h1 = (HEADER *)h;
-
- fp = fopen(ConfigFileName, "rb");
- if (fp != NULL) {
- printf("\r\n Reading config information from file \r\n");
- byte_count = fread(filebuffer, 1, 2048, fp);
- filebuffer[2048] = 0;
- if (byte_count > 0) {
- ptr = strstr((char *)filebuffer, "Tag=");
- if (ptr) {
- ptr += strlen("Tag=");
- sscanf(ptr, "%x", &Tag);
- h1->Tag = Tag;
- }
- ptr = strstr((char *)filebuffer, "Length=");
- if (ptr) {
- ptr += strlen("Length=");
- sscanf(ptr, "%x", &Length);
- h1->Length = Length;
- }
- ptr = strstr((char *)filebuffer, "Reserved=");
- if (ptr) {
- ptr += strlen("Reserved=");
- sscanf(ptr, "%x", &Reserved);
- h1->Reserved = Reserved;
- }
- }
- fclose(fp);
- }
-}