]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - tools/tools/nanobsd/pcengines/common.conf
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / tools / tools / nanobsd / pcengines / common.conf
1 #
2 # $FreeBSD$
3 #
4
5 NANO_SRC=$(pwd)
6 NANO_SRC=${NANO_SRC%/tools/tools/nanobsd/pcengines}
7 NANO_OBJ=${NANO_SRC}/../${NANO_NAME}/obj
8 NANO_TOOLS=$(pwd)
9 NANO_PACKAGE_DIR=$(pwd)/Pkg
10 #NANO_RAM_TMPVARSIZE=20480
11 #NANO_RAM_TMPVARSIZE=30720
12 NANO_RAM_TMPVARSIZE=40960
13 NANO_PMAKE="make -j 8"
14
15 NANO_MD_BACKING="swap"
16 #NANO_MAKEFS="makefs \
17 #       -o bsize=4096,fsize=512,density=8192,optimization=space"
18 #export NANO_MAKEFS
19
20 # Options to put in make.conf during buildworld only
21 CONF_BUILD='
22 NO_CLEAN=YES
23 '
24 # Options to put in make.conf during installworld only                          
25 CONF_INSTALL='
26 '
27 # Options to put in make.conf during both build- & installworld.                
28 CONF_WORLD='                                                                    
29 #TARGET_ARCH=i386
30 CFLAGS=-O -pipe                                                                
31 WITHOUT_ACPI=
32 MODULES_OVERRIDE=netgraph rc4
33 BOOT_PXELDR_PROBE_KEYBOARD=1
34 BOOT_PXELDR_ALWAYS_SERIAL=1
35 BOOT_COMCONSOLE_SPEED=9600
36 '
37
38 customize_cmd cust_comconsole
39 customize_cmd cust_allow_ssh_root
40 customize_cmd cust_install_files
41 cust_install_machine_files() (
42   MACHINE_DIR="${NANO_TOOLS}/Files.${NANO_NAME}"
43   if [ -d "${MACHINE_DIR}" ]; then
44     cd ${MACHINE_DIR}
45     find . -print | grep -Ev '/(CVS|\.svn)' | cpio -dumpv ${NANO_WORLDDIR}
46   else
47     echo "${MACHINE_DIR} not found, skipping step"
48   fi
49 )
50 customize_cmd cust_install_machine_files
51
52 cust_ld32_cfg () (
53   cd ${NANO_WORLDDIR}/libexec
54   if [ \! -f ld-elf32.so.1 ]; then
55     ln -s ld-elf.so.1 ld-elf32.so.1
56   fi
57 )
58 customize_cmd cust_ld32_cfg
59
60 cust_boot_cfg () (
61   cd ${NANO_WORLDDIR}
62   echo "-S9600 -h" > boot.config
63   echo "console=\"comconsole\"" > boot/loader.conf
64   echo "comconsole_speed=\"9600\"" >> boot/loader.conf
65   echo "hint.acpi.0.disabled=\"1\"" >> boot/loader.conf
66 )
67 customize_cmd cust_boot_cfg
68 customize_cmd cust_pkg
69 cust_etc_cfg () (
70   cd ${NANO_WORLDDIR}
71   mkdir -pv z/scratch
72   echo "fs:/usr/ports /usr/ports nfs rw,noauto,noatime,bg,soft,intr,nfsv3 0 0" >> etc/fstab
73   echo "fs:/mnt/Backup /mnt/Backup nfs rw,noauto,noatime,bg,soft,intr,nfsv3 0 0" >> etc/fstab
74   echo "fs:/mnt/Ablage /mnt/Ablage nfs rw,noauto,noatime,bg,soft,intr,nfsv3 0 0" >> etc/fstab
75   echo "/dev/ad1s1a /z/scratch ufs rw,noauto,noatime 0 0" >> etc/fstab
76 )
77 customize_cmd cust_etc_cfg
78
79 last_orders () (
80         pprint 2 "last orders"
81         (
82         cd ${NANO_WORLDDIR}
83         touch conf/default/etc/.keepme
84         touch conf/default/var/.keepme
85         )
86 )