]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: build: Add -fno-pic for 32bit arm as well
authorJohn Stultz <john.stultz@linaro.org>
Thu, 30 Oct 2014 22:28:18 +0000 (15:28 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 30 Oct 2014 22:33:38 +0000 (15:33 -0700)
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 <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/Android.mk

index 773129badf62a8d83a5b0a21af6ec653bf631917..924099b42c06adce66b7870151000b83913ba7d6 100644 (file)
@@ -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)