ready, now need to know why init libc is crashing
[cinitramfs.git] / conf.mk
blob48e53b2ff93e32cf738b13e1438384b4f176aa86
1 export
2 DEBUG?=1
3 SYSROOT?=
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/)
7 BUILD_DIR?=build
8 OBJ_DIR?=$(BUILD_DIR)/obj
9 S_DIR?=$(BUILD_DIR)/s
10 CPIO_DIR?=$(BUILD_DIR)/cpio
11 MODULES_DIR?=$(CPIO_DIR)/modules
13 LD:=ld
14 CC:=gcc
15 AS:=as
17 CFLAGS?=-Wall -Wextra -std=gnu99 -O3 -march=native -fverbose-asm -S -I./
18 LDFLAGS?=-O -nostdlib -Bstatic --strip-all
19 ASFLAGS?=
21 ifdef DEBUG
22 CFLAGS+= -DDEBUG
23 endif
25 #*******************************************************************************
26 #customized your module list (scsi_wait is dealed with)
27 MODULES?=firmware_class ext4 ahci sd_mod sg
28 SCSI_WAIT?=1
30 #milliseconds to wait for more uevents
31 UEVENTS_TIMEOUT=1
33 #configure the root device
34 ROOT=\"sdb3\"
35 ROOT_FS=\"ext4\"
36 ROOT_OPTIONS=\"discard\"
37 ROOT_INIT=\"/sbin/init\"
38 #*******************************************************************************
40 ifdef SCSI_WAIT
41 MODULES+= scsi_wait_scan
42 CFLAGS+= -DSCSI_WAIT_SCAN
43 endif
45 CFLAGS+= -DROOT=$(ROOT) -DROOT_FS=$(ROOT_FS) -DROOT_OPTIONS=$(ROOT_OPTIONS)
46 CFLAGS+= -DUEVENTS_TIMEOUT=$(UEVENTS_TIMEOUT) -DROOT_INIT=$(ROOT_INIT)