I use this .config to compile a couple disc utilities into the firmware. It built successfully, but after flashing the firmware, some packages (e.g., lsblk, resize2fs, losetup) were correctly preinstalled, but other packages (e.g., parted, sgdisk) were not.
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_DEVICE_generic=y
# CONFIG_FEED_custom is not set
# CONFIG_GRUB_IMAGES is not set
CONFIG_IMAGEOPT=y
CONFIG_PACKAGE_libmount=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libparted=y
CONFIG_PACKAGE_libpopt=y
CONFIG_PACKAGE_libreadline=y
CONFIG_PACKAGE_libstdcpp=y
CONFIG_PACKAGE_losetup=y
CONFIG_PACKAGE_lsblk=y
CONFIG_PACKAGE_parted=y
CONFIG_PACKAGE_resize2fs=y
CONFIG_PACKAGE_sgdisk=y
CONFIG_PACKAGE_terminfo=y
This config is generated from scripts/diffconfig.sh, and is expanded by first copying to <buildroot>/.config and then make defconfig. The OpenWrt version is 22.03.3.
I wonder what might be the reason that some packages get compiled in, but some do not?