forked from TokisApps/polygenjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkintel.sh
31 lines (26 loc) · 1.19 KB
/
mkintel.sh
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
make mrproper
make allnoconfig
(for x in NAMESPACES _NS MEMORY_ATTACH USELIB INOTIFY DNOTIFY DHCP BROADCOM SOUND FAT SND CGROUP NET USB EXT4 DEV AHCI PROC UNIX SMP CRYPT BINFMT HDA KEYBOARD MOUSE MSDOS NTFS PARTITION TMPFS CONFIGFS ATA MD AMD MHI AGP INIT RD GZIP ACPI IP_ COMPRE ATM BT TCP XFRM TTY VT PTY V6 AUTO CODEPAGE SQUASH PACKET TLS XDP DISP POWER LCD BACKLIGHT MITI ENERGY MICRO SIS ATH FB VESA X11; do
echo $x > /dev/tty
grep -r "CONFIG_.*$x" . | sed -e "s/.*\(CONFIG[A-Z_0-9]*\).*/\\1=y/"
done)|sort -u >> .config
(for x in AMDGPU FILESYSTEM DEV_NBD; do
echo $x > /dev/tty
grep -r "CONFIG_.*$x" . | sed -e "s/.*\(CONFIG[A-Z_0-9]*\).*/\\1=n/"
done)|sort -u >> .config
echo CONFIG_DEFAULT_INIT=\"/sbin/init\" >> .config
echo CONFIG_64BIT=n >> .config
echo CONFIG_NET=y >> .config
echo CONFIG_BLOCK_LEGACY_AUTOLOAD=y >> .config
#echo CONFIG_MCORE2=y >> .config
echo CONFIG_BLK_DEV_SD=y >> .config
echo CONFIG_BLK_DEV_SR=y >> .config
echo CONFIG_SCSI=y >> .config
echo CONFIG_SYSVIPC=y >> .config
echo CONFIG_POSIX_MQUEUE=y >> .config
echo CONFIG_DRM=y >> .config
echo CONFIG_WLAN=y >> .config
#echo CONFIG_WWAN=y >> .config
echo CONFIG_MODULES=n >> .config
make menuconfig
make clean -j 3 bzImage