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

1.2       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.2 ! misho       6: # $Id: rc.elwix.i386,v 1.3.2.1 2017/06/08 23:36:53 misho Exp $
1.2       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.3.2.1   misho      10: VERSION="2.6_x86"
1.2       misho      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: 
                     23: SRCCONF="${CFGDIR}/src_${TARGET}.conf"
                     24: MAKECONF="${CFGDIR}/make_${TARGET}.conf"
                     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: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
                     44: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     45: AIT="${ADIR}/${TARGET_ARCH}"
                     46: BSDOBJ="${OBJS}/${TARGET_ARCH}"
                     47: BSDTOOLS="${BSDSRC}/tools/tools"
                     48: PKGDIR="${WORLD}/elwix/pkg"
                     49: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
                     50: 
1.3       misho      51: ### Compile depended tools for uboot and etc ...
                     52: COMPILE_DEPTOOLS="YES"
                     53: 
1.2       misho      54: ### Kernel
                     55: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
                     56: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
                     57: 
                     58: KERNHINT="ELWIX_i386.hints"
                     59: 
                     60: KERNEL="${KERN}/boot/kernel/kernel"
                     61: KERNCONF="ELWIX_i386"
                     62: 
                     63: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     64: KERNCONF_ROOTFS="ELWIX_i386_ROOTFS"
                     65: 
                     66: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
                     67: KERNCONF_NFS="ELWIX_i386_NFS"
                     68: 
                     69: ### Rootfs
                     70: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     71: ROOTFS_CONF="elwix_firmware.conf"
                     72: 
                     73: ROOTFS="${DEST}/rootfs"
                     74: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     75: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     76: 
                     77: ROOTFS_KERN="kernel_rootfs.gz"
                     78: 
                     79: ROOTFS_IMG="rootfs.img"
1.3       misho      80: ROOTFS_SIZE="9600k"
1.2       misho      81: 
                     82: ### tools Firmware
                     83: LOCALFS_IMG="elwix-pkg.frm"
                     84: 
                     85: ### 3th party
                     86: ROMFS_USR2="${DEST}/romfs.pkg"
                     87: ROMFS_IMG2="elwix-firmware2.sys"
                     88: #ROMFS_SIZE2="40m"
                     89: 
                     90: ### RomFS Firmware
                     91: ROMFS="${DEST}/romfs"
                     92: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     93: 
                     94: ROMFS_USR="${ROMFS}/usr"
                     95: ROMFS_IMG="elwix-firmware.sys"
                     96: #ROMFS_SIZE="38m"
                     97: 
                     98: ### Base Firmware
                     99: BASEFS="${DEST}/base"
                    100: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                    101: 
                    102: BASE_FS="${DEST}/base.fs"
                    103: BASE_ETC="${CFGDIR}/etc/default"
                    104: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    105: 
                    106: ### FS Image
                    107: FS="${DEST}/elwix.fs"
                    108: FS_ETC="${CFGDIR}/etc/default"
1.3       misho     109: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     110: 
                    111: FS_EXT="${DEST}/elwix_ext.fs"
                    112: FS_EXT_ETC="${CFGDIR}/etc/default"
1.3       misho     113: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     114: 
                    115: ### Make OS Image
                    116: IMG_SIZE=62592
                    117: IMG_SIZE128=125100
                    118: 
                    119: CFG_NAND_SIZE=262144
                    120: 
                    121: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    122: 
                    123: ### Cross
                    124: CBUILD="${DEST}/cross_build.sh"
                    125: CGBUILD="${DEST}/cross_gbuild.sh"
                    126: CEXEC="${DEST}/cross_exec.sh"
                    127: CENV="${DEST}/cross_env.sh"
                    128: 
                    129: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    130: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    131: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    132: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    133: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    134: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
                    135: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.3.2.2 ! misho     136: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
        !           137: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
        !           138: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
        !           139: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
        !           140: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
        !           141: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
        !           142: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
1.2       misho     143: 
                    144: #CROSS_AXL="../gpl/axl"
                    145: #AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
                    146: ##AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
                    147: ##AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
                    148: ##AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
                    149: 
                    150: CROSS_ELWIX="../libelwix"
                    151: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    152: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    153: 
                    154: CROSS_AITIO="../libaitio"
                    155: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    156: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
                    157: 
                    158: CROSS_AITCFG="../libaitcfg"
                    159: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    160: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
                    161: 
                    162: CROSS_AITRPC="../libaitrpc"
                    163: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    164: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    165: 
                    166: CROSS_AITSCHED="../libaitsched"
                    167: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    168: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
                    169: 
                    170: CROSS_AITWWW="../libaitwww"
                    171: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    172: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    173: 
                    174: CROSS_AITPELCO="../libaitpelco"
                    175: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    176: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
                    177: 
                    178: CROSS_AITSYNC="../libaitsync"
                    179: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    180: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
                    181: 
                    182: CROSS_AITCLI="../libaitcli"
                    183: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    184: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    185: 
                    186: CROSS_AITMQTT="../libaitmqtt"
                    187: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    188: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    189: 
                    190: CROSS_EMBEDTOOLS="../embedtools"
                    191: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    192: 
                    193: CROSS_ANSH="../ansh"
                    194: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    195: 
                    196: CROSS_MQTT="../mqtt"
                    197: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    198: 
                    199: CROSS_WIFINATOR="../wifinator"
                    200: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    201: 
                    202: CROSS_TFTPD="../tftpd"
                    203: TFTPD_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    204: 
                    205: #####
                    206: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    207: #####

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