How disable hwdb files in Yocto ?

cancel
Showing results for 
Search instead for 
Did you mean: 

How disable hwdb files in Yocto ?

Jump to solution
2,924 Views
Raana
Contributor III

Dear Team,

Right now, I'm doing rootfs optimization in Yocto 'sumo' version (L4.14.62).

Now, my extracted rootfs size is "81MB" (including kernel Image 11MB).

While doing rootfs optimization, I have seen many 'hwdb' file. It's taking around 14MB (7.3M    etc/udev/hwdb.bin and 5.9M    lib/udev/hwdb.d/).

My question is,

Is 'hwdb' really needed ?

How to disable it permanently in Yocto ?

Thank You.

Best Regards,

J.P.Raja

1 Solution
2,482 Views
shivanipatel
Senior Contributor II

Hi, Raana

HWDB is mainly a database of device classes and vendors which generally prints udev properties to stdout.

You can remove these "hwdb" files in Yocto by adding following line in local.conf file.

  • BAD_RECOMMENDATIONS += "udev-hwdb"

Regards,

Shivani

View solution in original post

4 Replies
2,483 Views
shivanipatel
Senior Contributor II

Hi, Raana

HWDB is mainly a database of device classes and vendors which generally prints udev properties to stdout.

You can remove these "hwdb" files in Yocto by adding following line in local.conf file.

  • BAD_RECOMMENDATIONS += "udev-hwdb"

Regards,

Shivani

1,093 Views
MichaelBMiner
Contributor III

Is there any major risk to removing udev-hwdb?

0 Kudos
2,482 Views
Raana
Contributor III

Hi Shivani,


Thanks a lot for your reply. It's working fine.
Will it cause any performance issue ?

Thank You.

Best Regards,

J.P.Raja

0 Kudos
1,141 Views
MichaelBMiner
Contributor III

I too am trying to trim my kernel size. udev-hwdb is the largest package I have installed. I will be removing it and testing the system. 

Did you ever run into any issues doing this?

0 Kudos