Annotation of elwix/config/rc.elwix.amd64, revision 1.3.2.1
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.1 ! misho 6: # $Id: rc.elwix.amd64,v 1.3 2021/03/11 13:59:50 misho Exp $
1.2 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
1.3.2.1 ! misho 10: VERSION="2.7_amd64"
1.2 misho 11: PLATFORM="elwix"
12: TIMEZONE="Europe/Sofia"
13: BUILD_DATE=`date "+%Y-%m-%d"`
14:
15: TARGET="amd64"
16: TARGET_ARCH="amd64"
17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.3.2.1 ! misho 18: PARALLEL_BUILD="-j8"
1.2 misho 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: #
1.3.2.1 ! misho 31: BSDSRC="/usr/home/misho/work/freebsd.src"
1.3 misho 32: ADDSRC="/usr/home/misho/work/embedaddon"
1.2 misho 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 misho 48: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/${TARGET}.${TARGET_ARCH}/tmp"
1.2 misho 49:
50: ### Kernel
51: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
52: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
53:
54: KERNHINT="ELWIX_amd64.hints"
55:
56: KERNEL="${KERN}/boot/kernel/kernel"
57: KERNCONF="ELWIX_amd64"
58:
59: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
60: KERNCONF_ROOTFS="ELWIX_amd64_ROOTFS"
61:
62: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
63: KERNCONF_NFS="ELWIX_amd64_NFS"
64:
65: ### Rootfs
66: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
67: ROOTFS_CONF="elwix_firmware.conf"
68:
69: ROOTFS="${DEST}/rootfs"
70: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
71: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
72:
73: ROOTFS_KERN="kernel_rootfs.gz"
74:
75: ROOTFS_IMG="rootfs.img"
1.3.2.1 ! misho 76: ROOTFS_SIZE="13440k"
! 77:
! 78: OBJDUMP="/usr/local/bin/i386-unknown-freebsd14.0-objdump"
1.2 misho 79:
80: ### tools Firmware
81: LOCALFS_IMG="elwix-pkg.frm"
82:
83: ### 3th party
84: ROMFS_USR2="${DEST}/romfs.pkg"
85: ROMFS_IMG2="elwix-firmware2.sys"
86: #ROMFS_SIZE2="40m"
87:
88: ### RomFS Firmware
89: ROMFS="${DEST}/romfs"
90: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
91:
92: ROMFS_USR="${ROMFS}/usr"
93: ROMFS_IMG="elwix-firmware.sys"
94: #ROMFS_SIZE="38m"
95:
96: ### Base Firmware
97: BASEFS="${DEST}/base"
98: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
99:
100: BASE_FS="${DEST}/base.fs"
101: BASE_ETC="${CFGDIR}/etc/default"
102: BASE_OS="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
103:
104: ### FS Image
105: FS="${DEST}/elwix.fs"
106: FS_ETC="${CFGDIR}/etc/default"
107: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
108:
109: FS_EXT="${DEST}/elwix_ext.fs"
110: FS_EXT_ETC="${CFGDIR}/etc/default"
111: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
112:
113: ### Make OS Image
114: IMG_SIZE=62592
115: IMG_SIZE128=125100
1.3 misho 116: IMG_SIZE256=251496
117: IMG_SIZE512=500472
1.2 misho 118:
1.3 misho 119: CFG_NAND_SIZE=524288
1.2 misho 120:
121: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
122:
123: ### Cross
124: CBUILD="${DEST}/cross_build.sh"
125: CGBUILD="${DEST}/cross_gbuild.sh"
126: CEXEC="${DEST}/cross_exec.sh"
127: CENV="${DEST}/cross_env.sh"
128:
129: CROSS_FT_ATH="${BSDTOOLS}/ath"
130: CROSS_FT_IPW="${BSDTOOLS}/ipw"
131: CROSS_FT_IWI="${BSDTOOLS}/iwi"
132: CROSS_FT_MWL="${BSDTOOLS}/mwl"
133: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
134: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
135: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.3 misho 136: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
137: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
138: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
139: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
140: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
141: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
142: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
143:
144: CROSS_PATH="../"
145: CROSS_TOOLS="libelwix
146: libaitsched
147: libaitcfg
148: libaitio
149: libaitrpc
150: libaitwww
151: libaitsync
152: libaitcli
153: libaitmqtt
154: embedtools
155: ansh mqtt
156: wifinator
157: tftpd"
158: CROSS_PFX="--prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
159:
160: # additional options to software // <cross_tools_item>_OPTS
161: libaitio_OPTS="--enable-aio"
162: libaitsched_OPTS="--enable-aio"
163: mqtt_OPTS="--with-sqlite3dir=${WORLD}/usr/local"
164:
165: # 3th party softwares
166: CROSS_3THPATH="../embedaddon/"
167: CROSS_3THPARTY="mini_sendmail rsync curl strongswan
168: ttcp iperf lrzsz
169: libnet arping
170: hping2 mtr
1.3.2.1 ! misho 171: bmon
1.3 misho 172: mpd dnsmasq pimd pimdd freevrrpd ipguard choparp
173: readline bird2"
174:
175: mini_sendmail_MAKE="${CBUILD}"
176: rsync_MAKE="${CBUILD}"
177: ttcp_MAKE="${CBUILD}"
178: iperf_MAKE="${CBUILD}"
179: lrzsz_MAKE="${CBUILD}"
180: libnet_MAKE="${CBUILD}"
181: arping_MAKE="${CBUILD}"
182: hping2_MAKE="${CBUILD}"
183: mtr_MAKE="${CBUILD}"
1.3.2.1 ! misho 184: #confuse_MAKE="${CGBUILD}"
1.3 misho 185: bmon_MAKE="${CGBUILD}"
186: mpd_MAKE="${CBUILD}"
187: dnsmasq_MAKE="${CBUILD}"
188: pimd_MAKE="${CBUILD}"
189: pimdd_MAKE="${CBUILD}"
190: freevrrpd_MAKE="${CBUILD}"
191: ipguard_MAKE="${CBUILD}"
192: choparp_MAKE="${CBUILD}"
193: readline_MAKE="${CGBUILD}"
194: bird2_MAKE="${CGBUILD}"
195: bird_MAKE="${CGBUILD}"
196: bird6_MAKE="${CGBUILD}"
197: curl_MAKE="${CBUILD}"
198: strongswan_MAKE="${CGBUILD}"
1.2 misho 199:
200: #####
201: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
202: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>