Annotation of elwix/config/rc.elwix, revision 1.9.2.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.9.2.2 ! misho       6: # $Id: rc.elwix,v 1.9.2.1 2013/08/07 13:27:38 misho Exp $
1.1       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.9.2.1   misho      10: VERSION="2.1"
1.1       misho      11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
                     15: TARGET="i386"
                     16: TARGET_ARCH="i386"
1.3       misho      17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.9.2.2 ! misho      18: #PARALLEL_BUILD="-j2"
1.1       misho      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.8       misho      38: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
1.2       misho      39: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     40: AIT="${ADIR}/${TARGET_ARCH}"
1.1       misho      41: BSDOBJ="${OBJS}/${TARGET_ARCH}"
1.2       misho      42: BSDTOOLS="${BSDSRC}/tools/tools"
1.4       misho      43: PKGDIR="${WORLD}/elwix/pkg"
                     44: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
1.1       misho      45: 
1.8       misho      46: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
                     47: 
1.1       misho      48: ### Kernel
                     49: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
1.3       misho      50: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
1.1       misho      51: 
1.8       misho      52: KERNHINT="ELWIX_${TARGET_ARCH}.hints"
                     53: 
1.1       misho      54: KERNEL="${KERN}/boot/kernel/kernel"
1.8       misho      55: KERNCONF="ELWIX_${TARGET_ARCH}"
                     56: 
                     57: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     58: KERNCONF_ROOTFS="ELWIX_${TARGET_ARCH}_ROOTFS"
1.1       misho      59: 
                     60: ### Rootfs
1.8       misho      61: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
1.1       misho      62: ROOTFS_CONF="elwix_firmware.conf"
                     63: 
                     64: ROOTFS="${DEST}/rootfs"
                     65: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     66: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     67: 
1.8       misho      68: ROOTFS_KERN="kernel_rootfs.gz"
1.1       misho      69: 
                     70: ROOTFS_IMG="rootfs.img"
1.8       misho      71: ROOTFS_SIZE="9000k"
                     72: 
                     73: ### tools Firmware
                     74: LOCALFS_IMG="elwix-pkg.frm"
                     75: 
                     76: ### 3th party
                     77: ROMFS_USR2="${DEST}/romfs.pkg"
                     78: ROMFS_IMG2="elwix-firmware2.sys"
                     79: #ROMFS_SIZE2="40m"
1.1       misho      80: 
                     81: ### RomFS Firmware
                     82: ROMFS="${DEST}/romfs"
1.4       misho      83: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     84: 
1.1       misho      85: ROMFS_USR="${ROMFS}/usr"
                     86: ROMFS_IMG="elwix-firmware.sys"
1.5       misho      87: #ROMFS_SIZE="38m"
1.4       misho      88: 
1.8       misho      89: ### Base Firmware
                     90: BASEFS="${DEST}/base"
                     91: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                     92: 
                     93: BASE_FS="${DEST}/base.fs"
                     94: BASE_ETC="${CFGDIR}/etc/default"
                     95: BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1       misho      96: 
                     97: ### FS Image
1.8       misho      98: FS="${DEST}/elwix.fs"
1.2       misho      99: FS_ETC="${CFGDIR}/etc/default"
1.8       misho     100: OS="ELWIX-${VERSION}_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.4       misho     101: 
1.8       misho     102: FS_EXT="${DEST}/elwix_ext.fs"
                    103: FS_EXT_ETC="${CFGDIR}/etc/default"
                    104: OS_EXT="ELWIX-${VERSION}_ext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.5       misho     105: 
1.1       misho     106: ### Make OS Image
1.4       misho     107: IMG_SIZE=62592
1.5       misho     108: IMG_SIZE128=125100
1.4       misho     109: 
1.2       misho     110: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
1.5       misho     111: 
1.1       misho     112: ### Cross
1.2       misho     113: CBUILD="${DEST}/cross_build.sh"
                    114: CGBUILD="${DEST}/cross_gbuild.sh"
1.4       misho     115: CEXEC="${DEST}/cross_exec.sh"
1.3       misho     116: CENV="${DEST}/cross_env.sh"
1.2       misho     117: 
                    118: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    119: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    120: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    121: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    122: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    123: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
1.4       misho     124: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.2       misho     125: 
1.1       misho     126: CROSS_AXL="../gpl/axl"
1.4       misho     127: AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}"
1.2       misho     128: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
                    129: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
                    130: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1       misho     131: 
1.5       misho     132: CROSS_ELWIX="../libelwix"
1.8       misho     133: ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.5       misho     134: #ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so"
                    135: 
1.1       misho     136: CROSS_AITIO="../libaitio"
1.8       misho     137: AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     138: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1       misho     139: 
                    140: CROSS_AITCFG="../libaitcfg"
1.8       misho     141: AITCFG_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     142: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1       misho     143: 
                    144: CROSS_AITRPC="../libaitrpc"
1.8       misho     145: AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     146: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
                    147: 
                    148: CROSS_AITSCHED="../libaitsched"
1.8       misho     149: AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     150: #ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so"
1.1       misho     151: 
1.4       misho     152: CROSS_AITWWW="../libaitwww"
1.8       misho     153: AITWWW_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     154: #ELWIX_LIB_AITWWW="${CROSS_AITWWW}/lib/libaitwww.so"
                    155: 
1.1       misho     156: CROSS_AITPELCO="../libaitpelco"
1.8       misho     157: AITPELCO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     158: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1       misho     159: 
                    160: CROSS_AITSYNC="../libaitsync"
1.8       misho     161: AITSYNC_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     162: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1       misho     163: 
                    164: CROSS_AITCLI="../libaitcli"
1.8       misho     165: AITCLI_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     166: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
                    167: 
1.4       misho     168: CROSS_AITMQTT="../libaitmqtt"
1.8       misho     169: AITMQTT_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     170: #ELWIX_LIB_AITMQTT="${CROSS_AITMQTT}/lib/libaitmqtt.so"
                    171: 
1.2       misho     172: CROSS_EMBEDTOOLS="../embedtools"
1.8       misho     173: EMBEDTOOLS_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.2       misho     174: 
                    175: CROSS_ANSH="../ansh"
1.8       misho     176: ANSH_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
1.4       misho     177: 
                    178: CROSS_MQTT="../mqtt"
1.8       misho     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}"
1.2       misho     183: 
                    184: CROSS_3TH="../embedaddon"
1.1       misho     185: 
                    186: #####
                    187: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    188: #####

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