From: John Stultz Date: Thu, 30 Oct 2014 22:28:18 +0000 (-0700) Subject: greybus: build: Add -fno-pic for 32bit arm as well X-Git-Tag: Ubuntu-4.10.0-19.21~2488^2~378^2~21^2~1943 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2dcf6871dd19a8129929203776c57cddbb07bcc3;p=mirror_ubuntu-artful-kernel.git greybus: build: Add -fno-pic for 32bit arm as well In order for 32bit arm devices using the android toolchain to load the greybus module, I need to add -fno-pic in the build arguments as well. Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/Android.mk b/drivers/staging/greybus/Android.mk index 773129badf62..924099b42c06 100644 --- a/drivers/staging/greybus/Android.mk +++ b/drivers/staging/greybus/Android.mk @@ -18,6 +18,7 @@ ifneq ($(ANDROID_64),) FLAGARG := EXTRA_CFLAGS+=-fno-pic else ARCHARG := ARCH=arm + FLAGARG := EXTRA_CFLAGS+=-fno-pic endif ARGS := $(KDIRARG) $(ARCHARG) $(FLAGARG)