[Buildroot] [PATCH v1 1/6] package/nvidia-modprobe: new package
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat Aug 8 14:28:30 UTC 2020
On Sat, 8 Aug 2020 04:29:43 -0700
Christian Stewart <christian at paral.in> wrote:
> > Maybe I miss something?
>
> You tested this?... I don't think so. It doesn't work:
>
> LINK _out/Linux_x86_64/nvidia-modprobe.unstripped
> /bin/sh: build/nvidia-modprobe-450.57/_out/Linux_x86_64/gen-manpage-opts:
> cannot execute binary file: Exec format error
> make[2]: *** [Makefile:149: _out/Linux_x86_64/options.1.inc] Error 126
>
> The package as-is from GitHub has an extremely convoluted Makefile
> which does not do what we want in Buildroot.
The Makefile is not that convoluted, and we definitely want to use it.
The above error is due to the fact that the gen-manpage-opts tool needs
to be built for the host.
Two solutions:
- Set HOST_CC and other variables properly when building.
- Don't build the manpage, which should be doable by calling the
appropriate make target.
Also, you have host-pkgconf as a dependency, and it doesn't seem to be
needed.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list