version 1.1.2.2, 2014/01/14 13:01:03
|
version 1.1.2.16, 2014/01/23 22:26:00
|
Line 14 BUILD_DATE=`date "+%Y-%m-%d"`
|
Line 14 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_mips_alfa_n2.conf" |
SRCCONF="${CFGDIR}/src_mips_alfa_n2.conf" |
|
MAKECONF="${CFGDIR}/make_mips_alfa_n2.conf" |
|
|
PREDIR=".." |
PREDIR=".." |
|
|
Line 48 CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/tmp"
|
Line 50 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" |
|
|
### 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 97 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" |
|
|
|
# 64K bytes |
|
UBOOT_CFG_SIZE=65536 |
|
|
### 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 125 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" |
|
|
### Cross |
### Cross |
CBUILD="${DEST}/cross_build.sh" |
CBUILD="${DEST}/cross_build.sh" |
Line 134 CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
|
Line 147 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.*" |