[Buildroot] Package can create LINUX_FINAL_RECURSIVE_DEPENDENCIES

Heiko Thiery heiko.thiery at gmail.com
Fri Jan 24 07:37:48 UTC 2020


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.

----
# 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