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

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.8 ! misho       6: # $Id: rc.elwix,v 1.7.4.7 2013/05/21 08:26:57 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"
1.7.4.3   misho      16: TARGET_ARCH="mips"
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.7   misho      50: KERNCONF="ELWIX_ALFA_NX"
1.7.4.8 ! misho      51: KERNHINT="ALFA_NX.hints"
1.1       misho      52: 
                     53: ### Rootfs
                     54: MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     55: MKF="Makefile.elwix"
                     56: MKH="Makefile.inc"
                     57: ROOTFS_CONF="elwix_firmware.conf"
                     58: 
                     59: ROOTFS="${DEST}/rootfs"
                     60: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     61: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     62: 
                     63: ROOTFS_KERN="kernel.gz"
                     64: 
                     65: ROOTFS_IMG="rootfs.img"
1.5       misho      66: ROOTFS_SIZE="8000k"
1.1       misho      67: 
                     68: ### RomFS Firmware
                     69: ROMFS="${DEST}/romfs"
1.4       misho      70: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     71: 
1.1       misho      72: ROMFS_USR="${ROMFS}/usr"
                     73: ROMFS_IMG="elwix-firmware.sys"
1.5       misho      74: #ROMFS_SIZE="38m"
1.4       misho      75: 
                     76: ROMFS_USR2="${ROMFS}/usr/local"
                     77: ROMFS_IMG2="elwix-firmware2.sys"
1.5       misho      78: #ROMFS_SIZE2="40m"
1.1       misho      79: 
                     80: ### FS Image
1.2       misho      81: FS_ETC="${CFGDIR}/etc/default"
                     82: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
1.4       misho      83: 
                     84: FS="${DEST}/elwix.fs"
1.2       misho      85: OS="ELWIX-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1       misho      86: 
1.4       misho      87: FS_LITE="${DEST}/elwix_lite.fs"
                     88: OS_LITE="ELWIX_lite-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     89: 
1.5       misho      90: FS_LITE128="${DEST}/elwix_lite128.fs"
                     91: OS_LITE128="ELWIX_lite_128-${VERSION}_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
                     92: 
1.1       misho      93: ### Make OS Image
1.4       misho      94: IMG_SIZE=62592
1.5       misho      95: IMG_SIZE128=125100
1.4       misho      96: 
1.2       misho      97: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                     98: MD5CHK="${IMGNAME}.md5"
                     99: SHA1CHK="${IMGNAME}.sha1"
                    100: IMG="${IMGNAME}.img"
1.4       misho     101: 
                    102: IMGNAME_LITE="${REL}/ELWIX_lite-${VERSION}_${TARGET_ARCH}"
                    103: MD5CHK_LITE="${IMGNAME_LITE}.md5"
                    104: SHA1CHK_LITE="${IMGNAME_LITE}.sha1"
                    105: IMG_LITE="${IMGNAME_LITE}.img"
1.1       misho     106: 
1.5       misho     107: IMGNAME_LITE128="${REL}/ELWIX_lite_128-${VERSION}_${TARGET_ARCH}"
                    108: MD5CHK_LITE128="${IMGNAME_LITE128}.md5"
                    109: SHA1CHK_LITE128="${IMGNAME_LITE128}.sha1"
                    110: IMG_LITE128="${IMGNAME_LITE128}.img"
                    111: 
1.7.4.4   misho     112: ### Make U-boot image
1.7.4.6   misho     113: UB_COMPRESS="lzma"
1.7.4.4   misho     114: UB_OBJS="${BSDOBJ}/uboot"
                    115: UB_KERNEL="${UB_OBJS}/kernel"
                    116: # Must be same like into kernel config [ KERNLOADADDR=0x80050000 ]
1.7.4.5   misho     117: # if address variables are commented install2ub.sh automatic detect addresses
                    118: #UB_LOADADDR=0x80002000
                    119: #UB_ENTRYADDR=0x80002100
1.7.4.4   misho     120: 
1.1       misho     121: ### Cross
1.2       misho     122: CBUILD="${DEST}/cross_build.sh"
                    123: CGBUILD="${DEST}/cross_gbuild.sh"
1.4       misho     124: CEXEC="${DEST}/cross_exec.sh"
1.3       misho     125: CENV="${DEST}/cross_env.sh"
1.2       misho     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"
1.4       misho     133: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2       misho     134: 
1.1       misho     135: CROSS_AXL="../gpl/axl"
1.4       misho     136: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
1.2       misho     137: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
                    138: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
                    139: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1       misho     140: 
1.5       misho     141: CROSS_ELWIX="../libelwix"
1.7.4.4   misho     142: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.5       misho     143: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    144: 
1.1       misho     145: CROSS_AITIO="../libaitio"
1.7.4.4   misho     146: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     147: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1       misho     148: 
                    149: CROSS_AITCFG="../libaitcfg"
1.7.4.4   misho     150: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     151: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1       misho     152: 
                    153: CROSS_AITRPC="../libaitrpc"
1.7.4.4   misho     154: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     155: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    156: 
                    157: CROSS_AITSCHED="../libaitsched"
1.7.4.4   misho     158: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     159: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1       misho     160: 
1.4       misho     161: CROSS_AITWWW="../libaitwww"
1.7.4.4   misho     162: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     163: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    164: 
1.1       misho     165: CROSS_AITPELCO="../libaitpelco"
1.7.4.4   misho     166: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     167: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1       misho     168: 
                    169: CROSS_AITSYNC="../libaitsync"
1.7.4.4   misho     170: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     171: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1       misho     172: 
                    173: CROSS_AITCLI="../libaitcli"
1.7.4.4   misho     174: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     175: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    176: 
1.4       misho     177: CROSS_AITMQTT="../libaitmqtt"
1.7.4.4   misho     178: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     179: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    180: 
1.2       misho     181: CROSS_EMBEDTOOLS="../embedtools"
1.7.4.4   misho     182: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     183: 
                    184: CROSS_ANSH="../ansh"
1.7.4.4   misho     185: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     186: 
                    187: CROSS_MQTT="../mqtt"
1.7.4.4   misho     188: MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     189: 
                    190: CROSS_3TH="../embedaddon"
1.1       misho     191: 
                    192: #####
                    193: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    194: #####

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