Annotation of elwix/config/rc.elwix, revision 1.1.1.1.2.7
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.7! misho 6: # $Id: rc.elwix,v 1.1.1.1.2.6 2011/07/21 12:06:07 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.7! misho 71: FS_ETC="${CFGDIR}/etc/default"
1.1.1.1.2.6 misho 72: ELWIX_FS="${CFGDIR}/elwix_fs.conf"
1.1.1.1.2.7! misho 73: ELWIX_BSDSRC="${CFGDIR}/elwix_bsdsrc.conf"
1.1.1.1.2.6 misho 74: OS="ELWIX-${VERSION}_%{TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.1 misho 75:
76: ### Make OS Image
77: IMG="$REL/ELWIX_${VERSION}_64MB.img"
78: IMG_SIZE=84000
79:
80: ### Cross
1.1.1.1.2.1 misho 81: CBUILD="${DEST}/cross_build.sh"
1.1.1.1.2.2 misho 82: CGBUILD="${DEST}/cross_gbuild.sh"
1.1.1.1.2.1 misho 83:
1.1.1.1.2.3 misho 84: CROSS_FT_ATH="${BSDTOOLS}/ath"
85: CROSS_FT_IPW="${BSDTOOLS}/ipw"
86: CROSS_FT_IWI="${BSDTOOLS}/iwi"
87: CROSS_FT_MWL="${BSDTOOLS}/mwl"
88: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
89: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
90:
1.1 misho 91: CROSS_AXL="../gpl/axl"
1.1.1.1.2.1 misho 92: AXL_CFG="./configure --prefix=${PKG}"
93: #AXL_LIB="${CROSS_AXL}/src/.libs/libaxl.so.*"
94: #AXL_LIB_NS="${CROSS_AXL}/ns/.libs/libaxl-ns.so.*"
95: #AXL_LIB_BABEL="${CROSS_AXL}/babel/.libs/libaxl-babel.so.*"
1.1 misho 96:
97: CROSS_AITIO="../libaitio"
1.1.1.1.2.1 misho 98: AITIO_CFG="./configure --enable-aio --prefix=${PKG}"
99: #ELWIX_LIB_AITIO="${CROSS_AITIO}/lib/libaitio.so"
1.1 misho 100:
101: CROSS_AITCRC="../libaitcrc"
1.1.1.1.2.1 misho 102: AITCRC_CFG="./configure --prefix=${PKG}"
103: #ELWIX_LIB_AITCRC="${CROSS_AITCRC}/lib/libaitcrc.so"
1.1 misho 104:
105: CROSS_AITCFG="../libaitcfg"
1.1.1.1.2.1 misho 106: AITCFG_CFG="./configure --prefix=${PKG}"
107: #ELWIX_LIB_AITCFG="${CROSS_AITCFG}/lib/libaitcfg.so"
1.1 misho 108:
109: CROSS_AITSESS="../libaitsess"
1.1.1.1.2.1 misho 110: AITSESS_CFG="./configure --prefix=${PKG}"
111: #ELWIX_LIB_AITSESS="${CROSS_AITSESS}/lib/libaitsess.so"
1.1 misho 112:
113: CROSS_AITRPC="../libaitrpc"
1.1.1.1.2.1 misho 114: AITRPC_CFG="./configure --prefix=${PKG}"
115: #ELWIX_LIB_AITRPC="${CROSS_AITRPC}/lib/libaitrpc.so"
1.1 misho 116:
117: CROSS_AITPELCO="../libaitpelco"
1.1.1.1.2.1 misho 118: AITPELCO_CFG="./configure --prefix=${PKG}"
119: #ELWIX_LIB_AITPELCO="${CROSS_AITPELCO}/lib/libaitpelco.so"
1.1 misho 120:
121: CROSS_AITPWD="../libaitpwd"
1.1.1.1.2.1 misho 122: AITPWD_CFG="./configure --prefix=${PKG}"
123: #ELWIX_LIB_AITPWD="${CROSS_AITPWD}/lib/libaitpwd.so"
1.1 misho 124:
125: CROSS_AITSYNC="../libaitsync"
1.1.1.1.2.1 misho 126: AITSYNC_CFG="./configure --prefix=${PKG}"
127: #ELWIX_LIB_AITSYNC="${CROSS_AITSYNC}/lib/libaitsync.so"
1.1 misho 128:
129: CROSS_AITCLI="../libaitcli"
1.1.1.1.2.1 misho 130: AITCLI_CFG="./configure --prefix=${PKG}"
131: #ELWIX_LIB_AITCLI="${CROSS_AITCLI}/lib/libaitcli.so"
132:
133: CROSS_EMBEDTOOLS="../embedtools"
134: EMBEDTOOLS_CFG="./configure --prefix=${PKG}"
1.1 misho 135:
1.1.1.1.2.2 misho 136: CROSS_3TH="../embedaddon"
137:
1.1 misho 138: #####
139: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
140: #####
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>