aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--resources/utilities/ich9deblob/Makefile32
-rw-r--r--resources/utilities/ich9deblob/src/common/descriptor_gbe.c (renamed from resources/utilities/ich9deblob/common/descriptor_gbe.c)0
-rw-r--r--resources/utilities/ich9deblob/src/common/descriptor_gbe.h (renamed from resources/utilities/ich9deblob/common/descriptor_gbe.h)0
-rw-r--r--resources/utilities/ich9deblob/src/common/x86compatibility.c (renamed from resources/utilities/ich9deblob/common/x86compatibility.c)0
-rw-r--r--resources/utilities/ich9deblob/src/common/x86compatibility.h (renamed from resources/utilities/ich9deblob/common/x86compatibility.h)0
-rw-r--r--resources/utilities/ich9deblob/src/descriptor/descriptor.c (renamed from resources/utilities/ich9deblob/descriptor/descriptor.c)0
-rw-r--r--resources/utilities/ich9deblob/src/descriptor/descriptor.h (renamed from resources/utilities/ich9deblob/descriptor/descriptor.h)0
-rw-r--r--resources/utilities/ich9deblob/src/gbe/gbe.c (renamed from resources/utilities/ich9deblob/gbe/gbe.c)0
-rw-r--r--resources/utilities/ich9deblob/src/gbe/gbe.h (renamed from resources/utilities/ich9deblob/gbe/gbe.h)0
-rw-r--r--resources/utilities/ich9deblob/src/ich9deblob.c (renamed from resources/utilities/ich9deblob/ich9deblob.c)0
-rw-r--r--resources/utilities/ich9deblob/src/ich9deblob.h (renamed from resources/utilities/ich9deblob/ich9deblob.h)0
12 files changed, 18 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
index f90772cb..d020963b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,5 +15,4 @@
/resources/utilities/ich9deblob/libreboot.rom
/resources/utilities/ich9deblob/ich9deblob
/resources/utilities/coreboot-libre/tocheck
-/resources/utilities/ich9deblob/*.o
-/resources/utilities/ich9deblob/*/*.o
+/resources/utilities/ich9deblob/obj/
diff --git a/resources/utilities/ich9deblob/Makefile b/resources/utilities/ich9deblob/Makefile
index f9a65981..87e6da22 100644
--- a/resources/utilities/ich9deblob/Makefile
+++ b/resources/utilities/ich9deblob/Makefile
@@ -19,29 +19,31 @@
CC=gcc
CFLAGS=-I. -Wall -g
+NOLINKER=-c
all: ich9deblob
-ich9deblob: ich9deblob.o common/descriptor_gbe.o descriptor/descriptor.o \
- gbe/gbe.o common/x86compatibility.o
+ich9deblob: obj/ich9deblob.o obj/common/descriptor_gbe.o \
+ obj/descriptor/descriptor.o obj/gbe/gbe.o obj/common/x86compatibility.o
- $(CC) $(CFLAGS) ich9deblob.o common/descriptor_gbe.o common/x86compatibility.o \
- descriptor/descriptor.o gbe/gbe.o -o ich9deblob
+ $(CC) $(CFLAGS) obj/ich9deblob.o obj/common/descriptor_gbe.o \
+ obj/common/x86compatibility.o obj/descriptor/descriptor.o obj/gbe/gbe.o \
+ -o ich9deblob
-ich9deblob.o: ich9deblob.c
- $(CC) $(CFLAGS) -c ich9deblob.c -o ich9deblob.o
+obj/ich9deblob.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/ich9deblob.c -o obj/ich9deblob.o
-common/descriptor_gbe.o: common/descriptor_gbe.c
- $(CC) $(CFLAGS) -c common/descriptor_gbe.c -o common/descriptor_gbe.o
+obj/common/descriptor_gbe.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/common/descriptor_gbe.c -o obj/common/descriptor_gbe.o
-common/x86compatibility.o: common/x86compatibility.c
- $(CC) $(CFLAGS) -c common/x86compatibility.c -o common/x86compatibility.o
+obj/common/x86compatibility.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/common/x86compatibility.c -o obj/common/x86compatibility.o
-descriptor/descriptor.o: descriptor/descriptor.c
- $(CC) $(CFLAGS) -c descriptor/descriptor.c -o descriptor/descriptor.o
+obj/descriptor/descriptor.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/descriptor/descriptor.c -o obj/descriptor/descriptor.o
-gbe/gbe.o: gbe/gbe.c
- $(CC) $(CFLAGS) -c gbe/gbe.c -o gbe/gbe.o
+obj/gbe/gbe.o:
+ $(CC) $(CFLAGS) $(NOLINKER) src/gbe/gbe.c -o obj/gbe/gbe.o
clean:
- rm -f ich9deblob *.o */*.o
+ rm -rf ich9deblob obj/*.o obj/*/*.o
diff --git a/resources/utilities/ich9deblob/common/descriptor_gbe.c b/resources/utilities/ich9deblob/src/common/descriptor_gbe.c
index fcb80d01..fcb80d01 100644
--- a/resources/utilities/ich9deblob/common/descriptor_gbe.c
+++ b/resources/utilities/ich9deblob/src/common/descriptor_gbe.c
diff --git a/resources/utilities/ich9deblob/common/descriptor_gbe.h b/resources/utilities/ich9deblob/src/common/descriptor_gbe.h
index cc0cc42f..cc0cc42f 100644
--- a/resources/utilities/ich9deblob/common/descriptor_gbe.h
+++ b/resources/utilities/ich9deblob/src/common/descriptor_gbe.h
diff --git a/resources/utilities/ich9deblob/common/x86compatibility.c b/resources/utilities/ich9deblob/src/common/x86compatibility.c
index 505a37d9..505a37d9 100644
--- a/resources/utilities/ich9deblob/common/x86compatibility.c
+++ b/resources/utilities/ich9deblob/src/common/x86compatibility.c
diff --git a/resources/utilities/ich9deblob/common/x86compatibility.h b/resources/utilities/ich9deblob/src/common/x86compatibility.h
index d9d5bdb3..d9d5bdb3 100644
--- a/resources/utilities/ich9deblob/common/x86compatibility.h
+++ b/resources/utilities/ich9deblob/src/common/x86compatibility.h
diff --git a/resources/utilities/ich9deblob/descriptor/descriptor.c b/resources/utilities/ich9deblob/src/descriptor/descriptor.c
index aa3d84e5..aa3d84e5 100644
--- a/resources/utilities/ich9deblob/descriptor/descriptor.c
+++ b/resources/utilities/ich9deblob/src/descriptor/descriptor.c
diff --git a/resources/utilities/ich9deblob/descriptor/descriptor.h b/resources/utilities/ich9deblob/src/descriptor/descriptor.h
index 863b8945..863b8945 100644
--- a/resources/utilities/ich9deblob/descriptor/descriptor.h
+++ b/resources/utilities/ich9deblob/src/descriptor/descriptor.h
diff --git a/resources/utilities/ich9deblob/gbe/gbe.c b/resources/utilities/ich9deblob/src/gbe/gbe.c
index 9eee8284..9eee8284 100644
--- a/resources/utilities/ich9deblob/gbe/gbe.c
+++ b/resources/utilities/ich9deblob/src/gbe/gbe.c
diff --git a/resources/utilities/ich9deblob/gbe/gbe.h b/resources/utilities/ich9deblob/src/gbe/gbe.h
index bfcc0024..bfcc0024 100644
--- a/resources/utilities/ich9deblob/gbe/gbe.h
+++ b/resources/utilities/ich9deblob/src/gbe/gbe.h
diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/src/ich9deblob.c
index ee549d2d..ee549d2d 100644
--- a/resources/utilities/ich9deblob/ich9deblob.c
+++ b/resources/utilities/ich9deblob/src/ich9deblob.c
diff --git a/resources/utilities/ich9deblob/ich9deblob.h b/resources/utilities/ich9deblob/src/ich9deblob.h
index a765bb5f..a765bb5f 100644
--- a/resources/utilities/ich9deblob/ich9deblob.h
+++ b/resources/utilities/ich9deblob/src/ich9deblob.h