forked from namjaejeon/ksmbd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (55 loc) · 1.88 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
dist: bionic
language: c
notifications:
- email: true
before_script:
# Download the kernel
- sudo apt-get install libelf-dev wget tar gzip python
- wget https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.1.36.tar.gz
- tar xf linux-4.1.36.tar.gz
- mv linux-4.1.36 linux-stable
- ./.travis_get_mainline_kernel
script:
# Copy cifsd source to kernel
- mv linux-stable ../
- mv linux ../
- mkdir ../linux-stable/fs/cifsd
- cp -ar * ../linux-stable/fs/cifsd/
- mkdir ../linux/fs/cifsd
- cp -ar * ../linux/fs/cifsd/
# Compile with 4.1 kernel
- cd ../linux-stable
- yes "" | make oldconfig
- echo 'obj-$(CONFIG_CIFS_SERVER) += cifsd/' >> fs/Makefile
- echo 'source "fs/cifsd/Kconfig"' >> fs/Kconfig
- echo 'CONFIG_CIFS_SERVER=m' >> .config
- echo 'CONFIG_CIFS_INSECURE_SERVER=y' >> .config
- gcc -v
- make fs/cifsd/cifsd.ko
# Compile with latest Tovalds' kernel
- cd ../linux
- yes "" | make oldconfig
- echo 'obj-$(CONFIG_CIFS_SERVER) += cifsd/' >> fs/Makefile
- echo 'source "fs/cifsd/Kconfig"' >> fs/Kconfig
- echo 'CONFIG_CIFS_SERVER=m' >> .config
- echo 'CONFIG_CIFS_INSECURE_SERVER=y' >> .config
- gcc -v
- make fs/cifsd/cifsd.ko
# Compile secure server build (no smb1.0 & smb2.0) with 4.1 kernel
- cd ../linux-stable
- yes "" | make oldconfig
- echo 'obj-$(CONFIG_CIFS_SERVER) += cifsd/' >> fs/Makefile
- echo 'source "fs/cifsd/Kconfig"' >> fs/Kconfig
- echo 'CONFIG_CIFS_SERVER=m' >> .config
- echo '# CONFIG_CIFS_INSECURE_SERVER is not set' >> .config
- gcc -v
- make fs/cifsd/cifsd.ko
# Compile secure server build (no smb1.0 & smb2.0) with latest Tovalds' kernel
- cd ../linux
- yes "" | make oldconfig
- echo 'obj-$(CONFIG_CIFS_SERVER) += cifsd/' >> fs/Makefile
- echo 'source "fs/cifsd/Kconfig"' >> fs/Kconfig
- echo 'CONFIG_CIFS_SERVER=m' >> .config
- echo '# CONFIG_CIFS_INSECURE_SERVER is not set' >> .config
- gcc -v
- make fs/cifsd/cifsd.ko