Use similar approach as r47461 to reduce output for busybox config.

Since r39435 CONFIG_BUSYBOX_CUSTOM=y has caused the addition of
all ~260 busybox config options to the diffconfig output even if
only one option has been changed.

This patch eliminates the unchanged busybox config options from the output
and leaves only the actually modified options.

Signed-off-by: Hannu Nyman <hannu.ny...@iki.fi>
---

Reference to:
https://dev.openwrt.org/changeset/39435
https://dev.openwrt.org/changeset/47461

For me this change eliminates 261 unnecessary busybox lines from diffconfig
output, leaving only the 4 actually changed busybox options.

perus@ub1510:/Openwrt/trunk$ wc diff-*
  416   422 14746 base.diffconfig
  155   161  4669 new.diffconfig

 
 scripts/diffconfig.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/diffconfig.sh b/scripts/diffconfig.sh
index d26e9a9..f195d18 100755
--- a/scripts/diffconfig.sh
+++ b/scripts/diffconfig.sh
@@ -4,6 +4,7 @@ grep '^CONFIG_ALL=y' .config >> tmp/.diffconfig.head
 grep '^CONFIG_ALL_KMODS=y' .config >> tmp/.diffconfig.head
 grep '^CONFIG_DEVEL=y' .config >> tmp/.diffconfig.head
 grep '^CONFIG_TOOLCHAINOPTS=y' .config >> tmp/.diffconfig.head
+grep '^CONFIG_BUSYBOX_CUSTOM=y' .config >> tmp/.diffconfig.head
 ./scripts/config/conf --defconfig=tmp/.diffconfig.head -w 
tmp/.diffconfig.stage1 Config.in >/dev/null
 ./scripts/kconfig.pl '>+' tmp/.diffconfig.stage1 .config >> 
tmp/.diffconfig.head
 ./scripts/config/conf --defconfig=tmp/.diffconfig.head -w 
tmp/.diffconfig.stage2 Config.in >/dev/null
-- 
2.5.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to