Annotation of elwix/config/rc.elwix.mips_alfan2, revision 1.1.2.11
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.11! misho 6: # $Id: rc.elwix.mips_alfan2,v 1.1.2.10 2014/01/15 08:55:27 misho Exp $
1.1.2.1 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
1.1.2.2 misho 10: VERSION="2.2_alfa_n2"
1.1.2.1 misho 11: PLATFORM="elwix"
12: TIMEZONE="Europe/Sofia"
13: BUILD_DATE=`date "+%Y-%m-%d"`
14:
15: TARGET="mips"
16: TARGET_ARCH="mips"
1.1.2.10 misho 17: TARGET_CPUTYPE="mips32"
1.1.2.1 misho 18: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.1.2.3 misho 19: PARALLEL_BUILD="-j2"
1.1.2.1 misho 20:
21: CURDIR=$(pwd)
22: CFGDIR="${CURDIR}/config"
23:
1.1.2.2 misho 24: SRCCONF="${CFGDIR}/src_mips_alfa_n2.conf"
1.1.2.9 misho 25: MAKECONF="${CFGDIR}/make_mips_alfa_n2.conf"
1.1.2.1 misho 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: PKG="${ADIR}/${TARGET_ARCH}/pkg"
45: AIT="${ADIR}/${TARGET_ARCH}"
46: BSDOBJ="${OBJS}/${TARGET_ARCH}"
47: BSDTOOLS="${BSDSRC}/tools/tools"
48: PKGDIR="${WORLD}/elwix/pkg"
49: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
50:
51: ### Kernel
52: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
1.1.2.8 misho 53: KERNDEVHINTS="${BSDKERNCONF}/PB92.hints"
1.1.2.1 misho 54:
1.1.2.6 misho 55: KERNHINT="ELWIX_ALFA_N2.hints"
1.1.2.1 misho 56:
57: KERNEL="${KERN}/boot/kernel/kernel"
1.1.2.4 misho 58: KERNCONF="ELWIX_ALFA_N2"
1.1.2.1 misho 59:
60: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
1.1.2.5 misho 61: KERNCONF_ROOTFS="ELWIX_ALFA_N2_ROOTFS"
1.1.2.1 misho 62:
63: ### Rootfs
64: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
65: ROOTFS_CONF="elwix_firmware.conf"
66:
67: ROOTFS="${DEST}/rootfs"
68: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
1.1.2.11! misho 69: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs_alfa_n2.conf"
1.1.2.1 misho 70:
71: ROOTFS_KERN="kernel_rootfs.gz"
72:
73: ROOTFS_IMG="rootfs.img"
74: ROOTFS_SIZE="9000k"
75:
76: ### tools Firmware
77: LOCALFS_IMG="elwix-pkg.frm"
78:
79: ### 3th party
80: ROMFS_USR2="${DEST}/romfs.pkg"
81: ROMFS_IMG2="elwix-firmware2.sys"
82: #ROMFS_SIZE2="40m"
83:
84: ### RomFS Firmware
85: ROMFS="${DEST}/romfs"
86: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
87:
88: ROMFS_USR="${ROMFS}/usr"
89: ROMFS_IMG="elwix-firmware.sys"
90: #ROMFS_SIZE="38m"
91:
92: ### Base Firmware
93: BASEFS="${DEST}/base"
94: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
95:
96: BASE_FS="${DEST}/base.fs"
97: BASE_ETC="${CFGDIR}/etc/default"
98: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
99:
100: ### FS Image
101: FS="${DEST}/elwix.fs"
102: FS_ETC="${CFGDIR}/etc/default"
103: OS="ELWIX-${VERSION}_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
104:
105: FS_EXT="${DEST}/elwix_ext.fs"
106: FS_EXT_ETC="${CFGDIR}/etc/default"
107: OS_EXT="ELWIX-${VERSION}_ext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
108:
109: ### Make OS Image
110: IMG_SIZE=62592
111: IMG_SIZE128=125100
112:
113: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
114:
115: ### Make U-boot image
116: UB_COMPRESS="lzma"
117: UB_OBJS="${BSDOBJ}/uboot"
118: UB_KERNEL="${UB_OBJS}/kernel"
119: # Must be same like into kernel config [ KERNLOADADDR=0x80050000 ]
120: # if address variables are commented install2ub.sh automatic detect addresses
121: #UB_LOADADDR=0x80002000
122: #UB_ENTRYADDR=0x80002100
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"
137:
138: CROSS_AXL="../gpl/axl"
1.1.2.7 misho 139: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.1.2.1 misho 140: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
141: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
142: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
143:
144: CROSS_ELWIX="../libelwix"
145: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
146: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
147:
148: CROSS_AITIO="../libaitio"
149: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
150: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
151:
152: CROSS_AITCFG="../libaitcfg"
153: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
154: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
155:
156: CROSS_AITRPC="../libaitrpc"
157: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
158: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
159:
160: CROSS_AITSCHED="../libaitsched"
161: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
162: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
163:
164: CROSS_AITWWW="../libaitwww"
165: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
166: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
167:
168: CROSS_AITPELCO="../libaitpelco"
169: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
170: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
171:
172: CROSS_AITSYNC="../libaitsync"
173: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
174: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
175:
176: CROSS_AITCLI="../libaitcli"
177: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
178: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
179:
180: CROSS_AITMQTT="../libaitmqtt"
181: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
182: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
183:
184: CROSS_EMBEDTOOLS="../embedtools"
185: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
186:
187: CROSS_ANSH="../ansh"
188: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
189:
190: CROSS_MQTT="../mqtt"
191: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
192:
193: CROSS_WIFINATOR="../wifinator"
194: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
195:
196: #####
197: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
198: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>