When trying to build meta-toolchain and setting TCLIBC = "baremetal" bitbake complains due to a missing dependency: ERROR: Nothing PROVIDES 'virtual/crypt' (but meta/recipes-devtools/perl/perl_5.24.1.bb DEPENDS on or otherwise requires it) glibc PROVIDES virtual/crypt but was skipped: REFERRED_PROVIDER_virtual/libc set to musl, not glibc musl PROVIDES virtual/crypt but was skipped: REFERRED_PROVIDER_virtual/i586-poky-elf-libc-for-gcc set to baremetal, not musl libxcrypt PROVIDES virtual/crypt but was skipped: Recipe only applies in nativesdk case for now This is caused by the changes on commit: 29f65bda6d2c9fea4adb125c4857ee64f9312b9f nativesdk-glibc: Split glibc and libcrypt to use libxcrypt instead which is when libxcrypt and the concept of virtual/crypt was introduced. I believe this is caused because its missing a wiring on tclibc-baremetal to specify if it PROVIDES virtual/crypt or where it should get it , but since libxcrypt is set to only apply for the nativesdk for now, and it is baremetal after all, I would assume what is needed is something like ASSUME_PROVIDED += " virtual/crypt" on tclibc-baremetal.inc
Adding: ASSUME_PROVIDED += " virtual/crypt" to tclibc-baremetal.inc seems to solve the problem, meta-toolchain builds fine.
Fixed here: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=27dca7d2e955370166042c05aef1524fe1fbc70b