Annotation of elwix/config/rc.elwix.amd64, revision 1.1.2.2
1.1.2.1 misho 1: # ELWIX project setup
2: #
3: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
4: # by Michael Pounov <misho@elwix.org>
5: #
1.1.2.2 ! misho 6: # $Id: rc.elwix.amd64,v 1.1.2.1 2014/09/17 22:27:18 misho Exp $
1.1.2.1 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
10: VERSION="2.3_amd64"
11: PLATFORM="elwix"
12: TIMEZONE="Europe/Sofia"
13: BUILD_DATE=`date "+%Y-%m-%d"`
14:
15: TARGET="amd64"
16: TARGET_ARCH="amd64"
1.1.2.2 ! misho 17: #TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
! 18: TARGET_BUILD="x86_64-${PLATFORM}-freebsd"
1.1.2.1 misho 19: PARALLEL_BUILD="-j2"
20:
21: CURDIR=$(pwd)
22: CFGDIR="${CURDIR}/config"
23:
24: SRCCONF="${CFGDIR}/src_${TARGET}.conf"
25: MAKECONF="${CFGDIR}/make_${TARGET}.conf"
26:
27: PREDIR=".."
28:
29: # Dont change TOPDIR!!!
30: TOPDIR="${CURDIR}/build/${VERSION}"
31: #
32: BSDSRC="/home/fbsd_work.src/src"
33: PKGSRC="/home/pkgsrc"
34: ADDSRC="/home/misho/work/embedaddon"
35:
36: REL="${TOPDIR}/release"
37: DEST="${TOPDIR}/destdir"
38: OBJS="${TOPDIR}/obj"
39: ADIR="${TOPDIR}/arch"
40:
41: WORLD="${ADIR}/${TARGET_ARCH}/world"
42: KERN="${ADIR}/${TARGET_ARCH}/kernel"
43: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
44: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
45: PKG="${ADIR}/${TARGET_ARCH}/pkg"
46: AIT="${ADIR}/${TARGET_ARCH}"
47: BSDOBJ="${OBJS}/${TARGET_ARCH}"
48: BSDTOOLS="${BSDSRC}/tools/tools"
49: PKGDIR="${WORLD}/elwix/pkg"
50: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
51:
52: ### Kernel
53: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
54: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
55:
56: KERNHINT="ELWIX_amd64.hints"
57:
58: KERNEL="${KERN}/boot/kernel/kernel"
59: KERNCONF="ELWIX_amd64"
60:
61: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
62: KERNCONF_ROOTFS="ELWIX_amd64_ROOTFS"
63:
64: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
65: KERNCONF_NFS="ELWIX_amd64_NFS"
66:
67: ### Rootfs
68: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
69: ROOTFS_CONF="elwix_firmware.conf"
70:
71: ROOTFS="${DEST}/rootfs"
72: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
73: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
74:
75: ROOTFS_KERN="kernel_rootfs.gz"
76:
77: ROOTFS_IMG="rootfs.img"
78: ROOTFS_SIZE="9120k"
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_64mb_${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}_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}_ext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
112:
113: ### Make OS Image
114: IMG_SIZE=62592
115: IMG_SIZE128=125100
116:
117: CFG_NAND_SIZE=262144
118:
119: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
120:
121: ### Cross
122: CBUILD="${DEST}/cross_build.sh"
123: CGBUILD="${DEST}/cross_gbuild.sh"
124: CEXEC="${DEST}/cross_exec.sh"
125: CENV="${DEST}/cross_env.sh"
126:
127: CROSS_FT_ATH="${BSDTOOLS}/ath"
128: CROSS_FT_IPW="${BSDTOOLS}/ipw"
129: CROSS_FT_IWI="${BSDTOOLS}/iwi"
130: CROSS_FT_MWL="${BSDTOOLS}/mwl"
131: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
132: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
133: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
134:
135: CROSS_ELWIX="../libelwix"
136: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
137:
138: CROSS_AITIO="../libaitio"
139: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
140:
141: CROSS_AITCFG="../libaitcfg"
142: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
143:
144: CROSS_AITRPC="../libaitrpc"
145: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
146:
147: CROSS_AITSCHED="../libaitsched"
148: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
149:
150: CROSS_AITWWW="../libaitwww"
151: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
152:
153: CROSS_AITPELCO="../libaitpelco"
154: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
155:
156: CROSS_AITSYNC="../libaitsync"
157: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
158:
159: CROSS_AITCLI="../libaitcli"
160: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
161:
162: CROSS_AITMQTT="../libaitmqtt"
163: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
164:
165: CROSS_EMBEDTOOLS="../embedtools"
166: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
167:
168: CROSS_ANSH="../ansh"
169: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
170:
171: CROSS_MQTT="../mqtt"
172: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
173:
174: CROSS_WIFINATOR="../wifinator"
175: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
176:
177: CROSS_TFTPD="../tftpd"
178: TFTPD_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
179:
180: #####
181: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
182: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>