Annotation of elwix/config/rc.elwix, revision 1.7.2.8

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.7.2.8 ! misho       6: # $Id: rc.elwix,v 1.7.2.7 2013/07/29 08:52:16 misho Exp $
1.1       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.7.2.1   misho      10: VERSION="1.9"
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.7.2.1   misho      18: #PARALLEL_BUILD=2
                     19: PARALLEL_BUILD=1
1.1       misho      20: 
                     21: CURDIR=$(pwd)
                     22: CFGDIR="${CURDIR}/config"
                     23: 
                     24: PREDIR=".."
                     25: 
                     26: # Dont change TOPDIR!!!
1.4       misho      27: TOPDIR="${CURDIR}/build/${VERSION}"
1.1       misho      28: #
1.4       misho      29: BSDSRC="/home/fbsd_work.src/src"
                     30: PKGSRC="/home/pkgsrc"
1.1       misho      31: 
                     32: REL="${TOPDIR}/release"
                     33: DEST="${TOPDIR}/destdir"
                     34: OBJS="${TOPDIR}/obj"
                     35: ADIR="${TOPDIR}/arch"
                     36: 
                     37: WORLD="${ADIR}/${TARGET_ARCH}/world"
                     38: KERN="${ADIR}/${TARGET_ARCH}/kernel"
1.2       misho      39: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     40: AIT="${ADIR}/${TARGET_ARCH}"
1.1       misho      41: BSDOBJ="${OBJS}/${TARGET_ARCH}"
1.2       misho      42: BSDTOOLS="${BSDSRC}/tools/tools"
1.4       misho      43: PKGDIR="${WORLD}/elwix/pkg"
                     44: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
1.1       misho      45: 
                     46: ### Kernel
                     47: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
1.3       misho      48: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
1.1       misho      49: 
                     50: KERNEL="${KERN}/boot/kernel/kernel"
1.7.2.2   misho      51: KERNCONF="ELWIX_${TARGET_ARCH}"
                     52: KERNHINT="ELWIX_${TARGET_ARCH}.hints"
1.1       misho      53: 
                     54: ### RomFS Firmware
                     55: ROMFS="${DEST}/romfs"
1.7.2.8 ! misho      56: ELWIX_ROMFS="${CFGDIR}/elwix_base.conf"
1.4       misho      57: 
                     58: ROMFS_USR2="${ROMFS}/usr/local"
                     59: ROMFS_IMG2="elwix-firmware2.sys"
1.5       misho      60: #ROMFS_SIZE2="40m"
1.1       misho      61: 
                     62: ### FS Image
1.2       misho      63: FS_ETC="${CFGDIR}/etc/default"
                     64: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
1.4       misho      65: 
                     66: FS="${DEST}/elwix.fs"
1.2       misho      67: OS="ELWIX-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1       misho      68: 
1.4       misho      69: FS_LITE="${DEST}/elwix_lite.fs"
                     70: OS_LITE="ELWIX_lite-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     71: 
1.5       misho      72: FS_LITE128="${DEST}/elwix_lite128.fs"
                     73: OS_LITE128="ELWIX_lite_128-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     74: 
1.1       misho      75: ### Make OS Image
1.4       misho      76: IMG_SIZE=62592
1.5       misho      77: IMG_SIZE128=125100
1.4       misho      78: 
1.2       misho      79: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                     80: MD5CHK="${IMGNAME}.md5"
                     81: SHA1CHK="${IMGNAME}.sha1"
                     82: IMG="${IMGNAME}.img"
1.4       misho      83: 
                     84: IMGNAME_LITE="${REL}/ELWIX_lite-${VERSION}_${TARGET_ARCH}"
                     85: MD5CHK_LITE="${IMGNAME_LITE}.md5"
                     86: SHA1CHK_LITE="${IMGNAME_LITE}.sha1"
                     87: IMG_LITE="${IMGNAME_LITE}.img"
1.1       misho      88: 
1.5       misho      89: IMGNAME_LITE128="${REL}/ELWIX_lite_128-${VERSION}_${TARGET_ARCH}"
                     90: MD5CHK_LITE128="${IMGNAME_LITE128}.md5"
                     91: SHA1CHK_LITE128="${IMGNAME_LITE128}.sha1"
                     92: IMG_LITE128="${IMGNAME_LITE128}.img"
                     93: 
1.1       misho      94: ### Cross
1.2       misho      95: CBUILD="${DEST}/cross_build.sh"
                     96: CGBUILD="${DEST}/cross_gbuild.sh"
1.4       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.4       misho     106: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2       misho     107: 
1.1       misho     108: CROSS_AXL="../gpl/axl"
1.4       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: 
1.5       misho     114: CROSS_ELWIX="../libelwix"
1.7.2.2   misho     115: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.5       misho     116: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    117: 
1.1       misho     118: CROSS_AITIO="../libaitio"
1.7.2.2   misho     119: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     120: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1       misho     121: 
                    122: CROSS_AITCFG="../libaitcfg"
1.7.2.2   misho     123: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     124: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1       misho     125: 
                    126: CROSS_AITRPC="../libaitrpc"
1.7.2.2   misho     127: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     128: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    129: 
                    130: CROSS_AITSCHED="../libaitsched"
1.7.2.2   misho     131: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     132: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1       misho     133: 
1.4       misho     134: CROSS_AITWWW="../libaitwww"
1.7.2.2   misho     135: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     136: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    137: 
1.1       misho     138: CROSS_AITPELCO="../libaitpelco"
1.7.2.2   misho     139: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     140: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1       misho     141: 
                    142: CROSS_AITSYNC="../libaitsync"
1.7.2.2   misho     143: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     144: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1       misho     145: 
                    146: CROSS_AITCLI="../libaitcli"
1.7.2.2   misho     147: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     148: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    149: 
1.4       misho     150: CROSS_AITMQTT="../libaitmqtt"
1.7.2.2   misho     151: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     152: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    153: 
1.2       misho     154: CROSS_EMBEDTOOLS="../embedtools"
1.7.2.2   misho     155: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     156: 
                    157: CROSS_ANSH="../ansh"
1.7.2.2   misho     158: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     159: 
                    160: CROSS_MQTT="../mqtt"
1.7.2.2   misho     161: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     162: 
1.7.2.3   misho     163: CROSS_WIFINATOR="../wifinator"
                    164: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    165: 
1.2       misho     166: CROSS_3TH="../embedaddon"
1.1       misho     167: 
                    168: #####
                    169: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    170: #####

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>