aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-25 20:42:45 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-12-25 20:42:45 +0000
commit24e129cc56f5f2d2866b7a02e19d25a735592f08 (patch)
tree9534ca567faaf9e6d1f5a80a14e14e35f559bb92 /resources/utilities
parent8141031b0bcb050ea57abc717ec0c5b14d95ee25 (diff)
downloadlibrebootfr-24e129cc56f5f2d2866b7a02e19d25a735592f08.tar.gz
librebootfr-24e129cc56f5f2d2866b7a02e19d25a735592f08.zip
ich9deblob: rename common/common.c to common/descriptor_gbe.c
Diffstat (limited to 'resources/utilities')
-rw-r--r--resources/utilities/ich9deblob/Makefile13
-rw-r--r--resources/utilities/ich9deblob/common/descriptor_gbe.c (renamed from resources/utilities/ich9deblob/common/common.c)6
-rw-r--r--resources/utilities/ich9deblob/common/descriptor_gbe.h (renamed from resources/utilities/ich9deblob/common/common.h)8
-rw-r--r--resources/utilities/ich9deblob/ich9deblob.c2
4 files changed, 16 insertions, 13 deletions
diff --git a/resources/utilities/ich9deblob/Makefile b/resources/utilities/ich9deblob/Makefile
index 06b1e32e..ddf9c84d 100644
--- a/resources/utilities/ich9deblob/Makefile
+++ b/resources/utilities/ich9deblob/Makefile
@@ -22,11 +22,14 @@ CFLAGS=-I. -Wall -g
all: ich9deblob
-ich9deblob: ich9deblob.o common/common.o descriptor/descriptor.o gbe/gbe.o x86compatibility.o
- $(CC) $(CFLAGS) ich9deblob.o common/common.o descriptor/descriptor.o gbe/gbe.o x86compatibility.o -o ich9deblob
-
-common/common.o: common/common.c
- $(CC) $(CFLAGS) -c common/common.c -o common/common.o
+ich9deblob: ich9deblob.o common/descriptor_gbe.o descriptor/descriptor.o \
+ gbe/gbe.o x86compatibility.o
+
+ $(CC) $(CFLAGS) ich9deblob.o common/descriptor_gbe.o \
+ descriptor/descriptor.o gbe/gbe.o x86compatibility.o -o ich9deblob
+
+common/descriptor_gbe.o: common/descriptor_gbe.c
+ $(CC) $(CFLAGS) -c common/descriptor_gbe.c -o common/descriptor_gbe.o
ich9deblob.o: ich9deblob.c
$(CC) $(CFLAGS) -c ich9deblob.c -o ich9deblob.o
diff --git a/resources/utilities/ich9deblob/common/common.c b/resources/utilities/ich9deblob/common/descriptor_gbe.c
index cef5b3e0..8aba9dbe 100644
--- a/resources/utilities/ich9deblob/common/common.c
+++ b/resources/utilities/ich9deblob/common/descriptor_gbe.c
@@ -1,8 +1,8 @@
/*
- * common.c
+ * descriptor_gbe.c
* This file is part of the ich9deblob utility from the libreboot project
*
- * Purpose: common functions/methods used by ich9deblob
+ * Purpose: common descriptor/gbe functions used by ich9deblob
*
* Copyright (C) 2014 Steve Shenton <sgsit@libreboot.org>
* Francis Rowe <info@gluglug.org.uk>
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <string.h>
-#include "common.h"
+#include "descriptor_gbe.h"
/*
* create 12KiB file with descriptor, and then gbe immediately after.
diff --git a/resources/utilities/ich9deblob/common/common.h b/resources/utilities/ich9deblob/common/descriptor_gbe.h
index e72821dc..cc0cc42f 100644
--- a/resources/utilities/ich9deblob/common/common.h
+++ b/resources/utilities/ich9deblob/common/descriptor_gbe.h
@@ -1,8 +1,8 @@
/*
- * common.h
+ * gbe_descriptor.h
* This file is part of the ich9deblob utility from the libreboot project
*
- * Purpose: header file for common.c
+ * Purpose: header file for descriptor_gbe.c
*
* Copyright (C) 2014 Steve Shenton <sgsit@libreboot.org>
* Francis Rowe <info@gluglug.org.uk>
@@ -21,8 +21,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef COMMON_H
-#define COMMON_H
+#ifndef COMMON_DESCRIPTOR_GBE_H
+#define COMMON_DESCRIPTOR_GBE_H
#include <stdio.h>
#include <string.h>
diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/ich9deblob.c
index fafa9a2e..6a4297c0 100644
--- a/resources/utilities/ich9deblob/ich9deblob.c
+++ b/resources/utilities/ich9deblob/ich9deblob.c
@@ -46,7 +46,7 @@
#include <stdio.h>
#include <string.h>
-#include "common/common.h" /* common functions used by ich9deblob */
+#include "common/descriptor_gbe.h" /* common descriptor/gbe functions used by ich9deblob */
#include "descriptor/descriptor.h" /* structs describing what's in the descriptor region */
#include "gbe/gbe.h" /* structs describing what's in the gbe region */
#include "x86compatibility.h" /* system/compiler compatibility checks. This code is not portable. */