Annotation of elwix/config/rc.elwix, revision 1.1.1.1.2.1
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.1.1.1.2.1! misho 6: # $Id: rc.elwix,v 1.1.1.1 2011/07/05 23:43:00 misho Exp $
1.1 misho 7: #
8: ELWIX_IS_CONFIGURED="YES"
9:
10: VERSION="1.4"
11: PLATFORM="elwix"
12: TIMEZONE="Europe/Sofia"
13: BUILD_DATE=`date "+%Y-%m-%d"`
14:
15: TARGET="i386"
16: TARGET_ARCH="i386"
17: PARALLEL_BUILD=2
18:
19: CURDIR=$(pwd)
20: CFGDIR="${CURDIR}/config"
21:
22: PREDIR=".."
23:
24: # Dont change TOPDIR!!!
25: TOPDIR="${CURDIR}/build"
26: #
27:
28: REL="${TOPDIR}/release"
29: DEST="${TOPDIR}/destdir"
30: OBJS="${TOPDIR}/obj"
31: ADIR="${TOPDIR}/arch"
32:
33: WORLD="${ADIR}/${TARGET_ARCH}/world"
34: KERN="${ADIR}/${TARGET_ARCH}/kernel"
1.1.1.1.2.1! misho 35: PKG="${ADIR}/${TARGET_ARCH}/pkg"
! 36: AIT="${ADIR}/${TARGET_ARCH}"
1.1 misho 37: BSDOBJ="${OBJS}/${TARGET_ARCH}"
38: BSDSRC="/usr/src"
39:
40: ### Kernel
41: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
42:
43: KERNEL="${KERN}/boot/kernel/kernel"
44: KERNCONF="ELWIX"
45:
46: ### Rootfs
47: MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
48: MKF="Makefile.elwix"
49: MKH="Makefile.inc"
50: ROOTFS_CONF="elwix_firmware.conf"
51:
52: ROOTFS="${DEST}/rootfs"
53: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
54: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
55:
56: ROOTFS_KERN="kernel.gz"
57:
58: ROOTFS_IMG="rootfs.img"
59: ROOTFS_SIZE="5120k"
60:
61: ### RomFS Firmware
62: ROMFS="${DEST}/romfs"
63: ROMFS_USR="${ROMFS}/usr"
64: ELWIX_ROMFS="${TOPDIR}/elwix_romfs.conf"
65: ELWIX_APPS="${TOPDIR}/elwix_apps.conf"
66: ROMFS_IMG="elwix-firmware.sys"
67: ROMFS_SIZE="56m"
68:
69: ### FS Image
70: FS="${DEST}/elwix.fs"
71: OS="elwix_${VERSION}.tar.gz"
72: ELWIX_FS="${TOPDIR}/elwix_fs.conf"
73:
74: ### Make OS Image
75: IMG="$REL/ELWIX_${VERSION}_64MB.img"
76: IMG_SIZE=84000
77:
78: ### Cross
1.1.1.1.2.1! misho 79: CBUILD="${DEST}/cross_build.sh"
! 80:
1.1 misho 81: CROSS_AXL="../gpl/axl"
1.1.1.1.2.1! misho 82: AXL_CFG="./configure --prefix=${PKG}"
! 83: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
! 84: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
! 85: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1 misho 86:
87: CROSS_AITIO="../libaitio"
1.1.1.1.2.1! misho 88: AITIO_CFG="./configure --enable-aio --prefix=${PKG}"
! 89: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1 misho 90:
91: CROSS_AITCRC="../libaitcrc"
1.1.1.1.2.1! misho 92: AITCRC_CFG="./configure --prefix=${PKG}"
! 93: #ELWIX_LIB_AITCRC="${CROSS_AITCRC}/lib/libaitcrc.so"
1.1 misho 94:
95: CROSS_AITCFG="../libaitcfg"
1.1.1.1.2.1! misho 96: AITCFG_CFG="./configure --prefix=${PKG}"
! 97: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1 misho 98:
99: CROSS_AITSESS="../libaitsess"
1.1.1.1.2.1! misho 100: AITSESS_CFG="./configure --prefix=${PKG}"
! 101: #ELWIX_LIB_AITSESS="${CROSS_AITSESS}/lib/libaitsess.so"
1.1 misho 102:
103: CROSS_AITRPC="../libaitrpc"
1.1.1.1.2.1! misho 104: AITRPC_CFG="./configure --prefix=${PKG}"
! 105: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
1.1 misho 106:
107: CROSS_AITPELCO="../libaitpelco"
1.1.1.1.2.1! misho 108: AITPELCO_CFG="./configure --prefix=${PKG}"
! 109: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1 misho 110:
111: CROSS_AITPWD="../libaitpwd"
1.1.1.1.2.1! misho 112: AITPWD_CFG="./configure --prefix=${PKG}"
! 113: #ELWIX_LIB_AITPWD="${CROSS_AITPWD}/lib/libaitpwd.so"
1.1 misho 114:
115: CROSS_AITSYNC="../libaitsync"
1.1.1.1.2.1! misho 116: AITSYNC_CFG="./configure --prefix=${PKG}"
! 117: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1 misho 118:
119: CROSS_AITCLI="../libaitcli"
1.1.1.1.2.1! misho 120: AITCLI_CFG="./configure --prefix=${PKG}"
! 121: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
! 122:
! 123: CROSS_EMBEDTOOLS="../embedtools"
! 124: EMBEDTOOLS_CFG="./configure --prefix=${PKG}"
1.1 misho 125:
126: #####
127: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
128: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>