Annotation of elwix/config/rc.elwix, revision 1.3.2.18
1.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.3.2.18! misho 6: # $Id: rc.elwix,v 1.3.2.17 2012/07/06 09:32:08 misho Exp $
1.1 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
1.3.2.1 misho 10: VERSION="1.6"
1.1 misho 11: PLATFORM="elwix"
12: TIMEZONE="Europe/Sofia"
13: BUILD_DATE=`date "+%Y-%m-%d"`
14:
15: TARGET="i386"
16: TARGET_ARCH="i386"
1.3 misho 17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.1 misho 18: PARALLEL_BUILD=2
19:
20: CURDIR=$(pwd)
21: CFGDIR="${CURDIR}/config"
22:
23: PREDIR=".."
24:
25: # Dont change TOPDIR!!!
1.3.2.15 misho 26: TOPDIR="${CURDIR}/build/${VERSION}"
1.1 misho 27: #
1.3.2.14 misho 28: BSDSRC="/home/fbsd_work.src/src"
29: PKGSRC="/home/pkgsrc"
1.1 misho 30:
31: REL="${TOPDIR}/release"
32: DEST="${TOPDIR}/destdir"
33: OBJS="${TOPDIR}/obj"
34: ADIR="${TOPDIR}/arch"
35:
36: WORLD="${ADIR}/${TARGET_ARCH}/world"
37: KERN="${ADIR}/${TARGET_ARCH}/kernel"
1.2 misho 38: PKG="${ADIR}/${TARGET_ARCH}/pkg"
39: AIT="${ADIR}/${TARGET_ARCH}"
1.1 misho 40: BSDOBJ="${OBJS}/${TARGET_ARCH}"
1.2 misho 41: BSDTOOLS="${BSDSRC}/tools/tools"
1.3.2.12 misho 42: PKGDIR="${WORLD}/elwix/pkg"
1.3.2.14 misho 43: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
1.1 misho 44:
45: ### Kernel
46: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
1.3 misho 47: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
1.1 misho 48:
49: KERNEL="${KERN}/boot/kernel/kernel"
1.3.2.3 misho 50: KERNCONF="ELWIX"
1.1 misho 51:
52: ### Rootfs
53: MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
54: MKF="Makefile.elwix"
55: MKH="Makefile.inc"
56: ROOTFS_CONF="elwix_firmware.conf"
57:
58: ROOTFS="${DEST}/rootfs"
59: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
60: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
61:
62: ROOTFS_KERN="kernel.gz"
63:
64: ROOTFS_IMG="rootfs.img"
1.3.2.10 misho 65: ROOTFS_SIZE="8000k"
1.1 misho 66:
67: ### RomFS Firmware
68: ROMFS="${DEST}/romfs"
69: ROMFS_USR="${ROMFS}/usr"
1.2 misho 70: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
1.1 misho 71: ROMFS_IMG="elwix-firmware.sys"
1.3.2.16 misho 72: ROMFS_SIZE="78m"
1.1 misho 73:
74: ### FS Image
75: FS="${DEST}/elwix.fs"
1.2 misho 76: FS_ETC="${CFGDIR}/etc/default"
77: ELWIX_FS="${CFGDIR}/elwix_fs.conf"
78: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
79: OS="ELWIX-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1 misho 80:
81: ### Make OS Image
1.2 misho 82: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
83: MD5CHK="${IMGNAME}.md5"
84: SHA1CHK="${IMGNAME}.sha1"
85: IMG="${IMGNAME}.img"
86: IMG_SIZE=62592
1.1 misho 87:
88: ### Cross
1.2 misho 89: CBUILD="${DEST}/cross_build.sh"
90: CGBUILD="${DEST}/cross_gbuild.sh"
1.3.2.12 misho 91: CEXEC="${DEST}/cross_exec.sh"
1.3 misho 92: CENV="${DEST}/cross_env.sh"
1.2 misho 93:
94: CROSS_FT_ATH="${BSDTOOLS}/ath"
95: CROSS_FT_IPW="${BSDTOOLS}/ipw"
96: CROSS_FT_IWI="${BSDTOOLS}/iwi"
97: CROSS_FT_MWL="${BSDTOOLS}/mwl"
98: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
99: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
1.3.2.5 misho 100: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2 misho 101:
1.1 misho 102: CROSS_AXL="../gpl/axl"
1.3.2.7 misho 103: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
1.2 misho 104: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
105: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
106: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1 misho 107:
108: CROSS_AITIO="../libaitio"
1.3.2.7 misho 109: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local"
1.2 misho 110: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1 misho 111:
112: CROSS_AITCRC="../libaitcrc"
1.3.2.7 misho 113: AITCRC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 114: #ELWIX_LIB_AITCRC="${CROSS_AITCRC}/lib/libaitcrc.so"
1.1 misho 115:
116: CROSS_AITCFG="../libaitcfg"
1.3.2.7 misho 117: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 118: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1 misho 119:
120: CROSS_AITSESS="../libaitsess"
1.3.2.7 misho 121: AITSESS_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 122: #ELWIX_LIB_AITSESS="${CROSS_AITSESS}/lib/libaitsess.so"
1.1 misho 123:
124: CROSS_AITRPC="../libaitrpc"
1.3.2.7 misho 125: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 126: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
127:
128: CROSS_AITSCHED="../libaitsched"
1.3.2.18! misho 129: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local"
1.2 misho 130: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1 misho 131:
1.3.2.11 misho 132: CROSS_AITWWW="../libaitwww"
133: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local"
134: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
135:
1.1 misho 136: CROSS_AITPELCO="../libaitpelco"
1.3.2.7 misho 137: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 138: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1 misho 139:
140: CROSS_AITPWD="../libaitpwd"
1.3.2.7 misho 141: AITPWD_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 142: #ELWIX_LIB_AITPWD="${CROSS_AITPWD}/lib/libaitpwd.so"
1.1 misho 143:
144: CROSS_AITSYNC="../libaitsync"
1.3.2.7 misho 145: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 146: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1 misho 147:
148: CROSS_AITCLI="../libaitcli"
1.3.2.7 misho 149: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 150: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
151:
1.3.2.2 misho 152: CROSS_AITMQTT="../libaitmqtt"
1.3.2.7 misho 153: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local"
1.3.2.11 misho 154: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
1.3.2.2 misho 155:
1.2 misho 156: CROSS_EMBEDTOOLS="../embedtools"
1.3.2.7 misho 157: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 158:
159: CROSS_ANSH="../ansh"
1.3.2.7 misho 160: ANSH_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 161:
1.3.2.17 misho 162: CROSS_MQTT="../mqtt"
163: MQTT_CFG="./configure --prefix=${WORLD}/usr/local"
164:
1.2 misho 165: CROSS_3TH="../embedaddon"
1.1 misho 166:
167: #####
168: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
169: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>