Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个创建多个包的 Bitbake 配方,通过使用 PACKAGES 变量声明并使用 FILE_package1、FILE_package2 等指定每个包的内容。
我想为每个包指定不同的版本字符串,但它们都共享存储在 ${PV} 中的版本字符串。如何为每个包提供不同的版本?
虽然我可能是错的,但我认为不可能做你想做的事。该${PV}变量通常在配方的标题中指定(例如busybox_1.22.1.bb),Bitbake${PV}根据该标题设置变量。
${PV}
busybox_1.22.1.bb
为了为每个包指定不同的版本,我认为您将不得不将配方拆分为多个配方,每个配方都有自己的版本。