How disable hwdb files in Yocto ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How disable hwdb files in Yocto ?

跳至解决方案
5,468 次查看
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 解答
5,026 次查看
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

在原帖中查看解决方案

4 回复数
5,027 次查看
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

3,637 次查看
MichaelBMiner
Contributor IV

Is there any major risk to removing udev-hwdb?

0 项奖励
回复
5,026 次查看
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 项奖励
回复
3,685 次查看
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 项奖励
回复