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

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.17! misho       6: # $Id: rc.elwix,v 1.7.2.16 2013/08/02 13:27:57 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.7.2.15  misho      39: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
1.2       misho      40: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     41: AIT="${ADIR}/${TARGET_ARCH}"
1.1       misho      42: BSDOBJ="${OBJS}/${TARGET_ARCH}"
1.2       misho      43: BSDTOOLS="${BSDSRC}/tools/tools"
1.4       misho      44: PKGDIR="${WORLD}/elwix/pkg"
                     45: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
1.1       misho      46: 
1.7.2.13  misho      47: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
                     48: 
1.1       misho      49: ### Kernel
                     50: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
1.3       misho      51: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
1.1       misho      52: 
1.7.2.15  misho      53: KERNHINT="ELWIX_${TARGET_ARCH}.hints"
                     54: 
1.1       misho      55: KERNEL="${KERN}/boot/kernel/kernel"
1.7.2.2   misho      56: KERNCONF="ELWIX_${TARGET_ARCH}"
1.7.2.15  misho      57: 
                     58: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     59: KERNCONF_ROOTFS="ELWIX_${TARGET_ARCH}_ROOTFS"
1.1       misho      60: 
1.7.2.16  misho      61: ### Rootfs
                     62: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     63: ROOTFS_CONF="elwix_firmware.conf"
                     64: 
                     65: ROOTFS="${DEST}/rootfs"
                     66: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     67: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     68: 
                     69: ROOTFS_KERN="kernel.gz"
                     70: 
                     71: ROOTFS_IMG="rootfs.img"
                     72: ROOTFS_SIZE="9000k"
                     73: 
1.7.2.14  misho      74: ### 3th party
                     75: ROMFS_USR2="${DEST}/romfs.pkg"
                     76: ROMFS_IMG2="elwix-firmware2.sys"
                     77: #ROMFS_SIZE2="40m"
                     78: 
1.7.2.13  misho      79: ### Base Firmware
1.7.2.12  misho      80: BASEFS="${DEST}/base"
                     81: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
1.4       misho      82: 
1.7.2.13  misho      83: BASE_FS="${DEST}/base.fs"
                     84: BASE_ETC="${CFGDIR}/etc/default"
                     85: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     86: 
                     87: BASE_FS128="${DEST}/base.fs128"
                     88: BASE_ETC128="${CFGDIR}/etc/default"
                     89: BASE_OS128="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1       misho      90: 
1.7.2.17! misho      91: ### RomFS Firmware
        !            92: ROMFS="${DEST}/romfs"
        !            93: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
        !            94: 
        !            95: ROMFS_USR="${ROMFS}/usr"
        !            96: ROMFS_IMG="elwix-firmware.sys"
        !            97: #ROMFS_SIZE="38m"
        !            98: 
1.1       misho      99: ### FS Image
1.2       misho     100: FS_ETC="${CFGDIR}/etc/default"
1.4       misho     101: 
1.2       misho     102: OS="ELWIX-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.7.2.10  misho     103: FS="${DEST}/elwix.fs"
                    104: 
1.1       misho     105: ### Make OS Image
1.4       misho     106: IMG_SIZE=62592
1.5       misho     107: IMG_SIZE128=125100
1.4       misho     108: 
1.2       misho     109: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    110: MD5CHK="${IMGNAME}.md5"
                    111: SHA1CHK="${IMGNAME}.sha1"
                    112: IMG="${IMGNAME}.img"
1.4       misho     113: 
1.1       misho     114: ### Cross
1.2       misho     115: CBUILD="${DEST}/cross_build.sh"
                    116: CGBUILD="${DEST}/cross_gbuild.sh"
1.4       misho     117: CEXEC="${DEST}/cross_exec.sh"
1.3       misho     118: CENV="${DEST}/cross_env.sh"
1.2       misho     119: 
                    120: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    121: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    122: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    123: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    124: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    125: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
1.4       misho     126: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2       misho     127: 
1.1       misho     128: CROSS_AXL="../gpl/axl"
1.4       misho     129: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
1.2       misho     130: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
                    131: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
                    132: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1       misho     133: 
1.5       misho     134: CROSS_ELWIX="../libelwix"
1.7.2.2   misho     135: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.5       misho     136: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    137: 
1.1       misho     138: CROSS_AITIO="../libaitio"
1.7.2.2   misho     139: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     140: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1       misho     141: 
                    142: CROSS_AITCFG="../libaitcfg"
1.7.2.2   misho     143: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     144: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1       misho     145: 
                    146: CROSS_AITRPC="../libaitrpc"
1.7.2.2   misho     147: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     148: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    149: 
                    150: CROSS_AITSCHED="../libaitsched"
1.7.2.2   misho     151: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     152: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1       misho     153: 
1.4       misho     154: CROSS_AITWWW="../libaitwww"
1.7.2.2   misho     155: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     156: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    157: 
1.1       misho     158: CROSS_AITPELCO="../libaitpelco"
1.7.2.2   misho     159: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     160: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1       misho     161: 
                    162: CROSS_AITSYNC="../libaitsync"
1.7.2.2   misho     163: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     164: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1       misho     165: 
                    166: CROSS_AITCLI="../libaitcli"
1.7.2.2   misho     167: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     168: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    169: 
1.4       misho     170: CROSS_AITMQTT="../libaitmqtt"
1.7.2.2   misho     171: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     172: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    173: 
1.2       misho     174: CROSS_EMBEDTOOLS="../embedtools"
1.7.2.2   misho     175: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     176: 
                    177: CROSS_ANSH="../ansh"
1.7.2.2   misho     178: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     179: 
                    180: CROSS_MQTT="../mqtt"
1.7.2.2   misho     181: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     182: 
1.7.2.3   misho     183: CROSS_WIFINATOR="../wifinator"
                    184: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    185: 
1.2       misho     186: CROSS_3TH="../embedaddon"
1.1       misho     187: 
                    188: #####
                    189: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    190: #####

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