Add scripts to setup environment for automated tests
[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 conf BLK_DEV_INITRD y
16 conf INITRAMFS_SOURCE '""'
17 conf INITRAMFS_ROOT_UID 0
18 conf INITRAMFS_ROOT_GID 0
19 conf INITRAMFS_COMPRESSION_NONE y
20 conf INITRAMFS_COMPRESSION_GZIP n
21 conf INITRAMFS_COMPRESSION_BZIP2 n
22 conf INITRAMFS_COMPRESSION_LZMA n
23 conf INITRAMFS_COMPRESSION_XZ n
24 conf INITRAMFS_COMPRESSION_LZO n
25
26 conf PPC_MPC52xx y
27 conf PPC_MPC5200_SIMPLE y
28 conf SERIAL_CORE y
29 conf SERIAL_CORE_CONSOLE y
30 conf SERIAL_MPC52xx y
31 conf SERIAL_MPC52xx_CONSOLE y
32 conf SERIAL_MPC52xx_CONSOLE_BAUD 115200
33
34 conf NET y
35 conf CAN y
36 conf CAN_RAW y
37 conf CAN_GW y
38 conf CAN_VCAN y
39 conf CAN_DEV y
40 conf CAN_CALC_BITTIMING y
41 conf CAN_MSCAN y
42 conf CAN_MPC5XXX y
43
44 conf NETDEVICES y
45 conf ETHERNET y
46 conf DMADEVICES y
47 conf PPC_BESTCOMM y
48 conf NET_VENDOR_FREESCALE y
49 conf FEC_MPC52xx y
50 conf FEC_MPC52xx_MDIO y
51
52 # To have netlink for kernel cangw
53 conf INET y
54 conf NETFILTER y
55
56 conf PACKET y # ugw mmap
57
58 yes n|make oldconfig