]> cvs.zerfleddert.de Git - ms2-fixes/commitdiff
change compiler calls, this fixes potential toolchain-problems
authorMichael Gernoth <michael@gernoth.net>
Thu, 19 May 2011 18:19:09 +0000 (20:19 +0200)
committerMichael Gernoth <michael@gernoth.net>
Thu, 19 May 2011 18:19:09 +0000 (20:19 +0200)
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

index d1cd7368d77bed59b5a81691a0798a8a091d7791..27bd08f43ef5da0dbb2d29222d8f0e4c92a3afce 100644 (file)
--- 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
Impressum, Datenschutz