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

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

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