Annotation of elwix/config/rc.elwix.amd64, revision 1.2.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.2.2.11! misho 6: # $Id: rc.elwix.amd64,v 1.2.2.10 2019/09/26 13:02:34 misho Exp $
1.2 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
1.2.2.9 misho 10: VERSION="2.6_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.2.2.11! misho 18: PARALLEL_BUILD="-j16"
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.2.2.11! misho 31: BSDSRC="/usr/home/misho/work/fbsd12/src"
! 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.2.2.9 misho 48: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/${TARGET}.${TARGET_ARCH}/tmp"
49: #CROSSTOOLDIR="${BSDOBJ}/${TARGET_ARCH}.${TARGET_ARCH}/${BSDSRC}/tmp"
1.2 misho 50:
51: ### Kernel
52: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
53: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
54:
55: KERNHINT="ELWIX_amd64.hints"
56:
57: KERNEL="${KERN}/boot/kernel/kernel"
58: KERNCONF="ELWIX_amd64"
59:
60: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
61: KERNCONF_ROOTFS="ELWIX_amd64_ROOTFS"
62:
63: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
64: KERNCONF_NFS="ELWIX_amd64_NFS"
65:
66: ### Rootfs
67: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
68: ROOTFS_CONF="elwix_firmware.conf"
69:
70: ROOTFS="${DEST}/rootfs"
71: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
72: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
73:
74: ROOTFS_KERN="kernel_rootfs.gz"
75:
76: ROOTFS_IMG="rootfs.img"
77: ROOTFS_SIZE="12000k"
78:
79: ### tools Firmware
80: LOCALFS_IMG="elwix-pkg.frm"
81:
82: ### 3th party
83: ROMFS_USR2="${DEST}/romfs.pkg"
84: ROMFS_IMG2="elwix-firmware2.sys"
85: #ROMFS_SIZE2="40m"
86:
87: ### RomFS Firmware
88: ROMFS="${DEST}/romfs"
89: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
90:
91: ROMFS_USR="${ROMFS}/usr"
92: ROMFS_IMG="elwix-firmware.sys"
93: #ROMFS_SIZE="38m"
94:
95: ### Base Firmware
96: BASEFS="${DEST}/base"
97: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
98:
99: BASE_FS="${DEST}/base.fs"
100: BASE_ETC="${CFGDIR}/etc/default"
101: BASE_OS="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
102:
103: ### FS Image
104: FS="${DEST}/elwix.fs"
105: FS_ETC="${CFGDIR}/etc/default"
106: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
107:
108: FS_EXT="${DEST}/elwix_ext.fs"
109: FS_EXT_ETC="${CFGDIR}/etc/default"
110: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
111:
112: ### Make OS Image
113: IMG_SIZE=62592
114: IMG_SIZE128=125100
1.2.2.4 misho 115: IMG_SIZE256=251496
1.2.2.5 misho 116: IMG_SIZE512=500472
1.2 misho 117:
1.2.2.7 misho 118: CFG_NAND_SIZE=524288
1.2 misho 119:
120: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
121:
122: ### Cross
123: CBUILD="${DEST}/cross_build.sh"
124: CGBUILD="${DEST}/cross_gbuild.sh"
125: CEXEC="${DEST}/cross_exec.sh"
126: CENV="${DEST}/cross_env.sh"
127:
128: CROSS_FT_ATH="${BSDTOOLS}/ath"
129: CROSS_FT_IPW="${BSDTOOLS}/ipw"
130: CROSS_FT_IWI="${BSDTOOLS}/iwi"
131: CROSS_FT_MWL="${BSDTOOLS}/mwl"
132: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
133: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
134: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2.2.2 misho 135: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
136: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
137: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
138: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
139: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
140: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
141: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
1.2 misho 142:
1.2.2.8 misho 143: CROSS_PATH="../"
1.2.2.11! misho 144: CROSS_TOOLS="libelwix
! 145: libaitsched
! 146: libaitcfg
! 147: libaitio
! 148: libaitrpc
! 149: libaitwww
! 150: libaitpelco
! 151: libaitsync
! 152: libaitcli
! 153: libaitmqtt
! 154: embedtools
! 155: ansh mqtt
! 156: wifinator
! 157: tftpd"
1.2.2.8 misho 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/"
1.2.2.11! misho 167: CROSS_3THPARTY="mini_sendmail rsync curl strongswan
! 168: ttcp iperf lrzsz
1.2.2.8 misho 169: libnet arping
170: hping2 mtr
171: confuse bmon
172: mpd dnsmasq pimd pimdd freevrrpd ipguard choparp
1.2.2.11! misho 173: readline bird2"
1.2.2.8 misho 174:
175: mini_sendmail_MAKE="${CBUILD}"
176: rsync_MAKE="${CBUILD}"
177: ttcp_MAKE="${CBUILD}"
178: iperf_MAKE="${CBUILD}"
1.2.2.11! misho 179: lrzsz_MAKE="${CBUILD}"
1.2.2.8 misho 180: libnet_MAKE="${CBUILD}"
181: arping_MAKE="${CBUILD}"
182: hping2_MAKE="${CBUILD}"
183: mtr_MAKE="${CBUILD}"
184: confuse_MAKE="${CGBUILD}"
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}"
1.2.2.11! misho 194: bird2_MAKE="${CGBUILD}"
1.2.2.8 misho 195: bird_MAKE="${CGBUILD}"
196: bird6_MAKE="${CGBUILD}"
197: quagga_MAKE="${CBUILD}"
1.2.2.11! misho 198: curl_MAKE="${CBUILD}"
! 199: strongswan_MAKE="${CGBUILD}"
1.2 misho 200:
201: #####
202: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
203: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>