Skip to contentSkip to conversation

why does populate_sdk.bbclass do an "addtask" twice for same task?

DISCUSSION Robert P. J. Day 1 participant 1 message Jun 7, 2020

lore
Share & tools
lore
#0 lore raw

perusing recipes for SDKs and noticed that populate_sdk.bbclass
consists wholly of (note the addtask of populate_sdk):

inherit populate_sdk_base
addtask populate_sdk after do_install before do_build

whereupon if one examines populate_sdk_base.bbclass, right at the very end, one reads:

... snip ...
addtask populate_sdk

is there a reason that same task is added in both classes? is it the case that one of the functions of populate_sdk_base.bbclass is to simply define the populate_sdk task, whereupon an inheriting class is responsible to define *where* it is to be run?

or am i totally misunderstanding what i'm looking at?

rday