]> git.zerfleddert.de Git - ms2-kexec/blobdiff - Makefile
don't shut down devices, still doesn't work on MS2 even with more ATAGS
[ms2-kexec] / Makefile
index aea8202e7ddd1872555c3f441651d6cdab17878b..544acfffa0f9c5cd4da11ad431d6eae1a85893f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,10 @@ 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' ')
+
+EXTRA_CFLAGS += -DCONFIG_KEXEC -Wall -DSYS_CALL_TABLE=0x$(SYS_CALL_TABLE) -DKERNEL_RESTART_PREPARE=0x$(KERNEL_RESTART_PREPARE)
 
 obj-m += kexec_load.o
 kexec_load-objs := kexec.o machine_kexec.o mmu.o sys.o core.o relocate_kernel.o \
Impressum, Datenschutz