Diffconfig.sh does not like config to build multiple device profiles (TARGET_MULTI_PROFILE)
Username: Hannu Nyman
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=43
I noticed today that the new multi-profile build functionality breaks scripts/diffconfig.sh, at least for ar71xx.
In Openwrt and in LEDE with just one device selected and no other changes made, diffconfig produces sensible output (size ~100 bytes). However, if the multi-device build support is activated, diffconfig fails to detect the “common defaults” and lists all busybox options, all standard packages etc. (diffconfig size 14 kB). That size expansion happens even if just one device is selected after activating TARGET_MULTI_PROFILE.
Below in an example, starting with empty .config and using menuconfig to select just WNDR3700 (even for the multi-profile config).
diffconfig output sizes: 14728 diffconfig.lede_multi 101 diffconfig.lede_single 94 diffconfig.openwrt
perus@ub1604:/$ cat diffconfig.openwrt CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y CONFIG_TARGET_ar71xx_generic_WNDR3700=y
perus@ub1604:/$ cat diffconfig.lede_single CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y CONFIG_TARGET_ar71xx_generic_DEVICE_wndr3700=y
perus@ub1604:/$ cat diffconfig.lede_multi CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y CONFIG_TARGET_MULTI_PROFILE=y CONFIG_ATH_USER_REGD=y CONFIG_BUSYBOX_DEFAULT_ASH=y CONFIG_BUSYBOX_DEFAULT_ASH_ALIAS=y CONFIG_BUSYBOX_DEFAULT_ASH_BASH_COMPAT=y ... CONFIG_PACKAGE_ubus=y CONFIG_PACKAGE_ubusd=y CONFIG_PACKAGE_uci=y CONFIG_PACKAGE_uclient-fetch=y CONFIG_PACKAGE_usign=y CONFIG_PACKAGE_wpad-mini=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_wndr3700=y