How disable hwdb files in Yocto ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How disable hwdb files in Yocto ?

Jump to solution
4,666 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
4,224 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
4,225 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

2,835 Views
MichaelBMiner
Contributor IV

Is there any major risk to removing udev-hwdb?

0 Kudos
4,224 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
2,883 Views
MichaelBMiner
Contributor IV

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