Subject | Hash | Author | Date (UTC) |
---|---|---|---|
enforce kernel version setting, binfmt_script | f0aaf75a34bd2b4fdb84bea6bd572ff5b715fd2b | Sylvain BERTRAND | 2013-09-11 00:41:45 |
Create LICENSE.md | 73147c4952cdeee9ad96fe447c543ffbf6ab494a | Sylvain BERTRAND | 2013-07-17 19:00:49 |
scsi_wait_scan is gone from upstream | d7bc928da1caea553b1279d131596344df93273f | Sylvain BERTRAND | 2012-12-19 16:24:37 |
wrong init place | abf8267b4a36f1385facf5a4752746c121914674 | root | 2012-07-05 00:35:09 |
adapt sample script for devtmpfs | 983e8e944dae73846c5e0ea5ab26726851073dec | root | 2012-03-28 14:47:01 |
must up the ethernet interface | 79bd84790e904ce471101762a35dbd280bb2673f | root | 2012-02-02 18:30:24 |
init have more children than gettys | 57f4231ffd8e97b7511226bfc4f058e0814a4e8e | Sylvain BERTRAND | 2012-01-31 13:10:32 |
clean sigprogmask for children | 89a379820196e9a4de7d6bf38ec49a679f9de917 | Sylvain BERTRAND | 2012-01-31 12:52:11 |
ready to be used | 51f3d5adedf51ab5b47a61724035141bcbb71354 | Sylvain BERTRAND | 2012-01-30 15:27:56 |
ready, now need to know why init libc is crashing | 39e165e544af1632e0d1926a686173e8b7543bdd | Sylvain BERTRAND | 2011-12-30 02:35:57 |
uevents cleanup | 082938475c119d68ce5def18a1c21f69c596b1a1 | Sylvain BERTRAND | 2011-12-26 23:32:00 |
uevent monitor to ulinux patterns | e9e2e03953d3a28e08aeb3a7388b334cda8a8479 | Sylvain BERTRAND | 2011-12-26 22:38:45 |
modules properly loaded | ac79794945662bad9e97562c479dea5afe455687 | Sylvain BERTRAND | 2011-12-26 22:08:54 |
ulinux patterns: insert a kernel module | ed879829ce6c44b77bddcd9c106a106261f47301 | Sylvain BERTRAND | 2011-12-26 21:29:33 |
ulinux dir_parse pattern | 63cc7acc186efc291a76255e97d86e80901174e5 | Sylvain BERTRAND | 2011-12-26 02:24:55 |
ulinux improvements and more patterns | a458c52301d3a34e8b51794fea7c1cb06c1c34f8 | Sylvain BERTRAND | 2011-12-22 22:09:06 |
ulinux patterns:network server | 60c167bcd530f95d0a57189035620c3bc80f1e34 | Sylvain BERTRAND | 2011-12-20 00:39:56 |
ulinux cleanup and samples | 92c893f28ef42f11943c0bf80a037a5b5f34ebef | Sylvain BERTRAND | 2011-12-16 01:51:22 |
uevent listener | 55657699f291575139858aec466340e7624cd66a | Sylvain BERTRAND | 2011-12-15 18:01:06 |
uevent monitor | e241bd4db4af8510902a5c606eee0e1e2dbdecda | Sylvain BERTRAND | 2011-12-13 00:37:45 |
File | Lines added | Lines deleted |
---|---|---|
TODO | 1 | 0 |
conf.mk | 4 | 6 |
makefile | 7 | 4 |
File TODO changed (mode: 100644) (index fae48d3..1d211b5) | |||
1 | update to the latest ulinux | ||
1 | 2 | blkid code in order to mount the root file system with its UUID | blkid code in order to mount the root file system with its UUID |
File conf.mk changed (mode: 100644) (index eedbc29..cb6010e) | |||
1 | 1 | export | export |
2 | 2 | QUIET?= | QUIET?= |
3 | 3 | SYSROOT?= | SYSROOT?= |
4 | KERNEL_VERSION?=$(shell uname -r) | ||
5 | 4 | 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/) | 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/) |
6 | 5 | ||
7 | 6 | BUILD_DIR?=build | BUILD_DIR?=build |
... | ... | LD:=ld | |
14 | 13 | CC:=gcc | CC:=gcc |
15 | 14 | AS:=as | AS:=as |
16 | 15 | ||
17 | CFLAGS?=-Wall -Wextra -std=gnu99 -O3 -march=native -fverbose-asm -S -I./ | ||
16 | CFLAGS?=-Wall -Wextra -std=gnu99 -Ofast -march=native -fverbose-asm -S -I./ | ||
18 | 17 | LDFLAGS?=-O -nostdlib -Bstatic --strip-all | LDFLAGS?=-O -nostdlib -Bstatic --strip-all |
19 | 18 | ASFLAGS?= | ASFLAGS?= |
20 | 19 | ||
... | ... | CFLAGS+= -DQUIET | |
23 | 22 | endif | endif |
24 | 23 | ||
25 | 24 | #******************************************************************************* | #******************************************************************************* |
26 | #customized your module list (scsi_wait is dealed with) | ||
27 | MODULES?=firmware_class ext4 ahci sd_mod sg | ||
25 | #customized your module list | ||
26 | MODULES?=firmware_class binfmt_script ext4 sata_nv sd_mod sg | ||
28 | 27 | ||
29 | 28 | #milliseconds to wait for more uevents | #milliseconds to wait for more uevents |
30 | 29 | UEVENTS_TIMEOUT=1 | UEVENTS_TIMEOUT=1 |
31 | 30 | ||
32 | 31 | #configure the root device | #configure the root device |
33 | ROOT=\"sdb3\" | ||
32 | ROOT=\"sda1\" | ||
34 | 33 | ROOT_FS=\"ext4\" | ROOT_FS=\"ext4\" |
35 | 34 | ROOT_OPTIONS=\"discard\" | ROOT_OPTIONS=\"discard\" |
36 | 35 | SYSINIT=\"/init.sh\" | SYSINIT=\"/init.sh\" |
37 | 36 | #******************************************************************************* | #******************************************************************************* |
38 | 37 | ||
39 | |||
40 | 38 | CFLAGS+= -DROOT=$(ROOT) -DROOT_FS=$(ROOT_FS) -DROOT_OPTIONS=$(ROOT_OPTIONS) | CFLAGS+= -DROOT=$(ROOT) -DROOT_FS=$(ROOT_FS) -DROOT_OPTIONS=$(ROOT_OPTIONS) |
41 | 39 | CFLAGS+= -DUEVENTS_TIMEOUT=$(UEVENTS_TIMEOUT) -DSYSINIT=$(SYSINIT) | CFLAGS+= -DUEVENTS_TIMEOUT=$(UEVENTS_TIMEOUT) -DSYSINIT=$(SYSINIT) |
File makefile changed (mode: 100644) (index 2eebf4f..f1ab636) | |||
1 | 1 | include conf.mk | include conf.mk |
2 | 2 | ||
3 | .PHONY:all dirs clean am_i_root help | ||
3 | .PHONY:all dirs clean am_i_root help check_env | ||
4 | 4 | ||
5 | 5 | DIRS=\ | DIRS=\ |
6 | 6 | $(S_DIR) \ | $(S_DIR) \ |
... | ... | endif | |
32 | 32 | help: | help: |
33 | 33 | @echo "targets are 'all', 'help'(this output), 'clean'" | @echo "targets are 'all', 'help'(this output), 'clean'" |
34 | 34 | @echo -e "you can configure the build with the following variables:\\n\ | @echo -e "you can configure the build with the following variables:\\n\ |
35 | SYSROOT, KERNEL_VERSION, ARCH, MODULES, SCSI_WAIT, CC, LD, CFLAGS, LDFLAGS\\n\ | ||
36 | (you can tune the conf.mk file)" | ||
35 | SYSROOT, KERNEL_VERSION (mandatory), ARCH, MODULES, CC, LD, CFLAGS,\\n\ | ||
36 | LDFLAGS (you can tune the conf.mk file)" | ||
37 | 37 | ||
38 | all:am_i_root dirs ulinux/arch $(BUILD_DIR)/initramfs.cpio.xz | ||
38 | all:am_i_root check_env dirs ulinux/arch $(BUILD_DIR)/initramfs.cpio.xz | ||
39 | |||
40 | check_env: | ||
41 | @if test -z "$${KERNEL_VERSION}";then echo "Missing KERNEL_VERSION";false;fi | ||
39 | 42 | ||
40 | 43 | am_i_root: | am_i_root: |
41 | 44 | @if [ $$(whoami) != root ];then echo *ERROR* must be root to build;false;fi | @if [ $$(whoami) != root ];then echo *ERROR* must be root to build;false;fi |