Makefile: quote CROSS_COMPILE

When using a CROSS_COMPILE value that contains a whitespace, such as
"ccache arm-linux-", building fails because only the first word is passed down
to the kernel Makefile as CROSS_COMPILE. Successive words are interpreted as
targets.

Fix by quoting CROSS_COMPILE.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
This commit is contained in:
Luca Ceresoli 2015-07-03 14:45:03 +02:00
parent 3091828c8f
commit 7b7d6b392a

View file

@ -144,7 +144,7 @@ export CONFIG_RTL8188EU = m
all: modules
modules:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE="$(CROSS_COMPILE)" -C $(KSRC) M=$(shell pwd) modules
strip:
$(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded