blob: a301d3c0e51c3e78a9fadcbd6721bd6ee212321c (
plain)
1 #!/bin/bash
2
3 KV=$(grep ^KERNEL_VERSION ../Makefile | awk '{ print $3 }')
4 OPT=(DEVTMPFS DEVTMPFS_MOUNT EXT2_FS EXT3_FS EXT4_FS XFS_FS REISERFS_FS JFS_FS BTRFS_FS BLK_DEV_SD HYPERV_STORAGE SCSI_VIRTIO VIRTIO_BLK VMWARE_PVSCSI SATA_AHCI ATA_PIIX SATA_NV PATA_AMD PATA_JMICRON IA32_EMULATION)
5
6 if [ ! -f linux-${KV}.defconfig ]; then
7 echo "Can't find 'linux-${KV}.defconfig'!"
8 exit 1
9 fi
10
11 echo "Sanity checking 'linux-${KV}.defconfig':"
12 echo
13
14 function checkopt() {
15 grep -q ^CONFIG_${O}=y linux-${KV}.defconfig
16 if [ $? -eq 0 ]; then
17 echo "OK"
18 else
19 echo "not found or not set to =y!"
20 fi
21 }
22
23 for O in ${OPT[@]}; do
24 echo -n "Checking for CONFIG_${O}... "
25 checkopt ${O}
26 done
27
28 echo
|