From: Michael Gernoth Date: Sun, 22 May 2011 10:43:07 +0000 (+0200) Subject: fix Makefile X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/commitdiff_plain/b105822f5c8a93a2151e1bb53b9de62848a421ef fix Makefile --- diff --git a/Makefile b/Makefile index 43b5487..1f9a4d2 100644 --- a/Makefile +++ b/Makefile @@ -1,30 +1,17 @@ -# In this string we need to use -D__SOME__ command for define which platform we use -# And C preprocessor use only code for platform, we defined -# For example if we use Texas Instruments OMAP 3430 - we should use -# EXTRA_CFLAGS += -D__PLAT_TI_OMAP3430__ -# Else if we need for Freescale i.MX31 - we should use -# EXTRA_CFLAGS += -D__PLAT_FREESCALE_IMX31__ +KDIR=$(PWD)/../out/target/product/generic/obj/PARTITIONS/kernel_intermediates/build +ARCH=arm +CROSS_COMPILE=arm-eabi- +CROSS_PATH=$(PWD)/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin -# I don't yet have this fully set up for the droid x yet -# This line seems to work on my X, otherwise use the line -# That's commented out. -EXTRA_CFLAGS += -D__PLAT_TI_OMAP3430__ -Wall -march=arm -# EXTRA_CFLAGS += -mfpu=neon - -# Make this match the optimisation values of the kernel you're -# loading this into. Should work without changes, but it seems to -# crash on the Nexus One and Droid Pro. If you're compiling on an -# Evo 4g, set this value to 1 and change the EXTRA_CFLAGS value to -# something appropriate to your phone -# EXTRA_CFLAGS += -O0 +EXTRA_CFLAGS += -DCONFIG_KEXEC -Wall obj-m += kexec_load.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 copypage-v6.o entry-common.o driver_sys.o all: - make -C kernel/ M=$(PWD) modules + PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) V=1 modules clean: - make -C kernel/ M=$(PWD) clean + PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) make -C $(KDIR) M=$(PWD) clean rm -f *.order