Annotation of elwix/config/rc.elwix.i386, revision 1.3.2.11
1.2 misho 1: # ELWIX project setup
2: #
3: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
4: # by Michael Pounov <misho@elwix.org>
5: #
1.3.2.11! misho 6: # $Id: rc.elwix.i386,v 1.3.2.10 2018/01/02 01:38:18 misho Exp $
1.2 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
1.3.2.1 misho 10: VERSION="2.6_x86"
1.2 misho 11: PLATFORM="elwix"
12: TIMEZONE="Europe/Sofia"
13: BUILD_DATE=`date "+%Y-%m-%d"`
14:
15: TARGET="i386"
16: TARGET_ARCH="i386"
17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
18: PARALLEL_BUILD="-j2"
19:
20: CURDIR=$(pwd)
21: CFGDIR="${CURDIR}/config"
22:
23: SRCCONF="${CFGDIR}/src_${TARGET}.conf"
24: MAKECONF="${CFGDIR}/make_${TARGET}.conf"
25:
26: PREDIR=".."
27:
28: # Dont change TOPDIR!!!
29: TOPDIR="${CURDIR}/build/${VERSION}"
30: #
31: BSDSRC="/home/fbsd_work.src/src"
32: ADDSRC="/home/misho/work/embedaddon"
33:
34: REL="${TOPDIR}/release"
35: DEST="${TOPDIR}/destdir"
36: OBJS="${TOPDIR}/obj"
37: ADIR="${TOPDIR}/arch"
38:
39: WORLD="${ADIR}/${TARGET_ARCH}/world"
40: KERN="${ADIR}/${TARGET_ARCH}/kernel"
41: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
42: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
43: PKG="${ADIR}/${TARGET_ARCH}/pkg"
44: AIT="${ADIR}/${TARGET_ARCH}"
45: BSDOBJ="${OBJS}/${TARGET_ARCH}"
46: BSDTOOLS="${BSDSRC}/tools/tools"
47: PKGDIR="${WORLD}/elwix/pkg"
1.3.2.9 misho 48: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/${TARGET}.${TARGET_ARCH}/tmp"
1.2 misho 49:
1.3 misho 50: ### Compile depended tools for uboot and etc ...
51: COMPILE_DEPTOOLS="YES"
52:
1.2 misho 53: ### Kernel
54: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
55: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
56:
57: KERNHINT="ELWIX_i386.hints"
58:
59: KERNEL="${KERN}/boot/kernel/kernel"
60: KERNCONF="ELWIX_i386"
61:
62: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
63: KERNCONF_ROOTFS="ELWIX_i386_ROOTFS"
64:
65: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
66: KERNCONF_NFS="ELWIX_i386_NFS"
67:
68: ### Rootfs
69: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
70: ROOTFS_CONF="elwix_firmware.conf"
71:
72: ROOTFS="${DEST}/rootfs"
73: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
74: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
75:
76: ROOTFS_KERN="kernel_rootfs.gz"
77:
78: ROOTFS_IMG="rootfs.img"
1.3.2.11! misho 79: ROOTFS_SIZE="12000k"
1.2 misho 80:
81: ### tools Firmware
82: LOCALFS_IMG="elwix-pkg.frm"
83:
84: ### 3th party
85: ROMFS_USR2="${DEST}/romfs.pkg"
86: ROMFS_IMG2="elwix-firmware2.sys"
87: #ROMFS_SIZE2="40m"
88:
89: ### RomFS Firmware
90: ROMFS="${DEST}/romfs"
91: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
92:
93: ROMFS_USR="${ROMFS}/usr"
94: ROMFS_IMG="elwix-firmware.sys"
95: #ROMFS_SIZE="38m"
96:
97: ### Base Firmware
98: BASEFS="${DEST}/base"
99: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
100:
101: BASE_FS="${DEST}/base.fs"
102: BASE_ETC="${CFGDIR}/etc/default"
1.3.2.7 misho 103: BASE_OS="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2 misho 104:
105: ### FS Image
106: FS="${DEST}/elwix.fs"
107: FS_ETC="${CFGDIR}/etc/default"
1.3 misho 108: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2 misho 109:
110: FS_EXT="${DEST}/elwix_ext.fs"
111: FS_EXT_ETC="${CFGDIR}/etc/default"
1.3 misho 112: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2 misho 113:
114: ### Make OS Image
115: IMG_SIZE=62592
116: IMG_SIZE128=125100
1.3.2.4 misho 117: IMG_SIZE256=251496
118: IMG_SIZE512=500472
1.2 misho 119:
1.3.2.6 misho 120: CFG_NAND_SIZE=524288
1.2 misho 121:
122: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
123:
124: ### Cross
125: CBUILD="${DEST}/cross_build.sh"
126: CGBUILD="${DEST}/cross_gbuild.sh"
127: CEXEC="${DEST}/cross_exec.sh"
128: CENV="${DEST}/cross_env.sh"
129:
130: CROSS_FT_ATH="${BSDTOOLS}/ath"
131: CROSS_FT_IPW="${BSDTOOLS}/ipw"
132: CROSS_FT_IWI="${BSDTOOLS}/iwi"
133: CROSS_FT_MWL="${BSDTOOLS}/mwl"
134: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
135: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
136: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.3.2.2 misho 137: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
138: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
139: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
140: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
141: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
142: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
143: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
1.2 misho 144:
1.3.2.8 misho 145: CROSS_PATH="../"
146: CROSS_TOOLS="libelwix libaitsched libaitcfg libaitio libaitrpc libaitwww libaitpelco libaitsync libaitcli libaitmqtt embedtools ansh mqtt wifinator tftpd"
147: CROSS_PFX="--prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
148:
149: # additional options to software // <cross_tools_item>_OPTS
150: libaitio_OPTS="--enable-aio"
151: libaitsched_OPTS="--enable-aio"
152: mqtt_OPTS="--with-sqlite3dir=${WORLD}/usr/local"
1.3.2.10 misho 153:
154: # 3th party softwares
155: CROSS_3THPATH="../embedaddon/"
156: CROSS_3THPARTY="mini_sendmail rsync
157: ttcp iperf
158: libnet arping
159: hping2 mtr
160: confuse bmon
161: mpd dnsmasq pimd pimdd freevrrpd ipguard choparp
162: readline bird bird6 quagga"
163:
164: mini_sendmail_MAKE="${CBUILD}"
165: rsync_MAKE="${CBUILD}"
166: ttcp_MAKE="${CBUILD}"
167: iperf_MAKE="${CBUILD}"
168: libnet_MAKE="${CBUILD}"
169: arping_MAKE="${CBUILD}"
170: hping2_MAKE="${CBUILD}"
171: mtr_MAKE="${CBUILD}"
172: confuse_MAKE="${CGBUILD}"
173: bmon_MAKE="${CGBUILD}"
174: mpd_MAKE="${CBUILD}"
175: dnsmasq_MAKE="${CBUILD}"
176: pimd_MAKE="${CBUILD}"
177: pimdd_MAKE="${CBUILD}"
178: freevrrpd_MAKE="${CBUILD}"
179: ipguard_MAKE="${CBUILD}"
180: choparp_MAKE="${CBUILD}"
181: readline_MAKE="${CGBUILD}"
182: bird_MAKE="${CGBUILD}"
183: bird6_MAKE="${CGBUILD}"
184: quagga_MAKE="${CBUILD}"
1.2 misho 185:
186: #####
187: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
188: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>