summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
20bf1c9)
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.
ARCH=arm
CROSS_COMPILE=arm-eabi-
CROSS_PATH=$(PWD)/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
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
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+ PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) V=1 modules
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
+ PATH=$(CROSS_PATH):$(PATH) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean