Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Issue compiling the library linux_libnfc-nci (from NXP)
@ 2021-10-24 18:28 Alassane
  2021-10-24 19:54 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Alassane @ 2021-10-24 18:28 UTC (permalink / raw)
  To: buildroot


[-- Attachment #1.1: Type: text/plain, Size: 1216 bytes --]

Hello,

I'm trying to add the following package to buildroot and trying to compile
it : linux_libnfc-nci (https://github.com/NXPNFCLinux/linux_libnfc-nci).
It was supposed not too be complicated but i'm actually struggling with
that. the "configure" file is missing from the linux repository. To get the
"configure" file, we must run the "bootstrap.sh" script, which is in the
git repository, and contains the following commands:

mkdir -p m4
aclocal
autoheader
libtoolize
automake --add-missing
autoreconf -fi
rm -Rf autom4te.cache
I'm able to install this library on my host but i'm not able and even able
to manually cross compile it but it doesn't work when trying to
cross-compile it through buildroot (as a package), because of this
"configure" file missing (the error i have is : "/bin/bash: ./configure: No
such file or directory").
Does anyone know how can i generate this "configure" file using buildroot?
is it possible to run the "boostrap" with a specific line in the ".mk" file?
Can i manually run the "bootstrap.sh" script and copy the "configure" file
in the package build folder? is this a good method?

I hope this is clear and that someone will be able to help with that.

Kind regards

Thank you

[-- Attachment #1.2: Type: text/html, Size: 7382 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Buildroot] Issue compiling the library linux_libnfc-nci (from NXP)
  2021-10-24 18:28 [Buildroot] Issue compiling the library linux_libnfc-nci (from NXP) Alassane
@ 2021-10-24 19:54 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-10-24 19:54 UTC (permalink / raw)
  To: Alassane; +Cc: buildroot

Alassane, All,

On 2021-10-24 20:28 +0200, Alassane spake thusly:
> I'm trying to add the following package to buildroot and trying to compile it :  linux_libnfc-nci (
> [1]https://github.com/NXPNFCLinux/linux_libnfc-nci ).
> It was supposed not too be complicated but i'm actually struggling with that. the "configure" file is missing from the linux
> repository. To get the "configure" file, we must run the "bootstrap.sh" script, which is in the git repository, and
> contains the following commands:
> 
>  mkdir -p m4
>  aclocal
>  autoheader
>  libtoolize
>  automake --add-missing
>  autoreconf -fi
>  rm -Rf autom4te.cache

Usually, the proper solution to to just run autoreconf in your package,
by instructing Buildroot to do so. Assuming you name the package
linux_libnfc-nci, it should be enough to just write:

    LINUX_LIBNFC_NCI_AUTORECONF = YES

in your .mk file, and not call bootstrap at all.

You *may* need to create the m4 directory first with a pre-cnofigure
hook, but usually that has not been needed for a while now. If running
autoreconf fails because of a missign m4 directory, then you could try
adding something like:

    define LINUX_LIBNFC_NCI_M4
        mkdir -p $(@D)/m4
    endef
    LINUX_LIBNFC_NCI_PRE_CONFIGURE_HOOKS += LINUX_LIBNFC_NCI_M4

Regards,
Yann E. MORIN.

> I'm able to install this library on my host but i'm not able and even able to manually cross compile it but it doesn't work when
> trying to cross-compile it through buildroot (as a package), because of this "configure" file missing (the error i have is :
> "/bin/bash: ./configure: No such file or directory").
> Does anyone know how can i generate this "configure" file using buildroot? is it possible to run the "boostrap" with a specific line
> in the ".mk" file?
> Can i manually run the "bootstrap.sh" script and copy the "configure" file in the package build folder? is this a good method?
> I hope this is clear and that someone will be able to help with that.
> Kind regards
> Thank you
> 
> Links:
> 1. https://github.com/NXPNFCLinux/linux_libnfc-nci

> _______________________________________________
> buildroot mailing list
> buildroot@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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-24 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-24 18:28 [Buildroot] Issue compiling the library linux_libnfc-nci (from NXP) Alassane
2021-10-24 19:54 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox