Annotation of elwix/config/rc.elwix, revision 1.7.4.2

1.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.7.4.2 ! misho       6: # $Id: rc.elwix,v 1.7.4.1 2013/05/07 20:51:08 misho Exp $
1.1       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.7.4.1   misho      10: VERSION="1.9"
1.1       misho      11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
1.7.4.1   misho      15: TARGET="mips"
                     16: TARGET_ARCH="mipseb"
1.3       misho      17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.1       misho      18: PARALLEL_BUILD=2
                     19: 
                     20: CURDIR=$(pwd)
                     21: CFGDIR="${CURDIR}/config"
                     22: 
                     23: PREDIR=".."
                     24: 
                     25: # Dont change TOPDIR!!!
1.4       misho      26: TOPDIR="${CURDIR}/build/${VERSION}"
1.1       misho      27: #
1.4       misho      28: BSDSRC="/home/fbsd_work.src/src"
                     29: PKGSRC="/home/pkgsrc"
1.1       misho      30: 
                     31: REL="${TOPDIR}/release"
                     32: DEST="${TOPDIR}/destdir"
                     33: OBJS="${TOPDIR}/obj"
                     34: ADIR="${TOPDIR}/arch"
                     35: 
                     36: WORLD="${ADIR}/${TARGET_ARCH}/world"
                     37: KERN="${ADIR}/${TARGET_ARCH}/kernel"
1.2       misho      38: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     39: AIT="${ADIR}/${TARGET_ARCH}"
1.1       misho      40: BSDOBJ="${OBJS}/${TARGET_ARCH}"
1.2       misho      41: BSDTOOLS="${BSDSRC}/tools/tools"
1.4       misho      42: PKGDIR="${WORLD}/elwix/pkg"
                     43: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
1.1       misho      44: 
                     45: ### Kernel
                     46: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
1.3       misho      47: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
1.1       misho      48: 
                     49: KERNEL="${KERN}/boot/kernel/kernel"
1.7.4.2 ! misho      50: KERNCONF="ELWIX_AR724X"
1.1       misho      51: 
                     52: ### Rootfs
                     53: MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     54: MKF="Makefile.elwix"
                     55: MKH="Makefile.inc"
                     56: ROOTFS_CONF="elwix_firmware.conf"
                     57: 
                     58: ROOTFS="${DEST}/rootfs"
                     59: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     60: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     61: 
                     62: ROOTFS_KERN="kernel.gz"
                     63: 
                     64: ROOTFS_IMG="rootfs.img"
1.5       misho      65: ROOTFS_SIZE="8000k"
1.1       misho      66: 
                     67: ### RomFS Firmware
                     68: ROMFS="${DEST}/romfs"
1.4       misho      69: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     70: 
1.1       misho      71: ROMFS_USR="${ROMFS}/usr"
                     72: ROMFS_IMG="elwix-firmware.sys"
1.5       misho      73: #ROMFS_SIZE="38m"
1.4       misho      74: 
                     75: ROMFS_USR2="${ROMFS}/usr/local"
                     76: ROMFS_IMG2="elwix-firmware2.sys"
1.5       misho      77: #ROMFS_SIZE2="40m"
1.1       misho      78: 
                     79: ### FS Image
1.2       misho      80: FS_ETC="${CFGDIR}/etc/default"
                     81: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
1.4       misho      82: 
                     83: FS="${DEST}/elwix.fs"
1.2       misho      84: OS="ELWIX-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1       misho      85: 
1.4       misho      86: FS_LITE="${DEST}/elwix_lite.fs"
                     87: OS_LITE="ELWIX_lite-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     88: 
1.5       misho      89: FS_LITE128="${DEST}/elwix_lite128.fs"
                     90: OS_LITE128="ELWIX_lite_128-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     91: 
1.1       misho      92: ### Make OS Image
1.4       misho      93: IMG_SIZE=62592
1.5       misho      94: IMG_SIZE128=125100
1.4       misho      95: 
1.2       misho      96: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                     97: MD5CHK="${IMGNAME}.md5"
                     98: SHA1CHK="${IMGNAME}.sha1"
                     99: IMG="${IMGNAME}.img"
1.4       misho     100: 
                    101: IMGNAME_LITE="${REL}/ELWIX_lite-${VERSION}_${TARGET_ARCH}"
                    102: MD5CHK_LITE="${IMGNAME_LITE}.md5"
                    103: SHA1CHK_LITE="${IMGNAME_LITE}.sha1"
                    104: IMG_LITE="${IMGNAME_LITE}.img"
1.1       misho     105: 
1.5       misho     106: IMGNAME_LITE128="${REL}/ELWIX_lite_128-${VERSION}_${TARGET_ARCH}"
                    107: MD5CHK_LITE128="${IMGNAME_LITE128}.md5"
                    108: SHA1CHK_LITE128="${IMGNAME_LITE128}.sha1"
                    109: IMG_LITE128="${IMGNAME_LITE128}.img"
                    110: 
1.1       misho     111: ### Cross
1.2       misho     112: CBUILD="${DEST}/cross_build.sh"
                    113: CGBUILD="${DEST}/cross_gbuild.sh"
1.4       misho     114: CEXEC="${DEST}/cross_exec.sh"
1.3       misho     115: CENV="${DEST}/cross_env.sh"
1.2       misho     116: 
                    117: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    118: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    119: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    120: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    121: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    122: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
1.4       misho     123: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2       misho     124: 
1.1       misho     125: CROSS_AXL="../gpl/axl"
1.4       misho     126: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
1.2       misho     127: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
                    128: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
                    129: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1       misho     130: 
1.5       misho     131: CROSS_ELWIX="../libelwix"
                    132: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local"
                    133: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    134: 
1.1       misho     135: CROSS_AITIO="../libaitio"
1.4       misho     136: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local"
1.2       misho     137: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1       misho     138: 
                    139: CROSS_AITCFG="../libaitcfg"
1.4       misho     140: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local"
1.2       misho     141: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1       misho     142: 
                    143: CROSS_AITRPC="../libaitrpc"
1.4       misho     144: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2       misho     145: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    146: 
                    147: CROSS_AITSCHED="../libaitsched"
1.4       misho     148: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local"
1.2       misho     149: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1       misho     150: 
1.4       misho     151: CROSS_AITWWW="../libaitwww"
                    152: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local"
                    153: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    154: 
1.1       misho     155: CROSS_AITPELCO="../libaitpelco"
1.4       misho     156: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local"
1.2       misho     157: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1       misho     158: 
                    159: CROSS_AITSYNC="../libaitsync"
1.4       misho     160: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local"
1.2       misho     161: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1       misho     162: 
                    163: CROSS_AITCLI="../libaitcli"
1.4       misho     164: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local"
1.2       misho     165: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    166: 
1.4       misho     167: CROSS_AITMQTT="../libaitmqtt"
                    168: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local"
                    169: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    170: 
1.2       misho     171: CROSS_EMBEDTOOLS="../embedtools"
1.4       misho     172: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local"
1.2       misho     173: 
                    174: CROSS_ANSH="../ansh"
1.4       misho     175: ANSH_CFG="./configure --prefix=${WORLD}/usr/local"
                    176: 
                    177: CROSS_MQTT="../mqtt"
                    178: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr --prefix=${WORLD}/usr/local"
1.2       misho     179: 
                    180: CROSS_3TH="../embedaddon"
1.1       misho     181: 
                    182: #####
                    183: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    184: #####

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