utils/diffconfig: add diffconfig utility
PATCH 1/1 utils/diffconfig: add diffconfig utility
Diffconfig is a simple utility for comparing two configuration files. See usage in the script for more info.
Borrowed from the Linux kernel source code and adapted to Buildroot.
--- DEVELOPERS | 3 ++ utils/diffconfig | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100755 utils/diffconfig
DEVELOPERS +3 -0
@@ -996,6 +996,9 @@ F: package/turbolua/ N: Marcin Nowakowski <[email protected]> F: package/libkcapi/ +N: Marcus Folkesson <[email protected]> +F: utils/diffconfig + N: Marek Belisko <[email protected]> F: package/libatasmart/ F: package/polkit/
utils/diffconfig new file +136 -0
136 lines not on this page · raw message
Signature · 1 line
2.13.1
PATCH 1/1 utils/diffconfig: add diffconfig utility
Hello,
Quoted 11 lines · Marcus Folkesson
Diffconfig is a simple utility for comparing two configuration files. See usage in the script for more info.
Borrowed from the Linux kernel source code and adapted to Buildroot.
Signed-off-by Marcus Folkesson <[email protected]>--- DEVELOPERS | 3 ++ utils/diffconfig | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100755 utils/diffconfig
I've applied to next. However, I must say I've personally not be very convinced by the output of this tool. If you generate the .config corresponding to an empty defconfig on one side, and the following defconfig on the other side:
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2017.11-rc1.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_4_9=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_BELLAGIO=y
BR2_PACKAGE_FFMPEG=y
# BR2_TARGET_ROOTFS_TAR is not set
You will get a very, very, very noisy output with "diffconfig". And comparately, the diff between the defconfigs is a lot more readable.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 utils/diffconfig: add diffconfig utility
Quoted 37 lines · Thomas Petazzoni
Hello,
Quoted 11 lines · Marcus Folkesson
Diffconfig is a simple utility for comparing two configuration files. See usage in the script for more info.
Borrowed from the Linux kernel source code and adapted to Buildroot.
Signed-off-by Marcus Folkesson <[email protected]>--- DEVELOPERS | 3 ++ utils/diffconfig | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100755 utils/diffconfigI've applied to next. However, I must say I've personally not be very convinced by the output of this tool. If you generate the .config corresponding to an empty defconfig on one side, and the following defconfig on the other side:
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2017.11-rc1.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_4_9=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
#BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUGis not set
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
#BR2_PACKAGE_BUSYBOXis not set
BR2_PACKAGE_BELLAGIO=y
BR2_PACKAGE_FFMPEG=y
#BR2_TARGET_ROOTFS_TARis not set
Quoted 2 lines
You will get a very, very, very noisy output with "diffconfig". And comparately, the diff between the defconfigs is a lot more readable.
Well, it's not really meant for that kind of situation. It's meant for a
situation where you would normally diff the full configs because you want to see which packages have been implicitly added or removed (due to select or depends). You'd normally do a diff .config.old .config, but then you get a lot of changes that are due to packages that have become available but are not selected - not very interesting. So in this case, diffconfig gives more compact and readable results.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF