[PATCH] Add script to check config generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The kernel configuration generation currently checks to make sure
every option is defined with listnewconfig. It does not check that
each option is the same as listnewconfig. This can lead to odd
situations where the Fedora configuration does not match what's
actually present in the generated config. Add a script to check
for these kinds of changes.

Based on work done by Miguel Flores Silverio <floresmigu3l@xxxxxxxxx>
---
Below is the full diff to fix up the configs to pass the check
successfully. I omitted them from this patch to focus on the
'interesting' part of this patch which is the logic to find
the changes. I can resend with the full diffs if people are
actually interested. It's basically just changing to =y or =m
where approrpiate to match what is actually being generated.

 baseconfig/CONFIG_BACKLIGHT_CLASS_DEVICE           |   2 +-
 baseconfig/CONFIG_BLK_DEV_SKD                      |   2 +-
 baseconfig/CONFIG_BRIDGE_NETFILTER                 |   2 +-
 baseconfig/CONFIG_CFAG12864B                       |   2 +-
 baseconfig/CONFIG_CGROUP_NET_CLASSID               |   2 +-
 baseconfig/CONFIG_CRC32                            |   2 +-
 baseconfig/CONFIG_CRC7                             |   2 +-
 baseconfig/CONFIG_CRC_CCITT                        |   2 +-
 baseconfig/CONFIG_CRC_T10DIF                       |   2 +-
 baseconfig/CONFIG_CRYPTO_CTS                       |   2 +-
 baseconfig/CONFIG_CRYPTO_DRBG_MENU                 |   2 +-
 baseconfig/CONFIG_CRYPTO_GF128MUL                  |   2 +-
 baseconfig/CONFIG_CRYPTO_LZO                       |   2 +-
 baseconfig/CONFIG_CRYPTO_MD5                       |   2 +-
 baseconfig/CONFIG_CRYPTO_NULL                      |   2 +-
 baseconfig/CONFIG_CRYPTO_RSA                       |   2 +-
 baseconfig/CONFIG_CRYPTO_SEQIV                     |   2 +-
 baseconfig/CONFIG_CRYPTO_XTS                       |   2 +-
 baseconfig/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND      |   2 +-
 baseconfig/CONFIG_DRM_AST                          |   2 +-
 baseconfig/CONFIG_DRM_CIRRUS_QEMU                  |   2 +-
 baseconfig/CONFIG_DRM_MGAG200                      |   2 +-
 baseconfig/CONFIG_DVB_MN88472                      |   2 +-
 baseconfig/CONFIG_DVB_MN88473                      |   2 +-
 baseconfig/CONFIG_ENCRYPTED_KEYS                   |   2 +-
 baseconfig/CONFIG_FS_ENCRYPTION                    |   2 +-
 baseconfig/CONFIG_IIO_BUFFER_CB                    |   2 +-
 baseconfig/CONFIG_IIO_KFIFO_BUF                    |   2 +-
 baseconfig/CONFIG_IIO_SW_TRIGGER                   |   2 +-
 baseconfig/CONFIG_INFINIBAND_MTHCA_DEBUG           |   1 -
 baseconfig/CONFIG_IWL4965                          |   2 +-
 baseconfig/CONFIG_MAC80211_RC_DEFAULT              |   2 +-
 baseconfig/CONFIG_MFD_CORE                         |   2 +-
 baseconfig/CONFIG_MFD_WL1273_CORE                  |   2 +-
 baseconfig/CONFIG_MLX4_DEBUG                       |   1 -
 baseconfig/CONFIG_NETFILTER_XT_MATCH_CONNTRACK     |   2 +-
 baseconfig/CONFIG_NETFILTER_XT_MATCH_STATE         |   2 +-
 baseconfig/CONFIG_NFP_NET_DEBUG                    |   2 +-
 baseconfig/CONFIG_NFS_V3                           |   2 +-
 baseconfig/CONFIG_NFS_V4                           |   2 +-
 baseconfig/CONFIG_NF_CONNTRACK_IPV4                |   2 +-
 baseconfig/CONFIG_NF_CONNTRACK_IPV6                |   2 +-
 baseconfig/CONFIG_NF_CONNTRACK_PROCFS              |   2 +-
 baseconfig/CONFIG_NVMEM                            |   2 +-
 baseconfig/CONFIG_OPENVSWITCH_GENEVE               |   2 +-
 baseconfig/CONFIG_OPENVSWITCH_GRE                  |   2 +-
 baseconfig/CONFIG_OPENVSWITCH_VXLAN                |   2 +-
 baseconfig/CONFIG_PM_DEVFREQ                       |   2 +-
 baseconfig/CONFIG_PPP_BSDCOMP                      |   2 +-
 baseconfig/CONFIG_R8712U                           |   2 +-
 baseconfig/CONFIG_SERIO_LIBPS2                     |   2 +-
 baseconfig/CONFIG_SND                              |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_ANALOG             |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_CA0110             |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_CA0132             |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_CIRRUS             |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_CMEDIA             |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_CONEXANT           |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_HDMI               |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_REALTEK            |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_SI3054             |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_SIGMATEL           |   2 +-
 baseconfig/CONFIG_SND_HDA_CODEC_VIA                |   2 +-
 baseconfig/CONFIG_SND_HDA_GENERIC                  |   2 +-
 baseconfig/CONFIG_SND_HDA_INTEL                    |   2 +-
 baseconfig/CONFIG_SND_HRTIMER                      |   2 +-
 baseconfig/CONFIG_SND_INTEL8X0                     |   2 +-
 baseconfig/CONFIG_SND_MIXER_OSS                    |   2 +-
 baseconfig/CONFIG_SND_PCM_OSS                      |   2 +-
 baseconfig/CONFIG_SND_SEQUENCER                    |   2 +-
 baseconfig/CONFIG_TASKS_RCU                        |   2 +-
 baseconfig/CONFIG_USB_STORAGE_USBAT                |   2 +-
 baseconfig/CONFIG_VIDEO_EM28XX_RC                  |   2 +-
 baseconfig/CONFIG_VIDEO_V4L2                       |   2 +-
 baseconfig/CONFIG_XZ_DEC_ARMTHUMB                  |   2 +-
 baseconfig/CONFIG_XZ_DEC_IA64                      |   2 +-
 baseconfig/CONFIG_XZ_DEC_SPARC                     |   2 +-
 baseconfig/CONFIG_ZLIB_DEFLATE                     |   2 +-
 baseconfig/arm/CONFIG_ASYMMETRIC_KEY_TYPE          |   2 +-
 baseconfig/arm/CONFIG_CC_STACKPROTECTOR            |   2 +-
 baseconfig/arm/CONFIG_CC_STACKPROTECTOR_NONE       |   1 +
 baseconfig/arm/CONFIG_CRYPTO_CRYPTD                |   1 +
 baseconfig/arm/CONFIG_FB_MODE_HELPERS              |   1 +
 baseconfig/arm/CONFIG_GAMEPORT                     |   1 -
 baseconfig/arm/CONFIG_GPIO_GENERIC                 |   2 +-
 baseconfig/arm/CONFIG_GPIO_GENERIC_PLATFORM        |   2 +-
 baseconfig/arm/CONFIG_INPUT_MATRIXKMAP             |   1 +
 baseconfig/arm/CONFIG_IP_SCTP                      |   1 -
 baseconfig/arm/CONFIG_MFD_SYSCON                   |   1 +
 baseconfig/arm/CONFIG_MFD_WL1273_CORE              |   1 +
 baseconfig/arm/CONFIG_MMC_ARMMMCI                  |   2 +-
 baseconfig/arm/CONFIG_MMC_DW_K3                    |   2 +-
 baseconfig/arm/CONFIG_MMC_DW_PCI                   |   2 +-
 baseconfig/arm/CONFIG_MMC_DW_PLTFM                 |   2 +-
 baseconfig/arm/CONFIG_MMC_DW_ROCKCHIP              |   2 +-
 baseconfig/arm/CONFIG_NET_VENDOR_BROADCOM          |   1 -
 baseconfig/arm/CONFIG_NET_VENDOR_CHELSIO           |   1 -
 baseconfig/arm/CONFIG_NET_VENDOR_EMULEX            |   1 -
 baseconfig/arm/CONFIG_NVMEM                        |   1 -
 baseconfig/arm/CONFIG_OF_MDIO                      |   2 +-
 baseconfig/arm/CONFIG_OF_PCI                       |   2 +-
 baseconfig/arm/CONFIG_OF_PCI_IRQ                   |   2 +-
 baseconfig/arm/CONFIG_SRAM                         |   1 +
 baseconfig/arm/CONFIG_SYNC_FILE                    |   1 +
 baseconfig/arm/arm64/CONFIG_ACPI_HED               |   2 +-
 baseconfig/arm/arm64/CONFIG_ACPI_IPMI              |   2 +-
 .../arm/arm64/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND   |   1 +
 baseconfig/arm/arm64/CONFIG_FB_MODE_HELPERS        |   1 +
 baseconfig/arm/arm64/CONFIG_GPIO_PCA953X           |   1 +
 .../arm/arm64/CONFIG_HAVE_64BIT_ALIGNED_ACCESS     |   1 -
 baseconfig/arm/arm64/CONFIG_HZ_100                 |   1 +
 baseconfig/arm/arm64/CONFIG_HZ_1000                |   1 +
 baseconfig/arm/armv7/CONFIG_ARCH_VEXPRESS_SPC      |   2 +-
 baseconfig/arm/armv7/CONFIG_EXYNOS_THERMAL         |   2 +-
 baseconfig/arm/armv7/CONFIG_INPUT_MATRIXKMAP       |   1 -
 baseconfig/arm/armv7/CONFIG_JFFS2_LZO              |   2 +-
 baseconfig/arm/armv7/CONFIG_JFFS2_RUBIN            |   2 +-
 baseconfig/arm/armv7/CONFIG_MCPM                   |   2 +-
 baseconfig/arm/armv7/CONFIG_MEMORY                 |   1 +
 baseconfig/arm/armv7/CONFIG_MFD_SYSCON             |   1 -
 baseconfig/arm/armv7/CONFIG_MMC_DW_EXYNOS          |   2 +-
 baseconfig/arm/armv7/CONFIG_P54_SPI_DEFAULT_EEPROM |   2 +-
 baseconfig/arm/armv7/CONFIG_PINCTRL_SAMSUNG        |   2 +-
 baseconfig/arm/armv7/CONFIG_PM_DEVFREQ             |   1 -
 .../arm/armv7/CONFIG_POWER_RESET_SYSCON_POWEROFF   |   1 +
 baseconfig/arm/armv7/CONFIG_REGMAP_I2C             |   1 +
 baseconfig/arm/armv7/CONFIG_REGMAP_MMIO            |   2 +-
 baseconfig/arm/armv7/CONFIG_REGMAP_SPI             |   2 +-
 baseconfig/arm/armv7/CONFIG_SND_SOC_AC97_CODEC     |   2 +-
 baseconfig/arm/armv7/CONFIG_SND_SOC_RT5631         |   1 +
 baseconfig/arm/armv7/CONFIG_SRAM                   |   1 -
 baseconfig/arm/armv7/armv7/CONFIG_ARM_VIRT_EXT     |   2 +-
 .../arm/armv7/armv7/CONFIG_BATTERY_BQ27XXX_I2C     |   2 +-
 baseconfig/arm/armv7/armv7/CONFIG_DDR              |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_EXTCON           |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_HUGETLB_PAGE     |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_I2C_OMAP         |   2 +-
 baseconfig/arm/armv7/armv7/CONFIG_INPUT_MATRIXKMAP |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_MFD_WL1273_CORE  |   1 -
 .../arm/armv7/armv7/CONFIG_OMAP_INTERCONNECT       |   2 +-
 .../arm/armv7/armv7/CONFIG_PL310_ERRATA_588369     |   1 +
 .../arm/armv7/armv7/CONFIG_PL310_ERRATA_727915     |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_QCOM_SMSM        |   2 +-
 baseconfig/arm/armv7/armv7/CONFIG_SND_SOC_WM8753   |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_SND_SOC_WM8903   |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_TI_CPTS          |   2 +-
 .../armv7/armv7/CONFIG_VIDEO_SAMSUNG_EXYNOS4_IS    |   1 +
 baseconfig/arm/armv7/armv7/CONFIG_VIRTUALIZATION   |   1 -
 baseconfig/arm/armv7/lpae/CONFIG_EXTCON            |   1 +
 baseconfig/arm/armv7/lpae/CONFIG_SYNC_FILE         |   1 +
 baseconfig/powerpc/CONFIG_ASYMMETRIC_KEY_TYPE      |   2 +-
 baseconfig/powerpc/CONFIG_HIBERNATION              |   2 +-
 baseconfig/powerpc/CONFIG_HOTPLUG_PCI_RPA_DLPAR    |   2 +-
 baseconfig/powerpc/CONFIG_INPUT_MATRIXKMAP         |   1 +
 baseconfig/powerpc/CONFIG_MTD_OF_PARTS             |   2 +-
 baseconfig/powerpc/CONFIG_SYNC_FILE                |   1 +
 baseconfig/powerpc/powerpc64/CONFIG_BLK_DEV_IDEPCI |   2 +-
 .../powerpc64/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND   |   1 +
 baseconfig/powerpc/powerpc64/CONFIG_GENERIC_PHY    |   1 +
 baseconfig/powerpc/powerpc64/CONFIG_I2C_MUX        |   1 +
 baseconfig/powerpc/powerpc64/CONFIG_I2C_POWERMAC   |   2 +-
 baseconfig/powerpc/powerpc64/CONFIG_MFD_CORE       |   1 +
 baseconfig/powerpc/powerpc64/CONFIG_SERIAL_CORE    |   1 +
 baseconfig/powerpc/powerpc64/CONFIG_WINDFARM_PM112 |   2 +-
 baseconfig/powerpc/powerpc64/CONFIG_WINDFARM_PM121 |   2 +-
 baseconfig/powerpc/powerpc64/CONFIG_WINDFARM_PM72  |   2 +-
 baseconfig/powerpc/powerpc64/CONFIG_WINDFARM_PM81  |   2 +-
 baseconfig/powerpc/powerpc64/CONFIG_WINDFARM_PM91  |   2 +-
 baseconfig/powerpc/powerpc64/CONFIG_WINDFARM_RM31  |   2 +-
 .../powerpc64le/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND |   1 +
 baseconfig/powerpc/powerpc64le/CONFIG_GENERIC_PHY  |   1 +
 baseconfig/powerpc/powerpc64le/CONFIG_I2C_MUX      |   1 +
 baseconfig/powerpc/powerpc64le/CONFIG_MFD_CORE     |   1 +
 baseconfig/powerpc/powerpc64le/CONFIG_SERIAL_CORE  |   1 +
 .../powerpc64p7/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND |   1 +
 baseconfig/powerpc/powerpc64p7/CONFIG_GENERIC_PHY  |   1 +
 baseconfig/powerpc/powerpc64p7/CONFIG_I2C_MUX      |   1 +
 baseconfig/powerpc/powerpc64p7/CONFIG_MFD_CORE     |   1 +
 baseconfig/powerpc/powerpc64p7/CONFIG_SERIAL_CORE  |   1 +
 baseconfig/s390x/CONFIG_ASYMMETRIC_KEY_TYPE        |   2 +-
 baseconfig/s390x/CONFIG_CRC7                       |   1 +
 .../s390x/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND       |   1 +
 baseconfig/s390x/CONFIG_FIXED_PHY                  |   1 +
 baseconfig/s390x/CONFIG_HID                        |   2 +-
 baseconfig/s390x/CONFIG_HID_GENERIC                |   1 +
 baseconfig/s390x/CONFIG_HID_MAGICMOUSE             |   1 +
 baseconfig/s390x/CONFIG_HWMON                      |   2 +-
 baseconfig/s390x/CONFIG_I2C                        |   2 +-
 baseconfig/s390x/CONFIG_INPUT                      |   1 -
 baseconfig/s390x/CONFIG_IUCV                       |   2 +-
 baseconfig/s390x/CONFIG_MFD_CORE                   |   2 +-
 baseconfig/s390x/CONFIG_MFD_WL1273_CORE            |   1 +
 baseconfig/s390x/CONFIG_MII                        |   1 -
 baseconfig/s390x/CONFIG_NEW_LEDS                   |   1 -
 baseconfig/s390x/CONFIG_PCMCIA                     |   1 +
 baseconfig/s390x/CONFIG_PHYLIB                     |   2 +-
 baseconfig/s390x/CONFIG_POWER_SUPPLY               |   1 -
 baseconfig/s390x/CONFIG_PPS                        |   1 -
 baseconfig/s390x/CONFIG_PTP_1588_CLOCK             |   1 -
 baseconfig/s390x/CONFIG_SERIAL_CORE                |   1 +
 baseconfig/x86/CONFIG_ACPI_HED                     |   2 +-
 baseconfig/x86/CONFIG_DW_DMAC_CORE                 |   1 +
 baseconfig/x86/CONFIG_DW_DMAC_PCI                  |   1 +
 baseconfig/x86/CONFIG_IOSF_MBI                     |   2 +-
 baseconfig/x86/CONFIG_KVM_MMU_AUDIT                |   2 +-
 baseconfig/x86/CONFIG_NO_BOOTMEM                   |   2 +-
 baseconfig/x86/CONFIG_THERMAL_GOV_BANG_BANG        |   1 +
 baseconfig/x86/CONFIG_THERMAL_GOV_USER_SPACE       |   1 +
 baseconfig/x86/CONFIG_THERMAL_WRITABLE_TRIPS       |   1 +
 baseconfig/x86/i686/CONFIG_CRYPTO_CRYPTD           |   1 +
 baseconfig/x86/i686/CONFIG_CRYPTO_LRW              |   1 +
 .../x86/i686/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND    |   1 +
 baseconfig/x86/i686/CONFIG_DRM_PANEL               |   1 +
 baseconfig/x86/i686/CONFIG_DW_DMAC_CORE            |   1 +
 baseconfig/x86/i686/CONFIG_DW_DMAC_PCI             |   1 +
 baseconfig/x86/i686/CONFIG_FB_MODE_HELPERS         |   1 +
 baseconfig/x86/i686/CONFIG_GENERIC_PHY             |   1 +
 baseconfig/x86/i686/CONFIG_GPIO_CS5535             |   1 +
 baseconfig/x86/i686/CONFIG_HSU_DMA                 |   1 +
 baseconfig/x86/i686/CONFIG_I2C_MUX                 |   1 +
 baseconfig/x86/i686/CONFIG_INPUT_MATRIXKMAP        |   1 +
 baseconfig/x86/i686/CONFIG_MTD_OF_PARTS            |   2 +-
 baseconfig/x86/i686/CONFIG_NSC_GPIO                |   2 +-
 baseconfig/x86/i686/CONFIG_PINCONF                 |   1 +
 baseconfig/x86/i686/CONFIG_PINMUX                  |   1 +
 baseconfig/x86/i686/CONFIG_REGMAP_I2C              |   1 +
 baseconfig/x86/i686/CONFIG_SERIAL_8250_MID         |   1 +
 baseconfig/x86/i686/CONFIG_SND_SOC_SSM4567         |   1 +
 baseconfig/x86/i686/CONFIG_SND_SOC_TS3A227E        |   1 +
 baseconfig/x86/i686/CONFIG_SPARSE_IRQ              |   2 +-
 baseconfig/x86/i686/CONFIG_SYNC_FILE               |   1 +
 baseconfig/x86/i686PAE/CONFIG_CRYPTO_CRYPTD        |   1 +
 baseconfig/x86/i686PAE/CONFIG_CRYPTO_LRW           |   1 +
 .../x86/i686PAE/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND |   1 +
 baseconfig/x86/i686PAE/CONFIG_DRM_PANEL            |   1 +
 baseconfig/x86/i686PAE/CONFIG_DW_DMAC_CORE         |   1 +
 baseconfig/x86/i686PAE/CONFIG_DW_DMAC_PCI          |   1 +
 baseconfig/x86/i686PAE/CONFIG_FB_MODE_HELPERS      |   1 +
 baseconfig/x86/i686PAE/CONFIG_GENERIC_PHY          |   1 +
 baseconfig/x86/i686PAE/CONFIG_HSU_DMA              |   1 +
 baseconfig/x86/i686PAE/CONFIG_I2C_MUX              |   1 +
 baseconfig/x86/i686PAE/CONFIG_INPUT_MATRIXKMAP     |   1 +
 baseconfig/x86/i686PAE/CONFIG_LIBNVDIMM            |   1 +
 baseconfig/x86/i686PAE/CONFIG_MTD_OF_PARTS         |   2 +-
 baseconfig/x86/i686PAE/CONFIG_NSC_GPIO             |   2 +-
 baseconfig/x86/i686PAE/CONFIG_PINCONF              |   1 +
 baseconfig/x86/i686PAE/CONFIG_PINMUX               |   1 +
 baseconfig/x86/i686PAE/CONFIG_REGMAP_I2C           |   1 +
 baseconfig/x86/i686PAE/CONFIG_SERIAL_8250_MID      |   1 +
 baseconfig/x86/i686PAE/CONFIG_SND_SOC_SSM4567      |   1 +
 baseconfig/x86/i686PAE/CONFIG_SND_SOC_TS3A227E     |   1 +
 baseconfig/x86/i686PAE/CONFIG_SPARSE_IRQ           |   2 +-
 baseconfig/x86/i686PAE/CONFIG_SYNC_FILE            |   1 +
 baseconfig/x86/x86_64/CONFIG_CRYPTO_CRYPTD         |   1 +
 baseconfig/x86/x86_64/CONFIG_CRYPTO_LRW            |   1 +
 baseconfig/x86/x86_64/CONFIG_CRYPTO_MCRYPTD        |   1 +
 baseconfig/x86/x86_64/CONFIG_DRM_PANEL             |   1 +
 baseconfig/x86/x86_64/CONFIG_GENERIC_PHY           |   1 +
 baseconfig/x86/x86_64/CONFIG_HSU_DMA               |   1 +
 baseconfig/x86/x86_64/CONFIG_I2C_MUX               |   1 +
 baseconfig/x86/x86_64/CONFIG_LIBNVDIMM             |   2 +-
 baseconfig/x86/x86_64/CONFIG_MAILBOX               |   1 +
 baseconfig/x86/x86_64/CONFIG_MTD_BLKDEVS           |   1 +
 baseconfig/x86/x86_64/CONFIG_NODES_SHIFT           |   2 +-
 baseconfig/x86/x86_64/CONFIG_NR_CPUS               |   2 +-
 baseconfig/x86/x86_64/CONFIG_PINCONF               |   1 +
 baseconfig/x86/x86_64/CONFIG_PINMUX                |   1 +
 baseconfig/x86/x86_64/CONFIG_REGMAP_I2C            |   1 +
 baseconfig/x86/x86_64/CONFIG_SERIAL_8250_MID       |   1 +
 baseconfig/x86/x86_64/CONFIG_SND_SOC_SSM4567       |   1 +
 baseconfig/x86/x86_64/CONFIG_SND_SOC_TS3A227E      |   1 +
 baseconfig/x86/x86_64/CONFIG_SYNC_FILE             |   1 +
 check_configs.awk                                  |  22 ++
 kernel-aarch64-debug.config                        | 207 +++++++++--------
 kernel-aarch64.config                              | 207 +++++++++--------
 kernel-armv7hl-debug.config                        | 247 ++++++++++-----------
 kernel-armv7hl-lpae-debug.config                   | 219 +++++++++---------
 kernel-armv7hl-lpae.config                         | 219 +++++++++---------
 kernel-armv7hl.config                              | 247 ++++++++++-----------
 kernel-i686-PAE.config                             | 210 +++++++++---------
 kernel-i686-PAEdebug.config                        | 210 +++++++++---------
 kernel-i686-debug.config                           | 210 +++++++++---------
 kernel-i686.config                                 | 210 +++++++++---------
 kernel-ppc64-debug.config                          | 184 ++++++++-------
 kernel-ppc64.config                                | 184 ++++++++-------
 kernel-ppc64le-debug.config                        | 168 +++++++-------
 kernel-ppc64le.config                              | 168 +++++++-------
 kernel-ppc64p7-debug.config                        | 168 +++++++-------
 kernel-ppc64p7.config                              | 168 +++++++-------
 kernel-s390x-debug.config                          | 182 ++++++++-------
 kernel-s390x.config                                | 182 ++++++++-------
 kernel-x86_64-debug.config                         | 210 +++++++++---------
 kernel-x86_64.config                               | 210 +++++++++---------
 kernel.spec                                        |  21 ++
 294 files changed, 2282 insertions(+), 2182 deletions(-)
 delete mode 100644 baseconfig/CONFIG_INFINIBAND_MTHCA_DEBUG
 delete mode 100644 baseconfig/CONFIG_MLX4_DEBUG
 create mode 100644 baseconfig/arm/CONFIG_CC_STACKPROTECTOR_NONE
 create mode 100644 baseconfig/arm/CONFIG_CRYPTO_CRYPTD
 create mode 100644 baseconfig/arm/CONFIG_FB_MODE_HELPERS
 delete mode 100644 baseconfig/arm/CONFIG_GAMEPORT
 create mode 100644 baseconfig/arm/CONFIG_INPUT_MATRIXKMAP
 delete mode 100644 baseconfig/arm/CONFIG_IP_SCTP
 create mode 100644 baseconfig/arm/CONFIG_MFD_SYSCON
 create mode 100644 baseconfig/arm/CONFIG_MFD_WL1273_CORE
 delete mode 100644 baseconfig/arm/CONFIG_NET_VENDOR_BROADCOM
 delete mode 100644 baseconfig/arm/CONFIG_NET_VENDOR_CHELSIO
 delete mode 100644 baseconfig/arm/CONFIG_NET_VENDOR_EMULEX
 delete mode 100644 baseconfig/arm/CONFIG_NVMEM
 create mode 100644 baseconfig/arm/CONFIG_SRAM
 create mode 100644 baseconfig/arm/CONFIG_SYNC_FILE
 create mode 100644 baseconfig/arm/arm64/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/arm/arm64/CONFIG_FB_MODE_HELPERS
 create mode 100644 baseconfig/arm/arm64/CONFIG_GPIO_PCA953X
 delete mode 100644 baseconfig/arm/arm64/CONFIG_HAVE_64BIT_ALIGNED_ACCESS
 create mode 100644 baseconfig/arm/arm64/CONFIG_HZ_100
 create mode 100644 baseconfig/arm/arm64/CONFIG_HZ_1000
 delete mode 100644 baseconfig/arm/armv7/CONFIG_INPUT_MATRIXKMAP
 create mode 100644 baseconfig/arm/armv7/CONFIG_MEMORY
 delete mode 100644 baseconfig/arm/armv7/CONFIG_MFD_SYSCON
 delete mode 100644 baseconfig/arm/armv7/CONFIG_PM_DEVFREQ
 create mode 100644 baseconfig/arm/armv7/CONFIG_POWER_RESET_SYSCON_POWEROFF
 create mode 100644 baseconfig/arm/armv7/CONFIG_REGMAP_I2C
 create mode 100644 baseconfig/arm/armv7/CONFIG_SND_SOC_RT5631
 delete mode 100644 baseconfig/arm/armv7/CONFIG_SRAM
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_DDR
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_EXTCON
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_HUGETLB_PAGE
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_INPUT_MATRIXKMAP
 delete mode 100644 baseconfig/arm/armv7/armv7/CONFIG_MFD_WL1273_CORE
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_PL310_ERRATA_588369
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_PL310_ERRATA_727915
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_SND_SOC_WM8753
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_SND_SOC_WM8903
 create mode 100644 baseconfig/arm/armv7/armv7/CONFIG_VIDEO_SAMSUNG_EXYNOS4_IS
 delete mode 100644 baseconfig/arm/armv7/armv7/CONFIG_VIRTUALIZATION
 create mode 100644 baseconfig/arm/armv7/lpae/CONFIG_EXTCON
 create mode 100644 baseconfig/arm/armv7/lpae/CONFIG_SYNC_FILE
 create mode 100644 baseconfig/powerpc/CONFIG_INPUT_MATRIXKMAP
 create mode 100644 baseconfig/powerpc/CONFIG_SYNC_FILE
 create mode 100644 baseconfig/powerpc/powerpc64/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/powerpc/powerpc64/CONFIG_GENERIC_PHY
 create mode 100644 baseconfig/powerpc/powerpc64/CONFIG_I2C_MUX
 create mode 100644 baseconfig/powerpc/powerpc64/CONFIG_MFD_CORE
 create mode 100644 baseconfig/powerpc/powerpc64/CONFIG_SERIAL_CORE
 create mode 100644 baseconfig/powerpc/powerpc64le/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/powerpc/powerpc64le/CONFIG_GENERIC_PHY
 create mode 100644 baseconfig/powerpc/powerpc64le/CONFIG_I2C_MUX
 create mode 100644 baseconfig/powerpc/powerpc64le/CONFIG_MFD_CORE
 create mode 100644 baseconfig/powerpc/powerpc64le/CONFIG_SERIAL_CORE
 create mode 100644 baseconfig/powerpc/powerpc64p7/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/powerpc/powerpc64p7/CONFIG_GENERIC_PHY
 create mode 100644 baseconfig/powerpc/powerpc64p7/CONFIG_I2C_MUX
 create mode 100644 baseconfig/powerpc/powerpc64p7/CONFIG_MFD_CORE
 create mode 100644 baseconfig/powerpc/powerpc64p7/CONFIG_SERIAL_CORE
 create mode 100644 baseconfig/s390x/CONFIG_CRC7
 create mode 100644 baseconfig/s390x/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/s390x/CONFIG_FIXED_PHY
 create mode 100644 baseconfig/s390x/CONFIG_HID_GENERIC
 create mode 100644 baseconfig/s390x/CONFIG_HID_MAGICMOUSE
 delete mode 100644 baseconfig/s390x/CONFIG_INPUT
 create mode 100644 baseconfig/s390x/CONFIG_MFD_WL1273_CORE
 delete mode 100644 baseconfig/s390x/CONFIG_MII
 delete mode 100644 baseconfig/s390x/CONFIG_NEW_LEDS
 create mode 100644 baseconfig/s390x/CONFIG_PCMCIA
 delete mode 100644 baseconfig/s390x/CONFIG_POWER_SUPPLY
 delete mode 100644 baseconfig/s390x/CONFIG_PPS
 delete mode 100644 baseconfig/s390x/CONFIG_PTP_1588_CLOCK
 create mode 100644 baseconfig/s390x/CONFIG_SERIAL_CORE
 create mode 100644 baseconfig/x86/CONFIG_DW_DMAC_CORE
 create mode 100644 baseconfig/x86/CONFIG_DW_DMAC_PCI
 create mode 100644 baseconfig/x86/CONFIG_THERMAL_GOV_BANG_BANG
 create mode 100644 baseconfig/x86/CONFIG_THERMAL_GOV_USER_SPACE
 create mode 100644 baseconfig/x86/CONFIG_THERMAL_WRITABLE_TRIPS
 create mode 100644 baseconfig/x86/i686/CONFIG_CRYPTO_CRYPTD
 create mode 100644 baseconfig/x86/i686/CONFIG_CRYPTO_LRW
 create mode 100644 baseconfig/x86/i686/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/x86/i686/CONFIG_DRM_PANEL
 create mode 100644 baseconfig/x86/i686/CONFIG_DW_DMAC_CORE
 create mode 100644 baseconfig/x86/i686/CONFIG_DW_DMAC_PCI
 create mode 100644 baseconfig/x86/i686/CONFIG_FB_MODE_HELPERS
 create mode 100644 baseconfig/x86/i686/CONFIG_GENERIC_PHY
 create mode 100644 baseconfig/x86/i686/CONFIG_GPIO_CS5535
 create mode 100644 baseconfig/x86/i686/CONFIG_HSU_DMA
 create mode 100644 baseconfig/x86/i686/CONFIG_I2C_MUX
 create mode 100644 baseconfig/x86/i686/CONFIG_INPUT_MATRIXKMAP
 create mode 100644 baseconfig/x86/i686/CONFIG_PINCONF
 create mode 100644 baseconfig/x86/i686/CONFIG_PINMUX
 create mode 100644 baseconfig/x86/i686/CONFIG_REGMAP_I2C
 create mode 100644 baseconfig/x86/i686/CONFIG_SERIAL_8250_MID
 create mode 100644 baseconfig/x86/i686/CONFIG_SND_SOC_SSM4567
 create mode 100644 baseconfig/x86/i686/CONFIG_SND_SOC_TS3A227E
 create mode 100644 baseconfig/x86/i686/CONFIG_SYNC_FILE
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_CRYPTO_CRYPTD
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_CRYPTO_LRW
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_DRM_PANEL
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_DW_DMAC_CORE
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_DW_DMAC_PCI
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_FB_MODE_HELPERS
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_GENERIC_PHY
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_HSU_DMA
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_I2C_MUX
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_INPUT_MATRIXKMAP
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_LIBNVDIMM
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_PINCONF
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_PINMUX
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_REGMAP_I2C
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_SERIAL_8250_MID
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_SND_SOC_SSM4567
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_SND_SOC_TS3A227E
 create mode 100644 baseconfig/x86/i686PAE/CONFIG_SYNC_FILE
 create mode 100644 baseconfig/x86/x86_64/CONFIG_CRYPTO_CRYPTD
 create mode 100644 baseconfig/x86/x86_64/CONFIG_CRYPTO_LRW
 create mode 100644 baseconfig/x86/x86_64/CONFIG_CRYPTO_MCRYPTD
 create mode 100644 baseconfig/x86/x86_64/CONFIG_DRM_PANEL
 create mode 100644 baseconfig/x86/x86_64/CONFIG_GENERIC_PHY
 create mode 100644 baseconfig/x86/x86_64/CONFIG_HSU_DMA
 create mode 100644 baseconfig/x86/x86_64/CONFIG_I2C_MUX
 create mode 100644 baseconfig/x86/x86_64/CONFIG_MAILBOX
 create mode 100644 baseconfig/x86/x86_64/CONFIG_MTD_BLKDEVS
 create mode 100644 baseconfig/x86/x86_64/CONFIG_PINCONF
 create mode 100644 baseconfig/x86/x86_64/CONFIG_PINMUX
 create mode 100644 baseconfig/x86/x86_64/CONFIG_REGMAP_I2C
 create mode 100644 baseconfig/x86/x86_64/CONFIG_SERIAL_8250_MID
 create mode 100644 baseconfig/x86/x86_64/CONFIG_SND_SOC_SSM4567
 create mode 100644 baseconfig/x86/x86_64/CONFIG_SND_SOC_TS3A227E
 create mode 100644 baseconfig/x86/x86_64/CONFIG_SYNC_FILE
 create mode 100755 check_configs.awk

diff --git a/check_configs.awk b/check_configs.awk
new file mode 100755
index 0000000..b3dd4ab
--- /dev/null
+++ b/check_configs.awk
@@ -0,0 +1,22 @@
+#!/usr/bin/awk -f
+
+/is not set/ {
+                split ($0, a, "#");
+                split(a[2], b);
+                if (NR==FNR) {
+                        configs[b[1]]="is not set";
+                } else {
+                        if (configs[b[1]] != "" && configs[b[1]] != "is not set")
+                                print "expected # "b[1] " is not set, found " b[1] " " configs[b[1]];
+                }
+}
+
+/=/     {
+                split ($0, a, "=");
+                if (NR==FNR) {
+                        configs[a[1]]=a[2];
+                } else {
+                        if (configs[a[1]] != "" && configs[a[1]] != a[2])
+                                print "expected "a[1]"="configs[a[1]]"  but found " a[1]"="a[2];
+                }
+}
diff --git a/kernel.spec b/kernel.spec
index 0ceb314..1965a42 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -313,8 +313,11 @@ Summary: The Linux kernel
 # printed out?
 %if %{nopatches}
 %define listnewconfig_fail 0
+%define configmismatch_fail 0
 %else
 %define listnewconfig_fail 1
+%define configmismatch_fail 1
+%else
 %endif
 
 # To temporarily exclude an architecture from being built, add it to
