4 KERNEL_VERSION?
=$(shell uname
-r
)
5 ARCH?
=$(shell uname
-m | sed
-e s
/i
.86/i386
/ -e s
/parisc64
/parisc
/ -e s
/sun4u
/sparc64
/ -e s
/arm.
*/arm
/ -e s
/sa110
/arm
/ -e s
/sh.
*/sh
/)
8 OBJ_DIR?
=$(BUILD_DIR
)/obj
10 CPIO_DIR?
=$(BUILD_DIR
)/cpio
11 MODULES_DIR?
=$(CPIO_DIR
)/modules
17 CFLAGS?
=-Wall
-Wextra
-std
=gnu99
-O3
-march
=native
-fverbose-asm
-S
-I.
/
18 LDFLAGS?
=-O
-nostdlib
-Bstatic
--strip-all
25 #*******************************************************************************
26 #customized your module list (scsi_wait is dealed with)
27 MODULES?
=firmware_class ext4 ahci sd_mod sg
30 #milliseconds to wait for more uevents
33 #configure the root device
36 ROOT_OPTIONS
=\"discard
\"
37 ROOT_INIT
=\"/sbin
/init
\"
38 #*******************************************************************************
41 MODULES
+= scsi_wait_scan
42 CFLAGS
+= -DSCSI_WAIT_SCAN
45 CFLAGS
+= -DROOT
=$(ROOT
) -DROOT_FS
=$(ROOT_FS
) -DROOT_OPTIONS
=$(ROOT_OPTIONS
)
46 CFLAGS
+= -DUEVENTS_TIMEOUT
=$(UEVENTS_TIMEOUT
) -DROOT_INIT
=$(ROOT_INIT
)