summaryrefslogtreecommitdiff
path: root/cbfs_poc/Makefile
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@avencall.com>2012-07-16 17:28:51 +0200
committerNoe Rubinstein <nrubinstein@avencall.com>2012-07-16 17:28:51 +0200
commit4abd5db422b67c965122361ec8b02d0f79bdf5f7 (patch)
tree7401281a0ab26d6b53fad4544c02bff1ca6d436a /cbfs_poc/Makefile
parentad21d37380557ddea0484df53587a2de99d43164 (diff)
cbfs_poc: it builds
Diffstat (limited to 'cbfs_poc/Makefile')
-rw-r--r--cbfs_poc/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/cbfs_poc/Makefile b/cbfs_poc/Makefile
new file mode 100644
index 0000000..73856a8
--- /dev/null
+++ b/cbfs_poc/Makefile
@@ -0,0 +1,24 @@
+PWD := $(shell pwd)
+
+KSRC ?= /bad__ksrc__not_set
+COREBOOT ?= /bad__coreboot__not_set
+LIBPAYLOAD ?= $(COREBOOT)/payloads/libpayload
+CBFS_A ?= $(LIBPAYLOAD)/build/libcbfs.a
+CBFS_INCLUDES ?= -I$(readlink -f .) -I$(LIBPAYLOAD)/include -I$(LIBPAYLOAD)/include/i386
+
+EXTRA_CFLAGS += -D_ARCH_TYPES_H -I$(LIBPAYLOAD)/include -I$(LIBPAYLOAD)/include/i386
+
+obj-m := module_lol.o
+module_lol-y += libcbfs.a
+
+modules:
+
+libcbfs.a:
+ cp $(CBFS_A) $@
+
+modules modules_install clean:
+ $(MAKE) -C $(KSRC) M=$(PWD) $@
+
+distclean: clean
+ rm -f Module.symvers modules.order
+