X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/blobdiff_plain/0c549ba1cfe1d2d61c07eccab7f274740b706ed6..e14c6eae15c85ae74d5a5b1dec3975eccf0fb337:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index bc86aac..ef4b881 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,15 @@ ARCH=arm CROSS_COMPILE=arm-eabi- CROSS_PATH=$(PWD)/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin -EXTRA_CFLAGS += -DCONFIG_KEXEC -Wall +SYS_CALL_TABLE := $(shell grep ' T sys_call_table$$' $(KDIR)/System.map | cut -f1 -d' ') +KERNEL_RESTART_PREPARE := $(shell grep ' T kernel_restart_prepare$$' $(KDIR)/System.map | cut -f1 -d' ') -obj-m += kexec_load.o -kexec_load-objs := kexec.o machine_kexec.o idmap.o sys.o core.o relocate_kernel.o \ +EXTRA_CFLAGS += -DCONFIG_KEXEC -Wall -DSYS_CALL_TABLE=0x$(SYS_CALL_TABLE) -DKERNEL_RESTART_PREPARE=0x$(KERNEL_RESTART_PREPARE) + +obj-m += kexec_load.o headphone_cons.o +kexec_load-objs := kexec.o machine_kexec.o mmu.o sys.o core.o relocate_kernel.o \ proc-v7.o tlb-v7.o cache-v7.o abort-ev7.o pabort-v7.o copypage-v6.o driver_sys.o +headphone_cons-objs := hs_cons.o omap2_serial.o omap-hs-serial.o all: PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) modules