<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div>I trying to write a simple recipe which will be building some static libraries. the makefile has the "-fPIC" enabled. when i try to compile it using simple yocto recipe, i am getting this error.</div><div><br></div><div>"</div><div><div>| /home/sridhar/workspace/exp/yoc/build/tmp/work/corei7-64-poky-linux/sdk/1.0-r0/sdk-all-6.4.8/systems/linux/kernel/modules/shared/uk-rtrans.c:1:0: error: code model kernel does not support PIC mode</div><div>| /***********************************************************************</div><div>| ^</div></div><div><br></div><div><span style="font-size: 12pt;">"</span></div><div><br></div><div>recipe:</div><div><br></div><div>"</div><div><div>SUMMARY = "TEST"</div><div><br></div><div>LICENSE = "CLOSED"</div><div>PR = "r0"</div><div>PROVIDES = "pi-swos-bcm-sdk"</div><div><br></div><div># BCM SDK inconsistant with parallel make</div><div>PARALLEL_MAKE = ""</div><div><br></div><div>FILESEXTRAPATHS_prepend = "${THISDIR}:"</div><div>SRC_URI = "file://6.4.8/sdk.tar.gz \</div><div> "</div><div><br></div><div>MAKEFLAGS_append = " -fPIC "</div><div>do_compile() {</div><div> oe_runmake -C ${WORKDIR}/sdk-all-6.4.8/systems/linux/user/x86-generic_64-3_19</div><div>}</div></div><div>"</div><div><br></div><div>Can someone help me on this.</div><div><br></div><div>thanks,</div><div>Sridhar Pitchai</div> </div></body>
</html>