Home » Development and Build » Yocto Embedded Linux » How to add locale into embedded yocto root filesystem ?

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

IMAGE_INSTALL += "libx11 libx11-locale"
Configure Windows 10 LTSC (English)...
Configure Windows 10 LTSC (English)to Support Multiple Languages

Leave a Comment