]> git.zerfleddert.de Git - ms2-kexec/blame - Makefile
more stuff
[ms2-kexec] / Makefile
CommitLineData
b105822f
MG
1KDIR=$(PWD)/../out/target/product/generic/obj/PARTITIONS/kernel_intermediates/build
2ARCH=arm
3CROSS_COMPILE=arm-eabi-
4CROSS_PATH=$(PWD)/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
4e93cb00 5
4f8bca66
MG
6SYS_CALL_TABLE := $(shell grep ' T sys_call_table$$' $(KDIR)/System.map | cut -f1 -d' ')
7KERNEL_RESTART_PREPARE := $(shell grep ' T kernel_restart_prepare$$' $(KDIR)/System.map | cut -f1 -d' ')
8
9EXTRA_CFLAGS += -DCONFIG_KEXEC -Wall -DSYS_CALL_TABLE=0x$(SYS_CALL_TABLE) -DKERNEL_RESTART_PREPARE=0x$(KERNEL_RESTART_PREPARE)
4e93cb00 10
c4dc8ddb 11obj-m += kexec_load.o headphone_cons.o
1109a23f 12kexec_load-objs := kexec.o machine_kexec.o mmu.o sys.o core.o relocate_kernel.o \
0c549ba1 13 proc-v7.o tlb-v7.o cache-v7.o abort-ev7.o pabort-v7.o copypage-v6.o driver_sys.o
a18588b1 14headphone_cons-objs := hs_cons.o omap2_serial.o omap-hs-serial.o board-mapphone-emu_uart.o
4e93cb00
MG
15
16all:
8c0719d6 17 PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) modules
4e93cb00
MG
18
19clean:
b105822f 20 PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) clean
4e93cb00 21 rm -f *.order
Impressum, Datenschutz