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