Re: [Openembedded-architecture] [oe] INCOMPATIBLE_LICENSES and WHITELIST_<license> usage
Mikko Rapeli <mikko.rapeli@...>
On Thu, Feb 17, 2022 at 04:20:01PM -0800, Andre McCurdy wrote:
On Thu, Feb 17, 2022 at 3:01 PM Saul Wold <Saul.Wold@...> wrote:Exactly, I'm using this in a lot of projects.Common case seems to be allowing gdb in debug builds of distros which
Basically distro config has:
INCOMPATIBLE_LICENSE_append += " GPLv3 GPLv3+ LGPLv3 LGPLv3+"
and then various GPLv3 tools are allowed in build but not allowed to be
part of images:
WHITELIST_GPL-3.0 += "binutils"
PACKAGE_EXCLUDE += "binutils-dbg binutils-staticdev binutils-dev binutils-doc binutils-locale libbfd binutils"
WHITELIST_GPL-3.0 += "gdb"
PACKAGE_EXCLUDE += "gdb-sdktests-dbg gdb-sdktests gdbserver gdb-dbg gdb-staticdev gdb-dev gdb-doc gdb-locale gdb"
WHITELIST_GPL-3.0 += "rsync"
PACKAGE_EXCLUDE += "rsync-dbg rsync-staticdev rsync-dev rsync-doc rsync-locale rsync"
Use case is that developers can install additional GPLv3 licensed tooling if they
need to debug something, but product images don't include them by default.