Annotation of elwix/config/rc.elwix, revision 1.3.2.22
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.22! misho 6: # $Id: rc.elwix,v 1.3.2.21 2012/10/10 09:22:09 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.20 misho 65: ROOTFS_SIZE="8400k"
1.1 misho 66:
67: ### RomFS Firmware
68: ROMFS="${DEST}/romfs"
1.2 misho 69: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
1.3.2.22! misho 70:
! 71: ROMFS_USR="${ROMFS}/usr"
1.1 misho 72: ROMFS_IMG="elwix-firmware.sys"
1.3.2.16 misho 73: ROMFS_SIZE="78m"
1.1 misho 74:
1.3.2.22! misho 75: ROMFS_USR2="${ROMFS}/usr/local"
! 76: ROMFS_IMG2="elwix-firmware2.sys"
! 77: ROMFS_SIZE2="78m"
! 78:
1.1 misho 79: ### FS Image
1.3.2.22! misho 80: BUILD_FRMIMG="NO"
1.1 misho 81: FS="${DEST}/elwix.fs"
1.2 misho 82: FS_ETC="${CFGDIR}/etc/default"
83: ELWIX_FS="${CFGDIR}/elwix_fs.conf"
84: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
85: OS="ELWIX-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1 misho 86:
87: ### Make OS Image
1.2 misho 88: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
89: MD5CHK="${IMGNAME}.md5"
90: SHA1CHK="${IMGNAME}.sha1"
91: IMG="${IMGNAME}.img"
92: IMG_SIZE=62592
1.1 misho 93:
94: ### Cross
1.2 misho 95: CBUILD="${DEST}/cross_build.sh"
96: CGBUILD="${DEST}/cross_gbuild.sh"
1.3.2.12 misho 97: CEXEC="${DEST}/cross_exec.sh"
1.3 misho 98: CENV="${DEST}/cross_env.sh"
1.2 misho 99:
100: CROSS_FT_ATH="${BSDTOOLS}/ath"
101: CROSS_FT_IPW="${BSDTOOLS}/ipw"
102: CROSS_FT_IWI="${BSDTOOLS}/iwi"
103: CROSS_FT_MWL="${BSDTOOLS}/mwl"
104: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
105: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
1.3.2.5 misho 106: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2 misho 107:
1.1 misho 108: CROSS_AXL="../gpl/axl"
1.3.2.7 misho 109: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
1.2 misho 110: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
111: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
112: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1 misho 113:
114: CROSS_AITIO="../libaitio"
1.3.2.7 misho 115: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local"
1.2 misho 116: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1 misho 117:
118: CROSS_AITCRC="../libaitcrc"
1.3.2.7 misho 119: AITCRC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 120: #ELWIX_LIB_AITCRC="${CROSS_AITCRC}/lib/libaitcrc.so"
1.1 misho 121:
122: CROSS_AITCFG="../libaitcfg"
1.3.2.7 misho 123: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 124: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1 misho 125:
126: CROSS_AITSESS="../libaitsess"
1.3.2.7 misho 127: AITSESS_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 128: #ELWIX_LIB_AITSESS="${CROSS_AITSESS}/lib/libaitsess.so"
1.1 misho 129:
130: CROSS_AITRPC="../libaitrpc"
1.3.2.7 misho 131: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 132: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
133:
134: CROSS_AITSCHED="../libaitsched"
1.3.2.18 misho 135: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local"
1.2 misho 136: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1 misho 137:
1.3.2.11 misho 138: CROSS_AITWWW="../libaitwww"
139: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local"
140: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
141:
1.1 misho 142: CROSS_AITPELCO="../libaitpelco"
1.3.2.7 misho 143: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 144: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1 misho 145:
146: CROSS_AITSYNC="../libaitsync"
1.3.2.7 misho 147: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 148: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1 misho 149:
150: CROSS_AITCLI="../libaitcli"
1.3.2.7 misho 151: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 152: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
153:
1.3.2.2 misho 154: CROSS_AITMQTT="../libaitmqtt"
1.3.2.7 misho 155: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local"
1.3.2.11 misho 156: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
1.3.2.2 misho 157:
1.2 misho 158: CROSS_EMBEDTOOLS="../embedtools"
1.3.2.7 misho 159: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 160:
161: CROSS_ANSH="../ansh"
1.3.2.7 misho 162: ANSH_CFG="./configure --prefix=${WORLD}/usr/local"
1.2 misho 163:
1.3.2.17 misho 164: CROSS_MQTT="../mqtt"
165: MQTT_CFG="./configure --prefix=${WORLD}/usr/local"
166:
1.2 misho 167: CROSS_3TH="../embedaddon"
1.1 misho 168:
169: #####
170: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
171: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>