@@ -449,6 +452,8 @@ Source39: kernel-x86_64-debug.config
 Source40: generate_all_configs.sh
 Source41: generate_debug_configs.sh
 
+Source42: check_configs.awk
+
 # This file is intentionally left empty in the stock kernel. Its a nicety
 # added for those wanting to do custom rebuilds with altered config opts.
 Source1000: kernel-local
@@ -1210,9 +1215,21 @@ rm -f kernel-%{version}-*debug.config
 
 %define make make %{?cross_opts}
 
+CheckConfigs() {
+     cp %{SOURCE42} .
+     ./check_configs.awk $1 $2 > .mismatches
+     if [ -s .mismatches ]
+     then
+	echo "Error: Mismatches found in configuration files"
+	cat .mismatches
+	exit 1
+     fi
+}
+
 # now run oldconfig over all the config files
 for i in *.config
 do
+  cat $i > temp-$i
   mv $i .config
   Arch=`head -1 .config | cut -b 3-`
   make ARCH=$Arch listnewconfig | grep -E '^CONFIG_' >.newoptions || true
@@ -1226,6 +1243,10 @@ do
   make ARCH=$Arch oldnoconfig
   echo "# $Arch" > configs/$i
   cat .config >> configs/$i
+%if %{configmismatch_fail}
+  CheckConfigs configs/$i temp-$i
+%endif
+  rm temp-$i
 done
 # end of kernel config
 %endif
-- 
2.7.4
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux