Reputation: 3205
From what I understood here, if I compile with the flag --enable-gpl
, ffmpeg can be added in a commercial product.
In the recipe, there is: PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
Thus, I created a ffmpeg_%.bbappend
containing:
PACKAGECONFIG_append ="gpl"
But it seems I still have to put a value in LICENSE_FLAGS_WHITELIST
, most likely commercial
. Is it a mistake from me or is it not handled properly by the main recipe?
Thanks
Upvotes: 1
Views: 2123
Reputation: 8991
No, it's not a mistake.
The PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
just adds a way to enable/disable building GPL-licensed parts of ffmpeg
. It has nothing to do with whether you can use the result in a commercial product.
By setting LICENSE_FLAGS_WHITELIST_append = " commercial_ffmpeg"
, you're telling the buildsystem that you're allowed to build and use ffmpeg
. That can be due to you having acquired a commercial license (or licenses), that you'r in a jurisdiction where you don't need commercial license(s), etc...
Note that in this case, these two PACKAGECONFIG[gpl]
and LICENSE_FLAGS_WHITELIST
are orthogonal, they have nothing with each other to do.
The LICENSE_FLAGS_WHITELIST
is there to protect you, from adding things that might require commercial licenses by mistake / unknowingly.
Upvotes: 3