diff options
author | Noe Rubinstein <nrubinstein@avencall.com> | 2012-10-16 11:58:45 +0200 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@avencall.com> | 2012-10-16 11:58:45 +0200 |
commit | 653984d89294e3bd5c20458fbe44c8c208f85d31 (patch) | |
tree | 4a62908ae9be128666da3513582be66cfb6e1b68 | |
parent | d6e325c1f591f4334c7ce45f3937e2008e6c81fe (diff) |
Dump xioh_data info
-rw-r--r-- | cbfs_poc/Makefile | 14 | ||||
-rw-r--r-- | cbfs_poc/module_lol.c | 25 |
2 files changed, 2 insertions, 37 deletions
diff --git a/cbfs_poc/Makefile b/cbfs_poc/Makefile index 73856a8..cd38fd4 100644 --- a/cbfs_poc/Makefile +++ b/cbfs_poc/Makefile @@ -1,20 +1,10 @@ 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 +EXTRA_CFLAGS += -D_ARCH_TYPES_H -obj-m := module_lol.o -module_lol-y += libcbfs.a - -modules: - -libcbfs.a: - cp $(CBFS_A) $@ +obj-m := cbfs_poc.o modules modules_install clean: $(MAKE) -C $(KSRC) M=$(PWD) $@ diff --git a/cbfs_poc/module_lol.c b/cbfs_poc/module_lol.c deleted file mode 100644 index 80dc000..0000000 --- a/cbfs_poc/module_lol.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <linux/module.h> -#include <linux/types.h> -#include <linux/module.h> -#include <cbfs.h> - -#define DRIVER_NAME "cbfs_poc" - -static int init_cbfs_poc(void) -{ - struct cbfs_header* header; - setup_cbfs_from_flash(); - header = get_cbfs_header(); - if (header == (void*)0xffffffff) - printk("Header not found!\n"); - else - printk("Header found at address %p\n", header); - return 0; -} -module_init(init_cbfs_poc); - -static void exit_cbfs_poc(void) -{ -} -module_exit(exit_cbfs_poc); - |