How to add locale into embedded yocto root filesystem

Recently we faced some issues with locale and when debugged using strace it shows following error

open("/usr/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/locale/locale.dir", O_RDONLY) = -1 ENOENT (No such file or directory)

Now, to add these missing files using bitbake, append following line in either in your image recipe or in conf/local.conf
and rebuild the root filesystem

READ  Compiling yocto poky for qemuarm and running qemuarm

IMAGE_INSTALL += “libx11 libx11-locale”

Leave a Reply

Your email address will not be published. Required fields are marked *