Annotation of elwix/config/rc.elwix, revision 1.1.1.1.2.6
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.6! misho 6: # $Id: rc.elwix,v 1.1.1.1.2.5 2011/07/21 11:17:05 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"
1.1.1.1.2.3 misho 39: BSDTOOLS="${BSDSRC}/tools/tools"
1.1 misho 40:
41: ### Kernel
42: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
43:
44: KERNEL="${KERN}/boot/kernel/kernel"
45: KERNCONF="ELWIX"
46:
47: ### Rootfs
48: MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
49: MKF="Makefile.elwix"
50: MKH="Makefile.inc"
51: ROOTFS_CONF="elwix_firmware.conf"
52:
53: ROOTFS="${DEST}/rootfs"
54: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
55: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
56:
57: ROOTFS_KERN="kernel.gz"
58:
59: ROOTFS_IMG="rootfs.img"
60: ROOTFS_SIZE="5120k"
61:
62: ### RomFS Firmware
63: ROMFS="${DEST}/romfs"
64: ROMFS_USR="${ROMFS}/usr"
1.1.1.1.2.4 misho 65: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
1.1 misho 66: ROMFS_IMG="elwix-firmware.sys"
1.1.1.1.2.5 misho 67: ROMFS_SIZE="100m"
1.1 misho 68:
69: ### FS Image
70: FS="${DEST}/elwix.fs"
1.1.1.1.2.6! misho 71: ELWIX_FS="${CFGDIR}/elwix_fs.conf"
! 72: OS="ELWIX-${VERSION}_%{TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1 misho 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"
1.1.1.1.2.2 misho 80: CGBUILD="${DEST}/cross_gbuild.sh"
1.1.1.1.2.1 misho 81:
1.1.1.1.2.3 misho 82: CROSS_FT_ATH="${BSDTOOLS}/ath"
83: CROSS_FT_IPW="${BSDTOOLS}/ipw"
84: CROSS_FT_IWI="${BSDTOOLS}/iwi"
85: CROSS_FT_MWL="${BSDTOOLS}/mwl"
86: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
87: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
88:
1.1 misho 89: CROSS_AXL="../gpl/axl"
1.1.1.1.2.1 misho 90: AXL_CFG="./configure --prefix=${PKG}"
91: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
92: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
93: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1 misho 94:
95: CROSS_AITIO="../libaitio"
1.1.1.1.2.1 misho 96: AITIO_CFG="./configure --enable-aio --prefix=${PKG}"
97: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1 misho 98:
99: CROSS_AITCRC="../libaitcrc"
1.1.1.1.2.1 misho 100: AITCRC_CFG="./configure --prefix=${PKG}"
101: #ELWIX_LIB_AITCRC="${CROSS_AITCRC}/lib/libaitcrc.so"
1.1 misho 102:
103: CROSS_AITCFG="../libaitcfg"
1.1.1.1.2.1 misho 104: AITCFG_CFG="./configure --prefix=${PKG}"
105: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1 misho 106:
107: CROSS_AITSESS="../libaitsess"
1.1.1.1.2.1 misho 108: AITSESS_CFG="./configure --prefix=${PKG}"
109: #ELWIX_LIB_AITSESS="${CROSS_AITSESS}/lib/libaitsess.so"
1.1 misho 110:
111: CROSS_AITRPC="../libaitrpc"
1.1.1.1.2.1 misho 112: AITRPC_CFG="./configure --prefix=${PKG}"
113: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
1.1 misho 114:
115: CROSS_AITPELCO="../libaitpelco"
1.1.1.1.2.1 misho 116: AITPELCO_CFG="./configure --prefix=${PKG}"
117: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1 misho 118:
119: CROSS_AITPWD="../libaitpwd"
1.1.1.1.2.1 misho 120: AITPWD_CFG="./configure --prefix=${PKG}"
121: #ELWIX_LIB_AITPWD="${CROSS_AITPWD}/lib/libaitpwd.so"
1.1 misho 122:
123: CROSS_AITSYNC="../libaitsync"
1.1.1.1.2.1 misho 124: AITSYNC_CFG="./configure --prefix=${PKG}"
125: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1 misho 126:
127: CROSS_AITCLI="../libaitcli"
1.1.1.1.2.1 misho 128: AITCLI_CFG="./configure --prefix=${PKG}"
129: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
130:
131: CROSS_EMBEDTOOLS="../embedtools"
132: EMBEDTOOLS_CFG="./configure --prefix=${PKG}"
1.1 misho 133:
1.1.1.1.2.2 misho 134: CROSS_3TH="../embedaddon"
135:
1.1 misho 136: #####
137: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
138: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>