[Buildroot] How to pass EXTRA_OECMAKE_BUILD in Buildroot package definition?
Sourabh Hegde
hrsourabh011 at gmail.com
Tue Sep 26 04:52:04 UTC 2023
Hello Yann,
Could you please give me an update on above request?
Thanks in advance
On Sun, Sep 24, 2023, 22:31 Sourabh Hegde <hrsourabh011 at gmail.com> wrote:
> Hello Yann,
>
> Thanks for the update.
>
> But by the name, and the value it is assigned, it looks like it
>> is the list of cmake rules to build.
>>
>> We do have that in Buildroot: LIBFOO_MAKE_OPTS
>>
>
> Yes, I managed to build it.
>
> Now, if you are trying to use tensorflow-lite, there is a pending series
>
> by James
>
> Yes, I have tried this and reported one issue. But this version of
> tensorflow is from NXP and they have added some additional configurations.
> I wanted to test it.
>
> Also, I have one more question: How can I pass the directory of a host
> package in another package makefile? For example, in LIBFOO.mk file:
> LIBFOO_CONF_OPTS = -DFOO_HOST_TOOLS_DIR = $(HOST_LIBX_HOST_DIR)/usr/
>
> HOST_LIBX_HOST_DIR is the directory of host-libx.
> But $(HOST_LIBX_HOST_DIR) is not being parsed.
>
> Best Regards,
> Sourabh
>
> On Fri, 22 Sept 2023 at 19:06, Yann E. MORIN <yann.morin.1998 at free.fr>
> wrote:
>
>> Sourabh, all,
>>
>> Please do not top-post, this is considered bad etiquette. Reply in-line
>> as I do:
>>
>> On 2023-09-22 18:22 +0200, Sourabh Hegde spake thusly:
>> > Yes, I checked in "Infrastructure for Cmake based packages" but
>> couldn't find anything relevant.
>> > There seems to be no direct way to do this in Buildroot. Please correct
>> me if I'm wrong.
>>
>> So, you have to know what that OE variable does (I have no idea, I don't
>> do OE). But by the name, and the value it is assigned, it looks like it
>> is the list of cmake rules to build.
>>
>> We do have that in Buildroot: LIBFOO_MAKE_OPTS
>>
>> You could look at existign packages to see how it is used, e.g.:
>>
>> $ grep _MAKE_OPTS $(git grep -l -E 'eval \$\(cmake-')
>>
>> Now, if you are trying to use tensorflow-lite, there is a pending series
>> by James, and it would be nice if you could have a look at it, test it,
>> and report, rather than try yet something else:
>> https://patchwork.ozlabs.org/project/buildroot/list/?series=346546
>>
>> Regards,
>> Yann E. MORIN.
>>
>> Regards,
>> Yann E. MORIN.
>>
>> > On Fri, Sep 22, 2023, 18:04 Yann E. MORIN < [1]yann.morin.1998 at free.fr>
>> wrote:
>> >
>> > Sourabh, All,
>> >
>> > On 2023-09-22 17:33 +0200, Sourabh Hegde spake thusly:
>> > > Hi,
>> > > I am trying to add a Buildroot package where I need to
>> specify EXTRA_OECMAKE_BUILD. But I couldn't find any relevant
>> > > variable in Buildroot for this.
>> >
>> > This variable is specific to the OpenEmbedded world.
>> >
>> > Look at the Buildroot manual to find the corresponding variable:
>> >
>> > [2]https://buildroot.org/downloads/manual/manual.html
>> >
>> > Hint: "Infrastructure for CMake-based packages"
>> >
>> > Regards,
>> > Yann E. MORIN.
>> >
>> > > Example will be from
>> > > [1]
>> > [3]
>> https://github.com/nxp-imx/meta-imx/blob/64a864ab77de06a557afcb01e6dd4d21606e6948/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.10.0.bb#L41
>> > > Can anyone please let me know how to achieve this?
>> > > Thanks in advance.
>> > >
>> > > Links:
>> > > 1.
>> > [4]
>> https://github.com/nxp-imx/meta-imx/blob/64a864ab77de06a557afcb01e6dd4d21606e6948/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.10.0.bb#L41
>> >
>> > > _______________________________________________
>> > > buildroot mailing list
>> > > [5]buildroot at buildroot.org
>> > > [6]https://lists.buildroot.org/mailman/listinfo/buildroot
>> >
>> > --
>> >
>> .-----------------.--------------------.------------------.--------------------.
>> > | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
>> conspiracy: |
>> > | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___
>>
>> > |
>> > | +33 561 099 427 `------------.-------: X AGAINST | \e/
>> There is no |
>> > | [7]http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v
>> conspiracy. |
>> >
>> '------------------------------^-------^------------------^--------------------'
>> >
>> > Links:
>> > 1. mailto:yann.morin.1998 at free.fr
>> > 2. https://buildroot.org/downloads/manual/manual.html
>> > 3.
>> https://github.com/nxp-imx/meta-imx/blob/64a864ab77de06a557afcb01e6dd4d21606e6948/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.10.0.bb#L41
>> > 4.
>> https://github.com/nxp-imx/meta-imx/blob/64a864ab77de06a557afcb01e6dd4d21606e6948/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.10.0.bb#L41
>> > 5. mailto:buildroot at buildroot.org
>> > 6. https://lists.buildroot.org/mailman/listinfo/buildroot
>> > 7. http://ymorin.is-a-geek.org/
>>
>> > _______________________________________________
>> > buildroot mailing list
>> > buildroot at buildroot.org
>> > https://lists.buildroot.org/mailman/listinfo/buildroot
>>
>>
>> --
>>
>> .-----------------.--------------------.------------------.--------------------.
>> | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
>> conspiracy: |
>> | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___
>> |
>> | +33 561 099 427 `------------.-------: X AGAINST | \e/ There
>> is no |
>> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v
>> conspiracy. |
>>
>> '------------------------------^-------^------------------^--------------------'
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20230926/bf7f381f/attachment-0001.html>
More information about the buildroot
mailing list