openbmc / docs

OpenBMC Documentation
Creative Commons Attribution 4.0 International
277 stars 307 forks source link

How to add a new recipe into OpenBMC #44

Closed brendenlai closed 5 years ago

brendenlai commented 5 years ago

How to write a recipe for adding features into OpenBMC image? I just try to add ipmitool(dbus version) into romulus image . But i don't know how to write the bb files , can someone write a tutorial about this subject ?

bradbishop commented 5 years ago

How to write a recipe for adding features into OpenBMC image?

For general recipe writing overview this is a helpful page:

https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-writing-a-new-recipe

I just try to add ipmitool(dbus version) into romulus image .

One quick way to do this is just add a line like

IMAGE_INSTALL_append = " ipmitool"

to your build/local.conf. Note the space between the quote and the ipmitool - it is required.

But i don't know how to write the bb files , can someone write a tutorial about this subject ?

brendenlai commented 5 years ago

How to write a recipe for adding features into OpenBMC image? For general recipe writing overview this is a helpful page: https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-writing-a-new-recipe I just try to add ipmitool(dbus version) into romulus image . One quick way to do this is just add a line like IMAGE_INSTALL_append = " ipmitool" to your build/local.conf. Note the space between the quote and the ipmitool - it is required. But i don't know how to write the bb files , can someone write a tutorial about this subject ?

bradbishop commented 5 years ago

On Wed, Jan 30, 2019 at 03:00:33PM +0000, brendenlai wrote:

One quick way to do this is just add a line like

IMAGE_INSTALL_append = " ipmitool"

to your build/local.conf. Note the space between the quote and the ipmitool - it is required. Where do i put ipmitool ? the same folder as local.conf ? You put the IMAGE_INSTALL_append line right in local.conf.

if it works , where ipmitool located in image tree ? /usr/bin/ipmitool

ofaurax commented 7 months ago

For someone getting to this ticket after a search, the new syntax (as of 2024) is: IMAGE_INSTALL:append=" ipmitool"