From 3d38406656eeeec9f3effffd6fc30c7b0f2173fe Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 19 May 2011 20:19:09 +0200 Subject: [PATCH 1/1] change compiler calls, this fixes potential toolchain-problems It seems cc-option from the kenrel Makefiles does not like it when the cross-compiler is directly specified and sometimes generates wrong arch-info due to this. This just leads to unbuildable code, not to problems in successfully built modules. --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d1cd736..27bd08f 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,11 @@ KDIR=../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 -CC=$(CROSS_PATH)/$(CROSS_COMPILE)gcc -LD=$(CROSS_PATH)/$(CROSS_COMPILE)ld -AR=$(CROSS_PATH)/$(CROSS_COMPILE)ar obj-m := debounce.o all: - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) V=1 modules clean: - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean + PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean -- 2.39.5