0

How to enable udev package in yocto recipe for initramfs build?

Please provide sample yocto bb file.

Thanks

Rajeshkumar
  • 739
  • 5
  • 16

1 Answers1

0

We need to add the following macro in yocto bb file.

IMAGE_INSTALL = "udev"

Rajeshkumar
  • 739
  • 5
  • 16
  • I realize this is 2 years old, but if you're running `bitbake `, the above is correct. However if you're configuring an initramfs (name set by `INITRAMFS_IMAGE`) to then hand-off to your runtime image, you want to use `PACKAGE_INSTALL`. It's a separate list of packages to include in the initrd vs. the main image so that the size remains small. – Thomas Oct 01 '18 at 17:49
  • What's the difference between `IMAGE_INSTALL = "udev"` and `DEPENDS += "udev"`? – Ryuu Aug 20 '19 at 01:11