[Buildroot] Package can create LINUX_FINAL_RECURSIVE_DEPENDENCIES

Heiko Thiery heiko.thiery at gmail.com
Fri Jan 24 08:21:57 UTC 2020


Hi,

Am Fr., 24. Jan. 2020 um 08:37 Uhr schrieb Heiko Thiery
<heiko.thiery at gmail.com>:
>
> Hi,
>
> I have a custom package (MYPACKAGE) in my BR2_EXTERNAL. This package
> uses the "$(eval $(kernel-module))". In addition this package also
> adds a kernel patch hook via BR2_EXTERNAL/linux-ext-MYPACKAGE.mk.
>
> As far as I see MYPACKAGE depends on linux (due to kernel-module) and
> LINUX depends on MYPACKAGE due to the dependency created to
> LINUX_PATCH_DEPENDENCIES.

Forgot to mention that the build works and the issue only occurs when
"make legal-info" and "make graphs" are executed.

> ----
> # make linux-legal-info
> linux/linux.mk:578: *** Recursive variable
> 'LINUX_FINAL_RECURSIVE_DEPENDENCIES' references itself (eventually).
> Stop.
> make: *** [Makefile:23: _all] Error 2
> ----
>
> Is having a package that does both (linux kernel module and kernel
> patching) allowed? Can this be fixed? I think linux only need the
> dependency to the MYPACKAGE_EXTRACT because the patch is not a result
> of the build of this package.
>
> What do you think?
>
> BR
> --
> Heiko


More information about the buildroot mailing list