Skip to contentSkip to conversation

INCOMPATIBLE_LICENSE_EXCEPTIONS not working in kirkstone

DISCUSSION [email protected] 1 participant 2 messages Jan 24, 2024

lore
Share & tools
lore
#0 lore raw

I'm trying to add gdb to a kirkstone image for debugging, and have GPLv3.0 set as incompatible in my .conf

INCOMPATIBLE_LICENSE = "GPL-3.0-only LGPL-3.0-only AGPL-3.0-only"

in the same file I also have gdb listed as an exception:

INCOMPATIBLE_LICENSE_EXCEPTIONS += "gdb"

Despite this, builds keep failing due to the following error:

ERROR: Nothing PROVIDES 'gdb'
gdb was skipped: it has incompatible license(s): GPL-3.0-only LGPL-3.0-only

How to I correctly exempt gdb from the incompatible licenses? I also tried WHITELIST_GPL-3.0 but bitbake identifies that as an out of date override.

#1 lore raw

My exception list was incomplete, I had not added what licenses were exempt. The following now works:

INCOMPATIBLE_LICENSE_EXCEPTIONS += "gdb:GPL-3.0-only gdb:LGPL-3.0-only"