summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer <vishalm@ti.com>2017-01-13 12:22:39 -0500
committerAndreas Blaesius <skate4life@gmx.de>2017-02-06 21:33:19 +0000
commite820488b092837eb546233ada0ac6bb9d49b53c9 (patch)
tree20eb0b79a34c2d8267fe45307c422d5743bfb13f
parent554e42946b50743841bcdee2ec0de3e61a07dc65 (diff)
downloadhardware_ti_omap4-e820488b092837eb546233ada0ac6bb9d49b53c9.zip
hardware_ti_omap4-e820488b092837eb546233ada0ac6bb9d49b53c9.tar.gz
hardware_ti_omap4-e820488b092837eb546233ada0ac6bb9d49b53c9.tar.bz2
SGX-BIN: buildvars: Compile PVR KM with -fno-pic
Adapted from http://review.omapzoom.org/#/c/38080 Signed-off-by: D. Andrei Măceș <dmaces@nd.edu> Change-Id: Ibe9beaf46c5236fc5ab477aa49e2f397000c2d6e
-rw-r--r--pvr-source/eurasiacon/build/linux2/buildvars.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/pvr-source/eurasiacon/build/linux2/buildvars.mk b/pvr-source/eurasiacon/build/linux2/buildvars.mk
index 24fa829..eee91cc 100644
--- a/pvr-source/eurasiacon/build/linux2/buildvars.mk
+++ b/pvr-source/eurasiacon/build/linux2/buildvars.mk
@@ -207,6 +207,10 @@ ALL_KBUILD_CFLAGS := $(COMMON_CFLAGS) $(KBUILD_WARNING_CFLAGS) \
$(call kernel-cc-option,-Wno-aggregate-return) \
$(call kernel-cc-option,-Wno-unused-but-set-variable)
+# androideabi toolchain adds `pic` by default, disable it
+# for kernel module build
+ALL_KBUILD_CFLAGS += -fno-pic
+
# This variable contains a list of all modules built by kbuild
ALL_KBUILD_MODULES :=