In order to enable gpioset feature on a Linux platform, which packages need to be added by yocto?

Answer

Need to add libgpiod, libgpiod-dev and libgpiod-tools.

libgpiod containing libgpiod.so* files

libgpiod-dev containing /usr/include for the header files and /usr/lib for the shared lib's solink file and corresponding pkgconfig metadata.

libgpiod-tools containing gpiodetect, gpioget, …