Annotation of elwix/config/rc.elwix.amd64, revision 1.2.2.5

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.2.2.5 ! misho       6: # $Id: rc.elwix.amd64,v 1.2.2.4 2017/06/18 21:01:32 misho Exp $
1.2       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.2.2.1   misho      10: VERSION="2.6_amd64"
1.2       misho      11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
                     15: TARGET="amd64"
                     16: TARGET_ARCH="amd64"
                     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: ADDSRC="/home/misho/work/embedaddon"
                     33: 
                     34: REL="${TOPDIR}/release"
                     35: DEST="${TOPDIR}/destdir"
                     36: OBJS="${TOPDIR}/obj"
                     37: ADIR="${TOPDIR}/arch"
                     38: 
                     39: WORLD="${ADIR}/${TARGET_ARCH}/world"
                     40: KERN="${ADIR}/${TARGET_ARCH}/kernel"
                     41: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
                     42: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
                     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}/${TARGET_ARCH}.${TARGET_ARCH}/${BSDSRC}/tmp"
                     49: 
                     50: ### Kernel
                     51: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
                     52: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
                     53: 
                     54: KERNHINT="ELWIX_amd64.hints"
                     55: 
                     56: KERNEL="${KERN}/boot/kernel/kernel"
                     57: KERNCONF="ELWIX_amd64"
                     58: 
                     59: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     60: KERNCONF_ROOTFS="ELWIX_amd64_ROOTFS"
                     61: 
                     62: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
                     63: KERNCONF_NFS="ELWIX_amd64_NFS"
                     64: 
                     65: ### Rootfs
                     66: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     67: ROOTFS_CONF="elwix_firmware.conf"
                     68: 
                     69: ROOTFS="${DEST}/rootfs"
                     70: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     71: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     72: 
                     73: ROOTFS_KERN="kernel_rootfs.gz"
                     74: 
                     75: ROOTFS_IMG="rootfs.img"
                     76: ROOTFS_SIZE="12000k"
                     77: 
                     78: ### tools Firmware
                     79: LOCALFS_IMG="elwix-pkg.frm"
                     80: 
                     81: ### 3th party
                     82: ROMFS_USR2="${DEST}/romfs.pkg"
                     83: ROMFS_IMG2="elwix-firmware2.sys"
                     84: #ROMFS_SIZE2="40m"
                     85: 
                     86: ### RomFS Firmware
                     87: ROMFS="${DEST}/romfs"
                     88: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     89: 
                     90: ROMFS_USR="${ROMFS}/usr"
                     91: ROMFS_IMG="elwix-firmware.sys"
                     92: #ROMFS_SIZE="38m"
                     93: 
                     94: ### Base Firmware
                     95: BASEFS="${DEST}/base"
                     96: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                     97: 
                     98: BASE_FS="${DEST}/base.fs"
                     99: BASE_ETC="${CFGDIR}/etc/default"
                    100: BASE_OS="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    101: 
                    102: ### FS Image
                    103: FS="${DEST}/elwix.fs"
                    104: FS_ETC="${CFGDIR}/etc/default"
                    105: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    106: 
                    107: FS_EXT="${DEST}/elwix_ext.fs"
                    108: FS_EXT_ETC="${CFGDIR}/etc/default"
                    109: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    110: 
                    111: ### Make OS Image
                    112: IMG_SIZE=62592
                    113: IMG_SIZE128=125100
1.2.2.4   misho     114: IMG_SIZE256=251496
1.2.2.5 ! misho     115: IMG_SIZE512=500472
1.2       misho     116: 
                    117: CFG_NAND_SIZE=262144
                    118: 
                    119: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    120: 
                    121: ### Cross
                    122: CBUILD="${DEST}/cross_build.sh"
                    123: CGBUILD="${DEST}/cross_gbuild.sh"
                    124: CEXEC="${DEST}/cross_exec.sh"
                    125: CENV="${DEST}/cross_env.sh"
                    126: 
                    127: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    128: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    129: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    130: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    131: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    132: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
                    133: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2.2.2   misho     134: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
                    135: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
                    136: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
                    137: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
                    138: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
                    139: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
                    140: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
1.2       misho     141: 
                    142: CROSS_ELWIX="../libelwix"
                    143: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    144: 
                    145: CROSS_AITIO="../libaitio"
                    146: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    147: 
                    148: CROSS_AITCFG="../libaitcfg"
                    149: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    150: 
                    151: CROSS_AITRPC="../libaitrpc"
                    152: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    153: 
                    154: CROSS_AITSCHED="../libaitsched"
                    155: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    156: 
                    157: CROSS_AITWWW="../libaitwww"
                    158: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    159: 
                    160: CROSS_AITPELCO="../libaitpelco"
                    161: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    162: 
                    163: CROSS_AITSYNC="../libaitsync"
                    164: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    165: 
                    166: CROSS_AITCLI="../libaitcli"
                    167: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    168: 
                    169: CROSS_AITMQTT="../libaitmqtt"
                    170: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    171: 
                    172: CROSS_EMBEDTOOLS="../embedtools"
                    173: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    174: 
                    175: CROSS_ANSH="../ansh"
                    176: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    177: 
                    178: CROSS_MQTT="../mqtt"
                    179: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    180: 
                    181: CROSS_WIFINATOR="../wifinator"
                    182: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    183: 
                    184: CROSS_TFTPD="../tftpd"
                    185: TFTPD_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    186: 
                    187: #####
                    188: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    189: #####

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