Annotation of elwix/config/rc.elwix.mips_alfan2, revision 1.4

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.4     ! misho       6: # $Id: rc.elwix.mips_alfan2,v 1.3.2.2 2017/06/15 22:16:10 misho Exp $
1.2       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.3       misho      10: VERSION="2.3_alfa_n2"
1.2       misho      11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
                     15: TARGET="mips"
                     16: TARGET_ARCH="mips"
                     17: TARGET_CPUTYPE="mips32"
                     18: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
                     19: PARALLEL_BUILD="-j2"
                     20: 
                     21: CURDIR=$(pwd)
                     22: CFGDIR="${CURDIR}/config"
                     23: 
                     24: SRCCONF="${CFGDIR}/src_mips_alfa_n2.conf"
                     25: MAKECONF="${CFGDIR}/make_mips_alfa_n2.conf"
                     26: 
                     27: PREDIR=".."
                     28: 
                     29: # Dont change TOPDIR!!!
                     30: TOPDIR="${CURDIR}/build/${VERSION}"
                     31: #
                     32: BSDSRC="/home/fbsd_work.src/src"
                     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: 
                     51: ### Kernel
                     52: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
                     53: KERNDEVHINTS="${BSDKERNCONF}/PB92.hints"
                     54: 
                     55: KERNHINT="ELWIX_ALFA_N2.hints"
                     56: 
                     57: KERNEL="${KERN}/boot/kernel/kernel"
                     58: KERNCONF="ELWIX_ALFA_N2"
                     59: 
                     60: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     61: KERNCONF_ROOTFS="ELWIX_ALFA_N2_ROOTFS"
                     62: 
                     63: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
                     64: KERNCONF_NFS="ELWIX_ALFA_N2_NFS"
                     65: 
                     66: ### Rootfs
                     67: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     68: ROOTFS_CONF="elwix_firmware_alfa_n2.conf"
                     69: 
                     70: ROOTFS="${DEST}/rootfs"
                     71: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     72: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs_alfa_n2.conf"
                     73: 
                     74: ROOTFS_KERN="kernel_rootfs.gz"
                     75: 
                     76: ROOTFS_IMG="rootfs.img"
                     77: ROOTFS_SIZE="9000k"
                     78: 
                     79: ### tools Firmware
                     80: LOCALFS_IMG="elwix-pkg.frm"
                     81: 
                     82: ### 3th party
                     83: ROMFS_USR2="${DEST}/romfs.pkg"
                     84: ROMFS_IMG2="elwix-firmware2.sys"
                     85: #ROMFS_SIZE2="40m"
                     86: 
                     87: ### RomFS Firmware
                     88: ROMFS="${DEST}/romfs"
                     89: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     90: 
                     91: ROMFS_USR="${ROMFS}/usr"
                     92: ROMFS_IMG="elwix-firmware.sys"
                     93: #ROMFS_SIZE="38m"
                     94: 
                     95: ### Base Firmware
                     96: BASEFS="${DEST}/base"
                     97: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                     98: 
                     99: BASE_FS="${DEST}/base.fs"
                    100: BASE_ETC="${CFGDIR}/etc/default"
                    101: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    102: 
                    103: ### U-boot base firmware
                    104: UBFS="${DEST}/ubfs"
                    105: ELWIX_UBFS="${CFGDIR}/elwix_uboot.conf"
                    106: 
                    107: UBOOT_FS="${DEST}/uboot.fs"
                    108: UBOOT_ETC="${CFGDIR}/etc/uboot"
                    109: UBOOT_OS="ELWIX-${VERSION}_uboot_6mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    110: 
                    111: ### FS Image
                    112: FS="${DEST}/elwix.fs"
                    113: FS_ETC="${CFGDIR}/etc/default"
                    114: OS="ELWIX-${VERSION}_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    115: 
                    116: FS_EXT="${DEST}/elwix_ext.fs"
                    117: FS_EXT_ETC="${CFGDIR}/etc/default"
                    118: OS_EXT="ELWIX-${VERSION}_ext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                    119: 
                    120: ### Make OS Image
                    121: IMG_SIZE=62592
                    122: IMG_SIZE128=125100
                    123: 
                    124: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    125: 
                    126: ### Make U-boot image
                    127: UB_COMPRESS="lzma"
                    128: UB_COMPRESS_ROOTFS="ulzma"
                    129: # Must be same like into kernel config [ KERNLOADADDR=0x80050000 ]
                    130: # if address variables are commented install2ub.sh automatic detect addresses
                    131: UB_LOADADDR=0x80050000
                    132: UB_ENTRYADDR=0x80050100
                    133: UB_ORDER="be"
                    134: 
                    135: # u-boot rootfs image size
                    136: UB_ROOTFS_SIZE="24m"
                    137: # rootfs size on nand with 64kb blocks
                    138: UB_ROOTFS_NAND_SIZE="6291456"
                    139: UB_KERNEL_NAND_SIZE="1638400"
                    140: UB_CFG_NAND_SIZE="65536"
                    141: 
                    142: ### Cross
                    143: CBUILD="${DEST}/cross_build.sh"
                    144: CGBUILD="${DEST}/cross_gbuild.sh"
                    145: CEXEC="${DEST}/cross_exec.sh"
                    146: CENV="${DEST}/cross_env.sh"
                    147: 
                    148: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    149: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    150: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    151: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    152: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    153: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
                    154: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.4     ! misho     155: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
        !           156: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
        !           157: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
        !           158: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
        !           159: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
        !           160: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
        !           161: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
1.2       misho     162: 
                    163: #CROSS_AXL="../gpl/axl"
                    164: #AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    165: ##AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
                    166: ##AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
                    167: ##AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
                    168: 
                    169: CROSS_ELWIX="../libelwix"
                    170: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    171: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    172: 
                    173: CROSS_AITIO="../libaitio"
                    174: AITIO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    175: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
                    176: 
                    177: CROSS_AITCFG="../libaitcfg"
                    178: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    179: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
                    180: 
                    181: CROSS_AITRPC="../libaitrpc"
                    182: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    183: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    184: 
                    185: CROSS_AITSCHED="../libaitsched"
                    186: AITSCHED_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    187: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
                    188: 
                    189: CROSS_AITWWW="../libaitwww"
                    190: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    191: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    192: 
                    193: CROSS_AITPELCO="../libaitpelco"
                    194: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    195: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
                    196: 
                    197: CROSS_AITSYNC="../libaitsync"
                    198: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    199: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
                    200: 
                    201: CROSS_AITCLI="../libaitcli"
                    202: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    203: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    204: 
                    205: CROSS_AITMQTT="../libaitmqtt"
                    206: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    207: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    208: 
                    209: CROSS_EMBEDTOOLS="../embedtools"
                    210: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    211: 
                    212: CROSS_ANSH="../ansh"
                    213: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    214: 
                    215: CROSS_MQTT="../mqtt"
                    216: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    217: 
                    218: CROSS_WIFINATOR="../wifinator"
                    219: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    220: 
                    221: CROSS_TFTPD="../tftpd"
                    222: TFTPD_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    223: 
                    224: #####
                    225: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    226: #####

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