<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.m7813192496864950312msolistparagraph, li.m7813192496864950312msolistparagraph, div.m7813192496864950312msolistparagraph
        {mso-style-name:m_7813192496864950312msolistparagraph;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> Please find below the do_compile() function.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">S = "${WORKDIR}/backportcypress-${PV}"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">KLIB=/home/jameel/project//fsl-arm-yocto-bsp/imx6ulevk/tmp/work-shared/imx6ulevk/kernel-source<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">KLIB_BUILD=/home/jameel/project//fsl-arm-yocto-bsp/imx6ulevk/tmp/work-shared/imx6ulevk/kernel-build-artifacts
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">do_configure () {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> echo "Configuring"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> echo "KLIB: ${KLIB}"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> echo "KLIB_BUILD: ${KLIB_BUILD} "<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">export EXTRA_CFLAGS = "${CFLAGS}"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">export BINDIR = "${sbindir}"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">do_compile () {<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> echo "Compiling: "<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""> make KLIB=/home/jameel/project//fsl-arm-yocto-bsp/imx6ulevk/tmp/work-shared/imx6ulevk/kernel-source KLIB_BUILD=/home/jameel/project//fsl-arm-yocto-bsp/imx6ulevk/tmp/work-shared/imx6ulevk/kernel-build-artifacts
defconfig-brcmfmac<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">With Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Jameel Basha<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> parmeshwar tak [mailto:parmesh.iiit@gmail.com]
<br>
<b>Sent:</b> Saturday, November 11, 2017 4:16 AM<br>
<b>To:</b> Jameel Valai Kareem<br>
<b>Subject:</b> Re: [bitbake-devel] Integration of FMAC(Orga) Driver into Yocto Environment - regarding<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Can you paste your do_compile() function here.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Nov 11, 2017 12:20 AM, "Jameel Valai Kareem" <<a href="mailto:jameel.kareem@murata.com">jameel.kareem@murata.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello Everyone,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> I am currently working on the creation of new
<b>MACHINE</b> type for addressing the <a href="https://community.cypress.com/docs/DOC-14056" target="_blank">
Cypress Broadcom FMAC driver release</a> ( attached for your reference).<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">As part of the initial steps, I am ensuring that, we have necessary recipes tested, so that, it can added to the new MACHINE type along with the new layer “meta-murata-wireless”<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I was able to get the
<i>wpa-supplicant</i> and <i>hostapd</i> recipe into the Yocto setup.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I need your help in resolving a problem related to native
<i><span style="color:blue">make</span></i><span style="color:blue"> </span>when using the Backport Tools.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><u>Backport Tools:</u></b><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in">FMAC driver uses Backport Tool (v4.12-backports) to generate the necessary .ko files, namely (<i>compat.ko</i>,
<i>brcmfmac.ko</i>, <i>brcmutil.ko</i> and <i>cfg80211.ko)</i><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in">In the Readme file, 2<sup>nd</sup> step under the Section : “<i>Build the cypress driver/backports modules</i>” is to
<o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.7in">-<span style="font-size:7.0pt">
</span><i>(Native) compile local tools and generate .config without sourcing Yocto tool chain settings</i>.<o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.7in"><span style="font-family:"Courier New"">make KLIB=$MY_KERNEL KLIB_BUILD=$MY_KERNEL defconfig-brcmfmac</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><u>Problem Description:</u></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><u>
</u></b><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in">I don’t know how to use the native make in the do_compile( ) function in
<i><a href="http://backportcypress_1.0.bb" target="_blank">backportcypress_1.0.bb</a></i> ( attached for your reference), as Yocto uses tool chain settings.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> I get the following error message, when I compile
<i><a href="http://backportcypress_1.0.bb" target="_blank">backportcypress_1.0.bb</a>
</i>recipe.<o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"> <o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">Compiling:</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| Generating local configuration database from kernel ... done.</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/jameel/project/task22-yocto-6ul-evk/fsl-arm-yocto-bsp/imx6ulevk/tmp/sysroots/imx6ulevk
-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/jameel/project/task22-yocto-6ul-evk/fsl-arm-yocto-bsp/imx6ulevk/tmp/sysroots/imx6ulevk
-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/jameel/project/task22-yocto-6ul-evk/fsl-arm-yocto-bsp/imx6ulevk/tmp/sysroots/imx6ulevk
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conf.o zconf.tab.o -o conf</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| ./kconf/conf: 1: ./kconf/conf: Syntax error: word unexpected (expecting ")")</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| Makefile.real:41: recipe for target 'defconfig-brcmfmac' failed</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| make[1]: *** [defconfig-brcmfmac] Error 2</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| Makefile:40: recipe for target 'defconfig-brcmfmac' failed</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| make: *** [defconfig-brcmfmac] Error 2</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"><span style="font-size:8.0pt">| WARNING: exit code 2 from a shell command.</span><o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in"> <o:p></o:p></p>
<p class="m7813192496864950312msolistparagraph" style="margin-left:.45in">Could you please let me know how to generate the .config file by using native
<i><span style="color:blue">make</span></i>, instead of oe_runmake in Yocto setup?.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks and Regards,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Jameel Basha<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<p class="MsoNormal">CONFIDENTIALITY: This message contains information which may be confidential and privileged.Unless you are the intended addressee (or authorized to receive for the intended addressee), you may not use, copy or disclose to anyone the message
or any information contained in the message. If you have received the message in error, please advise the sender at Murata by reply email and delete the message.
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
--<br>
_______________________________________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org">bitbake-devel@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" target="_blank">http://lists.openembedded.org/mailman/listinfo/bitbake-devel</a><o:p></o:p></p>
</div>
</div>
</div>
CONFIDENTIALITY: This message contains information which may be confidential and privileged.Unless you are the intended addressee (or authorized to receive for the intended addressee), you may not use, copy or disclose to anyone the message or any information
contained in the message. If you have received the message in error, please advise the sender at Murata by reply email and delete the message.
</body>
</html>