continuous: Fix configuration step for newer kernels
[can-benchmark.git] / continuous / steps / 20-config
1 #!/bin/sh
2
3 set -e
4
5 cd linux
6
7 export ARCH=powerpc
8 make allnoconfig
9
10 conf() {
11     sed -i -n -e "/\\bCONFIG_$1\\b/!p" .config
12     echo CONFIG_$1=$2 >> .config
13 }
14
15 GDESC=$(git describe)
16 if [ ${GDESC#v2.6} != ${GDESC} ]; then
17     conf PPC_DISABLE_WERROR y
18 fi
19
20 conf BINFMT_ELF y
21
22 conf BLK_DEV_INITRD y
23 conf INITRAMFS_SOURCE '""'
24 conf INITRAMFS_ROOT_UID 0
25 conf INITRAMFS_ROOT_GID 0
26 conf INITRAMFS_COMPRESSION_NONE y
27 conf INITRAMFS_COMPRESSION_GZIP n
28 conf INITRAMFS_COMPRESSION_BZIP2 n
29 conf INITRAMFS_COMPRESSION_LZMA n
30 conf INITRAMFS_COMPRESSION_XZ n
31 conf INITRAMFS_COMPRESSION_LZO n
32
33 conf PPC_MPC52xx y
34 conf PPC_MPC5200_SIMPLE y
35 conf SERIAL_CORE y
36 conf SERIAL_CORE_CONSOLE y
37 conf SERIAL_MPC52xx y
38 conf SERIAL_MPC52xx_CONSOLE y
39 conf SERIAL_MPC52xx_CONSOLE_BAUD 115200
40
41 conf NET y
42 conf CAN y
43 conf CAN_RAW y
44 conf CAN_GW y
45 conf CAN_VCAN y
46 conf CAN_DEV y
47 conf CAN_CALC_BITTIMING y
48 conf CAN_MSCAN y
49 conf CAN_MPC5XXX y
50
51 conf NETDEVICES y
52 conf ETHERNET y
53 conf DMADEVICES y
54 conf PPC_BESTCOMM y
55 conf NET_VENDOR_FREESCALE y
56 conf FEC_MPC52xx y
57 conf FEC_MPC52xx_MDIO y
58
59 # To have netlink for kernel cangw
60 conf INET y
61 conf NETFILTER y
62
63 conf PACKET y # ugw mmap
64
65 chronic ../my-oldconfig.pl