使用-c选项调用父任务时如何执行依赖任务
how to execute dependent task when parent task is called with -c option
我已经执行了带有 bitbake -c task1
选项的任务。执行此任务时,还需要执行 task2。我怎样才能确保 task2 将在 bitbake 中被调用。而且我还依赖 运行 task2 作为带有 bitbake -c 选项的独立任务。
Bitbake 任务是具有特定层次结构的连续函数链。您不能在 do_compile 之前执行 do_install,也不能代替 do_compile,或者没有 do_compile。这种能力是没有的,因为它没有多大意义。
bitbake -c task1
表示 "perform everything that task1 demands before execution, execute task1 and leave"。所以无法通过命令bitbake -c task1
执行task1之后的task2。
在我看来,-c
参数应该用于调试,而不是用于工作。理想情况下,您必须描述任务之间的所有关系并通过图像名称启动构建,而不是单个任务。所以看起来你为你的目的选择了错误的工具。你想做什么?
我已经执行了带有 bitbake -c task1
选项的任务。执行此任务时,还需要执行 task2。我怎样才能确保 task2 将在 bitbake 中被调用。而且我还依赖 运行 task2 作为带有 bitbake -c 选项的独立任务。
Bitbake 任务是具有特定层次结构的连续函数链。您不能在 do_compile 之前执行 do_install,也不能代替 do_compile,或者没有 do_compile。这种能力是没有的,因为它没有多大意义。
bitbake -c task1
表示 "perform everything that task1 demands before execution, execute task1 and leave"。所以无法通过命令bitbake -c task1
执行task1之后的task2。
在我看来,-c
参数应该用于调试,而不是用于工作。理想情况下,您必须描述任务之间的所有关系并通过图像名称启动构建,而不是单个任务。所以看起来你为你的目的选择了错误的工具。你想做什么?