Annotation of elwix/config/rc.elwix.mips_alfan2, revision 1.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: #
! 6: # $Id: rc.elwix.mips_alfan2,v 1.1.2.23 2014/05/26 23:00:27 misho Exp $
! 7: #
! 8: ELWIX_IS_CONFIGURED="YES"
! 9:
! 10: VERSION="2.2_alfa_n2"
! 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: PKGSRC="/home/pkgsrc"
! 34: ADDSRC="/home/misho/work/embedaddon"
! 35:
! 36: REL="${TOPDIR}/release"
! 37: DEST="${TOPDIR}/destdir"
! 38: OBJS="${TOPDIR}/obj"
! 39: ADIR="${TOPDIR}/arch"
! 40:
! 41: WORLD="${ADIR}/${TARGET_ARCH}/world"
! 42: KERN="${ADIR}/${TARGET_ARCH}/kernel"
! 43: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
! 44: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
! 45: PKG="${ADIR}/${TARGET_ARCH}/pkg"
! 46: AIT="${ADIR}/${TARGET_ARCH}"
! 47: BSDOBJ="${OBJS}/${TARGET_ARCH}"
! 48: BSDTOOLS="${BSDSRC}/tools/tools"
! 49: PKGDIR="${WORLD}/elwix/pkg"
! 50: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
! 51:
! 52: ### Kernel
! 53: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
! 54: KERNDEVHINTS="${BSDKERNCONF}/PB92.hints"
! 55:
! 56: KERNHINT="ELWIX_ALFA_N2.hints"
! 57:
! 58: KERNEL="${KERN}/boot/kernel/kernel"
! 59: KERNCONF="ELWIX_ALFA_N2"
! 60:
! 61: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
! 62: KERNCONF_ROOTFS="ELWIX_ALFA_N2_ROOTFS"
! 63:
! 64: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
! 65: KERNCONF_NFS="ELWIX_ALFA_N2_NFS"
! 66:
! 67: ### Rootfs
! 68: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
! 69: ROOTFS_CONF="elwix_firmware_alfa_n2.conf"
! 70:
! 71: ROOTFS="${DEST}/rootfs"
! 72: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
! 73: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs_alfa_n2.conf"
! 74:
! 75: ROOTFS_KERN="kernel_rootfs.gz"
! 76:
! 77: ROOTFS_IMG="rootfs.img"
! 78: ROOTFS_SIZE="9000k"
! 79:
! 80: ### tools Firmware
! 81: LOCALFS_IMG="elwix-pkg.frm"
! 82:
! 83: ### 3th party
! 84: ROMFS_USR2="${DEST}/romfs.pkg"
! 85: ROMFS_IMG2="elwix-firmware2.sys"
! 86: #ROMFS_SIZE2="40m"
! 87:
! 88: ### RomFS Firmware
! 89: ROMFS="${DEST}/romfs"
! 90: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
! 91:
! 92: ROMFS_USR="${ROMFS}/usr"
! 93: ROMFS_IMG="elwix-firmware.sys"
! 94: #ROMFS_SIZE="38m"
! 95:
! 96: ### Base Firmware
! 97: BASEFS="${DEST}/base"
! 98: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
! 99:
! 100: BASE_FS="${DEST}/base.fs"
! 101: BASE_ETC="${CFGDIR}/etc/default"
! 102: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
! 103:
! 104: ### U-boot base firmware
! 105: UBFS="${DEST}/ubfs"
! 106: ELWIX_UBFS="${CFGDIR}/elwix_uboot.conf"
! 107:
! 108: UBOOT_FS="${DEST}/uboot.fs"
! 109: UBOOT_ETC="${CFGDIR}/etc/uboot"
! 110: UBOOT_OS="ELWIX-${VERSION}_uboot_6mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
! 111:
! 112: ### FS Image
! 113: FS="${DEST}/elwix.fs"
! 114: FS_ETC="${CFGDIR}/etc/default"
! 115: OS="ELWIX-${VERSION}_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
! 116:
! 117: FS_EXT="${DEST}/elwix_ext.fs"
! 118: FS_EXT_ETC="${CFGDIR}/etc/default"
! 119: OS_EXT="ELWIX-${VERSION}_ext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
! 120:
! 121: ### Make OS Image
! 122: IMG_SIZE=62592
! 123: IMG_SIZE128=125100
! 124:
! 125: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
! 126:
! 127: ### Make U-boot image
! 128: UB_COMPRESS="lzma"
! 129: UB_COMPRESS_ROOTFS="ulzma"
! 130: # Must be same like into kernel config [ KERNLOADADDR=0x80050000 ]
! 131: # if address variables are commented install2ub.sh automatic detect addresses
! 132: UB_LOADADDR=0x80050000
! 133: UB_ENTRYADDR=0x80050100
! 134: UB_ORDER="be"
! 135:
! 136: # u-boot rootfs image size
! 137: UB_ROOTFS_SIZE="24m"
! 138: # rootfs size on nand with 64kb blocks
! 139: UB_ROOTFS_NAND_SIZE="6291456"
! 140: UB_KERNEL_NAND_SIZE="1638400"
! 141: UB_CFG_NAND_SIZE="65536"
! 142:
! 143: ### Cross
! 144: CBUILD="${DEST}/cross_build.sh"
! 145: CGBUILD="${DEST}/cross_gbuild.sh"
! 146: CEXEC="${DEST}/cross_exec.sh"
! 147: CENV="${DEST}/cross_env.sh"
! 148:
! 149: CROSS_FT_ATH="${BSDTOOLS}/ath"
! 150: CROSS_FT_IPW="${BSDTOOLS}/ipw"
! 151: CROSS_FT_IWI="${BSDTOOLS}/iwi"
! 152: CROSS_FT_MWL="${BSDTOOLS}/mwl"
! 153: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
! 154: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
! 155: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
! 156:
! 157: #CROSS_AXL="../gpl/axl"
! 158: #AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 159: ##AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
! 160: ##AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
! 161: ##AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
! 162:
! 163: CROSS_ELWIX="../libelwix"
! 164: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 165: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
! 166:
! 167: CROSS_AITIO="../libaitio"
! 168: AITIO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 169: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
! 170:
! 171: CROSS_AITCFG="../libaitcfg"
! 172: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 173: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
! 174:
! 175: CROSS_AITRPC="../libaitrpc"
! 176: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 177: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
! 178:
! 179: CROSS_AITSCHED="../libaitsched"
! 180: AITSCHED_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 181: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
! 182:
! 183: CROSS_AITWWW="../libaitwww"
! 184: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 185: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
! 186:
! 187: CROSS_AITPELCO="../libaitpelco"
! 188: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 189: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
! 190:
! 191: CROSS_AITSYNC="../libaitsync"
! 192: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 193: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
! 194:
! 195: CROSS_AITCLI="../libaitcli"
! 196: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 197: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
! 198:
! 199: CROSS_AITMQTT="../libaitmqtt"
! 200: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 201: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
! 202:
! 203: CROSS_EMBEDTOOLS="../embedtools"
! 204: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 205:
! 206: CROSS_ANSH="../ansh"
! 207: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 208:
! 209: CROSS_MQTT="../mqtt"
! 210: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/local --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 211:
! 212: CROSS_WIFINATOR="../wifinator"
! 213: WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 214:
! 215: CROSS_TFTPD="../tftpd"
! 216: TFTPD_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
! 217:
! 218: #####
! 219: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
! 220: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>