version 1.1.2.1, 2014/01/14 09:39:05
|
version 1.2, 2014/09/15 19:06:42
|
Line 7
|
Line 7
|
# |
# |
ELWIX_IS_CONFIGURED="YES" |
ELWIX_IS_CONFIGURED="YES" |
|
|
VERSION="2.2" | VERSION="2.2_alfa_n2" |
PLATFORM="elwix" |
PLATFORM="elwix" |
TIMEZONE="Europe/Sofia" |
TIMEZONE="Europe/Sofia" |
BUILD_DATE=`date "+%Y-%m-%d"` |
BUILD_DATE=`date "+%Y-%m-%d"` |
|
|
TARGET="mips" |
TARGET="mips" |
TARGET_ARCH="mips" |
TARGET_ARCH="mips" |
|
TARGET_CPUTYPE="mips32" |
TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd" |
TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd" |
PARALLEL_BUILD="-j2" |
PARALLEL_BUILD="-j2" |
|
|
CURDIR=$(pwd) |
CURDIR=$(pwd) |
CFGDIR="${CURDIR}/config" |
CFGDIR="${CURDIR}/config" |
|
|
SRCCONF="${CFGDIR}/src.conf" | SRCCONF="${CFGDIR}/src_mips_alfa_n2.conf" |
| MAKECONF="${CFGDIR}/make_mips_alfa_n2.conf" |
|
|
PREDIR=".." |
PREDIR=".." |
|
|
Line 39 ADIR="${TOPDIR}/arch"
|
Line 41 ADIR="${TOPDIR}/arch"
|
WORLD="${ADIR}/${TARGET_ARCH}/world" |
WORLD="${ADIR}/${TARGET_ARCH}/world" |
KERN="${ADIR}/${TARGET_ARCH}/kernel" |
KERN="${ADIR}/${TARGET_ARCH}/kernel" |
KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs" |
KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs" |
|
KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs" |
PKG="${ADIR}/${TARGET_ARCH}/pkg" |
PKG="${ADIR}/${TARGET_ARCH}/pkg" |
AIT="${ADIR}/${TARGET_ARCH}" |
AIT="${ADIR}/${TARGET_ARCH}" |
BSDOBJ="${OBJS}/${TARGET_ARCH}" |
BSDOBJ="${OBJS}/${TARGET_ARCH}" |
Line 48 CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
|
Line 51 CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
|
|
|
### Kernel |
### Kernel |
BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf" |
BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf" |
KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints" | KERNDEVHINTS="${BSDKERNCONF}/PB92.hints" |
|
|
KERNHINT="ELWIX_${TARGET_ARCH}.hints" | KERNHINT="ELWIX_ALFA_N2.hints" |
|
|
KERNEL="${KERN}/boot/kernel/kernel" |
KERNEL="${KERN}/boot/kernel/kernel" |
KERNCONF="ELWIX_${TARGET_ARCH}" | KERNCONF="ELWIX_ALFA_N2" |
|
|
KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel" |
KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel" |
KERNCONF_ROOTFS="ELWIX_${TARGET_ARCH}_ROOTFS" | KERNCONF_ROOTFS="ELWIX_ALFA_N2_ROOTFS" |
|
|
|
KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel" |
|
KERNCONF_NFS="ELWIX_ALFA_N2_NFS" |
|
|
### Rootfs |
### Rootfs |
ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix" |
ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix" |
ROOTFS_CONF="elwix_firmware.conf" | ROOTFS_CONF="elwix_firmware_alfa_n2.conf" |
|
|
ROOTFS="${DEST}/rootfs" |
ROOTFS="${DEST}/rootfs" |
ROOTFS_ETC="${CFGDIR}/etc/rootfs" |
ROOTFS_ETC="${CFGDIR}/etc/rootfs" |
ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf" | ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs_alfa_n2.conf" |
|
|
ROOTFS_KERN="kernel_rootfs.gz" |
ROOTFS_KERN="kernel_rootfs.gz" |
|
|
Line 95 BASE_FS="${DEST}/base.fs"
|
Line 101 BASE_FS="${DEST}/base.fs"
|
BASE_ETC="${CFGDIR}/etc/default" |
BASE_ETC="${CFGDIR}/etc/default" |
BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz" |
BASE_OS="ELWIX-${VERSION}_base_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz" |
|
|
|
### U-boot base firmware |
|
UBFS="${DEST}/ubfs" |
|
ELWIX_UBFS="${CFGDIR}/elwix_uboot.conf" |
|
|
|
UBOOT_FS="${DEST}/uboot.fs" |
|
UBOOT_ETC="${CFGDIR}/etc/uboot" |
|
UBOOT_OS="ELWIX-${VERSION}_uboot_6mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz" |
|
|
### FS Image |
### FS Image |
FS="${DEST}/elwix.fs" |
FS="${DEST}/elwix.fs" |
FS_ETC="${CFGDIR}/etc/default" |
FS_ETC="${CFGDIR}/etc/default" |
Line 112 IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
|
Line 126 IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
|
|
|
### Make U-boot image |
### Make U-boot image |
UB_COMPRESS="lzma" |
UB_COMPRESS="lzma" |
UB_OBJS="${BSDOBJ}/uboot" | UB_COMPRESS_ROOTFS="ulzma" |
UB_KERNEL="${UB_OBJS}/kernel" | |
# Must be same like into kernel config [ KERNLOADADDR=0x80050000 ] |
# Must be same like into kernel config [ KERNLOADADDR=0x80050000 ] |
# if address variables are commented install2ub.sh automatic detect addresses |
# if address variables are commented install2ub.sh automatic detect addresses |
#UB_LOADADDR=0x80002000 | UB_LOADADDR=0x80050000 |
#UB_ENTRYADDR=0x80002100 | UB_ENTRYADDR=0x80050100 |
| UB_ORDER="be" |
|
|
|
# u-boot rootfs image size |
|
UB_ROOTFS_SIZE="24m" |
|
# rootfs size on nand with 64kb blocks |
|
UB_ROOTFS_NAND_SIZE="6291456" |
|
UB_KERNEL_NAND_SIZE="1638400" |
|
UB_CFG_NAND_SIZE="65536" |
|
|
### Cross |
### Cross |
CBUILD="${DEST}/cross_build.sh" |
CBUILD="${DEST}/cross_build.sh" |
CGBUILD="${DEST}/cross_gbuild.sh" |
CGBUILD="${DEST}/cross_gbuild.sh" |
Line 133 CROSS_FT_NET80211="${BSDTOOLS}/net80211"
|
Line 154 CROSS_FT_NET80211="${BSDTOOLS}/net80211"
|
CROSS_FT_VIMAGE="${BSDTOOLS}/vimage" |
CROSS_FT_VIMAGE="${BSDTOOLS}/vimage" |
CROSS_FT_WTAP="${BSDTOOLS}/wtap" |
CROSS_FT_WTAP="${BSDTOOLS}/wtap" |
|
|
CROSS_AXL="../gpl/axl" | #CROSS_AXL="../gpl/axl" |
AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --build=${TARGET_BUILD}" | #AXL_CFG="./configure --disable-py-axl --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
#AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*" | ##AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*" |
#AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*" | ##AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*" |
#AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*" | ##AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*" |
|
|
CROSS_ELWIX="../libelwix" |
CROSS_ELWIX="../libelwix" |
ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
ELWIX_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
#ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so" |
#ELWIX_LIB_ELWIX="${CROSS_ELWIX}/lib/libelwix.so" |
|
|
CROSS_AITIO="../libaitio" |
CROSS_AITIO="../libaitio" |
AITIO_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" | AITIO_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
#ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so" |
#ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so" |
|
|
CROSS_AITCFG="../libaitcfg" |
CROSS_AITCFG="../libaitcfg" |
Line 156 AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --
|
Line 177 AITRPC_CFG="./configure --prefix=${WORLD}/usr/local --
|
#ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so" |
#ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so" |
|
|
CROSS_AITSCHED="../libaitsched" |
CROSS_AITSCHED="../libaitsched" |
AITSCHED_CFG="./configure --enable-aio --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" | AITSCHED_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
#ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so" |
#ELWIX_LIB_AITSCHED="${CROSS_AITSCHED}/lib/libaitsched.so" |
|
|
CROSS_AITWWW="../libaitwww" |
CROSS_AITWWW="../libaitwww" |
Line 190 MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/l
|
Line 211 MQTT_CFG="./configure --with-sqlite3dir=${WORLD}/usr/l
|
|
|
CROSS_WIFINATOR="../wifinator" |
CROSS_WIFINATOR="../wifinator" |
WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
WIFINATOR_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
|
|
|
CROSS_TFTPD="../tftpd" |
|
TFTPD_CFG="./configure --prefix=${WORLD}/usr/local --host=${TARGET_BUILD}" |
|
|
##### |
##### |
[ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr |
[ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr |