Skip to contentSkip to conversation

BB user manual, "Variable Flags" can be applied to non-tasks, no?

DISCUSSION Robert P. J. Day 2 participants 2 messages May 6, 2020 – May 19, 2020

lore
Share & tools
lore
#0 lore raw

still poring over BB user manual -- Section 3.7 on variable flags
strongly suggests that numerous flags can be applied to tasks only, but it seems that you can apply many of the same flags to non-task functions. one example from package.bbclass:

  python perform_packagecopy () {
        ... snip ...
  }
  ...
  perform_packagecopy[cleandirs] = "${PKGD}"
  perform_packagecopy[dirs] = "${PKGD}"

pretty sure that function is not registered as a task, but still has a couple flags applied to it. clarification?

rday

p.s. hang on ... it seems weird for the same routine to have both the [dirs] and [cleandirs] flags set.

#1 lore raw
Quoted 12 lines · Robert P. J. Day

still poring over BB user manual -- Section 3.7 on variable flags
strongly suggests that numerous flags can be applied to tasks only, but it seems that you can apply many of the same flags to non-task functions. one example from package.bbclass:

  python perform_packagecopy () {
        ... snip ...
  }
  ...
  perform_packagecopy[cleandirs] = "${PKGD}"
  perform_packagecopy[dirs] = "${PKGD}"
Quoted 2 lines

pretty sure that function is not registered as a task, but still has a couple flags applied to it. clarification?

Some flags apply to tasks, some to functions. A task can call multiple functions.

Quoted 4 lines

rday

p.s. hang on ... it seems weird for the same routine to have both the [dirs] and [cleandirs] flags set.

You don't need both.

Cheers,

Richard