]>
Commit | Line | Data |
---|---|---|
1 | KDIR=$(PWD)/../out/target/product/generic/obj/PARTITIONS/kernel_intermediates/build | |
2 | ARCH=arm | |
3 | CROSS_COMPILE=arm-eabi- | |
4 | CROSS_PATH=$(PWD)/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin | |
5 | ||
6 | SYS_CALL_TABLE := $(shell grep ' T sys_call_table$$' $(KDIR)/System.map | cut -f1 -d' ') | |
7 | KERNEL_RESTART_PREPARE := $(shell grep ' T kernel_restart_prepare$$' $(KDIR)/System.map | cut -f1 -d' ') | |
8 | ||
9 | EXTRA_CFLAGS += -DCONFIG_KEXEC -Wall -DSYS_CALL_TABLE=0x$(SYS_CALL_TABLE) -DKERNEL_RESTART_PREPARE=0x$(KERNEL_RESTART_PREPARE) | |
10 | ||
11 | obj-m += kexec_load.o headphone_cons.o boot.o | |
12 | kexec_load-objs := kexec.o machine_kexec.o mmu.o sys.o core.o relocate_kernel.o \ | |
13 | proc-v7.o tlb-v7.o cache-v7.o abort-ev7.o pabort-v7.o copypage-v6.o driver_sys.o | |
14 | headphone_cons-objs := hs_cons.o omap2_serial.o board-mapphone-emu_uart.o | |
15 | boot-objs := boot_usb.o | |
16 | ||
17 | all: | |
18 | PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) modules | |
19 | ||
20 | clean: | |
21 | PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) clean | |
22 | rm -f *.order |