Annotation of elwix/config/rc.elwix.i386, revision 1.1.2.2

1.1.2.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.1.2.2 ! misho       6: # $Id: rc.elwix.i386,v 1.1.2.1 2014/01/14 09:03:29 misho Exp $
1.1.2.1   misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
                     10: VERSION="2.2"
                     11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
                     15: TARGET="i386"
                     16: TARGET_ARCH="i386"
                     17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
                     18: PARALLEL_BUILD="-j2"
                     19: 
                     20: CURDIR=$(pwd)
                     21: CFGDIR="${CURDIR}/config"
                     22: 
1.1.2.2 ! misho      23: SRCCONF="${CFGDIR}/src_${TARGET}.conf"
        !            24: MAKECONF="${CFGDIR}/make_${TARGET}.conf"
1.1.2.1   misho      25: 
                     26: PREDIR=".."
                     27: 
                     28: # Dont change TOPDIR!!!
                     29: TOPDIR="${CURDIR}/build/${VERSION}"
                     30: #
                     31: BSDSRC="/home/fbsd_work.src/src"
                     32: PKGSRC="/home/pkgsrc"
                     33: ADDSRC="/home/misho/work/embedaddon"
                     34: 
                     35: REL="${TOPDIR}/release"
                     36: DEST="${TOPDIR}/destdir"
                     37: OBJS="${TOPDIR}/obj"
                     38: ADIR="${TOPDIR}/arch"
                     39: 
                     40: WORLD="${ADIR}/${TARGET_ARCH}/world"
                     41: KERN="${ADIR}/${TARGET_ARCH}/kernel"
                     42: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
                     43: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     44: AIT="${ADIR}/${TARGET_ARCH}"
                     45: BSDOBJ="${OBJS}/${TARGET_ARCH}"
                     46: BSDTOOLS="${BSDSRC}/tools/tools"
                     47: PKGDIR="${WORLD}/elwix/pkg"
                     48: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
                     49: 
                     50: ### Kernel
                     51: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
                     52: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
                     53: 
                     54: KERNHINT="ELWIX_${TARGET_ARCH}.hints"
                     55: 
                     56: KERNEL="${KERN}/boot/kernel/kernel"
                     57: KERNCONF="ELWIX_${TARGET_ARCH}"
                     58: 
                     59: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     60: KERNCONF_ROOTFS="ELWIX_${TARGET_ARCH}_ROOTFS"
                     61: 
                     62: ### Rootfs
                     63: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     64: ROOTFS_CONF="elwix_firmware.conf"
                     65: 
                     66: ROOTFS="${DEST}/rootfs"
                     67: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     68: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     69: 
                     70: ROOTFS_KERN="kernel_rootfs.gz"
                     71: 
                     72: ROOTFS_IMG="rootfs.img"
                     73: ROOTFS_SIZE="9000k"
                     74: 
                     75: ### tools Firmware
                     76: LOCALFS_IMG="elwix-pkg.frm"
                     77: 
                     78: ### 3th party
                     79: ROMFS_USR2="${DEST}/romfs.pkg"
                     80: ROMFS_IMG2="elwix-firmware2.sys"
                     81: #ROMFS_SIZE2="40m"
                     82: 
                     83: ### RomFS Firmware
                     84: ROMFS="${DEST}/romfs"
                     85: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     86: 
                     87: ROMFS_USR="${ROMFS}/usr"
                     88: ROMFS_IMG="elwix-firmware.sys"
                     89: #ROMFS_SIZE="38m"
                     90: 
                     91: ### Base Firmware
                     92: BASEFS="${DEST}/base"
                     93: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                     94: 
                     95: BASE_FS="${DEST}/base.fs"
                     96: BASE_ETC="${CFGDIR}/etc/default"
                     97: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     98: 
                     99: ### FS Image
                    100: FS="${DEST}/elwix.fs"
                    101: FS_ETC="${CFGDIR}/etc/default"
                    102: OS="ELWIX-${VERSION}_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    103: 
                    104: FS_EXT="${DEST}/elwix_ext.fs"
                    105: FS_EXT_ETC="${CFGDIR}/etc/default"
                    106: OS_EXT="ELWIX-${VERSION}_ext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    107: 
                    108: ### Make OS Image
                    109: IMG_SIZE=62592
                    110: IMG_SIZE128=125100
                    111: 
                    112: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    113: 
                    114: ### Cross
                    115: CBUILD="${DEST}/cross_build.sh"
                    116: CGBUILD="${DEST}/cross_gbuild.sh"
                    117: CEXEC="${DEST}/cross_exec.sh"
                    118: CENV="${DEST}/cross_env.sh"
                    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"
                    126: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
                    127: 
                    128: CROSS_AXL="../gpl/axl"
                    129: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
                    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.*"
                    133: 
                    134: CROSS_ELWIX="../libelwix"
                    135: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    136: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    137: 
                    138: CROSS_AITIO="../libaitio"
                    139: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    140: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
                    141: 
                    142: CROSS_AITCFG="../libaitcfg"
                    143: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    144: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
                    145: 
                    146: CROSS_AITRPC="../libaitrpc"
                    147: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    148: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    149: 
                    150: CROSS_AITSCHED="../libaitsched"
                    151: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    152: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
                    153: 
                    154: CROSS_AITWWW="../libaitwww"
                    155: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    156: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    157: 
                    158: CROSS_AITPELCO="../libaitpelco"
                    159: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    160: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
                    161: 
                    162: CROSS_AITSYNC="../libaitsync"
                    163: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    164: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
                    165: 
                    166: CROSS_AITCLI="../libaitcli"
                    167: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    168: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    169: 
                    170: CROSS_AITMQTT="../libaitmqtt"
                    171: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    172: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    173: 
                    174: CROSS_EMBEDTOOLS="../embedtools"
                    175: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    176: 
                    177: CROSS_ANSH="../ansh"
                    178: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    179: 
                    180: CROSS_MQTT="../mqtt"
                    181: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    182: 
                    183: CROSS_WIFINATOR="../wifinator"
                    184: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    185: 
                    186: #####
                    187: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    188: #####

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