################################################################################
# Makefile.config Configurationm options for build
# T.Barnaby, BEAM Ltd, 2007-02-22
################################################################################
#
#
# Project info
project = tms-mcsys
version = 2.0.6
release = 1.beam.el6
#rpmDir = /usr/src/redhat
rpmDir = /scratch/rpms
#rpmDir = ${HOME}/rpmbuild
# Base directories
srcDir = ${shell pwd}
srcIncDir = ${srcDir}/include
srcLibDir = ${srcDir}/lib
# Root file system dir
ifeq ("$(DESTDIR)", "")
baseDir = ${srcDir}
rootDir = ${srcDir}/rootfs
else
baseDir = ${DESTDIR}/usr/tms
rootDir = ${baseDir}/rootfs
endif
# Kernel build options
#kernelVersion = 2.6.20-1.2925.fc6
#kernelVersion = 2.6.20-1.2933.fc6
#kernelVersion = 2.6.32-279.14.1.el6.i686
kernelVersion = 2.6.32-279.19.1.el6.i686
kernelModules = mii.ko via-rhine.ko e1000.ko e1000e.ko sunrpc.ko lockd.ko nfs_acl.ko nfs.ko fscache.ko auth_rpcgss.ko
kernelModules += igb.ko pps_core.ko i2c-core.ko i2c-algo-bit.ko dca.ko
kernelModules += admxrc2.ko
kernelModules += ipmi_msghandler.ko ipmi_watchdog.ko ipmi_devintf.ko ipmi_si.ko
# Rootfs build options
#rootfsVersion = 1.4.1
rootfsVersion = 1.20.2
rootfsSrcDir = ${srcDir}/busybox/busybox-${rootfsVersion}
rootfsBuildDir = ${shell pwd}/rootfs-build
rootfsSharedLibs = /lib/libcrypt.so.1 /lib/libm.so.6 /lib/libc.so.6 /lib/ld-linux.so.2
rootfsSharedLibs += /lib/libfreebl3.so /lib/libdl.so.2 /lib/libpci.so.3
rootfsSharedLibs += /lib/libgcc_s.so.1 /usr/lib/libstdc++.so.6 /lib/libpthread.so.0
rootfsSharedLibs += /lib/libnss_files.so.2 /lib/libnss_dns.so.2 /lib/libresolv.so.2
rootfsSharedLibs += /usr/lib/libadmxrc2.so.2
rootfsBins = lspci
.SUFFIXES: .spec
%.spec: Makefile.config
@(if ! grep "^Version:.*${version}" $@; then\
sed -e "s/^Version:.*/Version:\t${version}/" $@ > $@.tmp;\
mv $@.tmp $@; fi) 2>&1 > /dev/null
# For problem makefiles
PATH := ${srcDir}/bin:${PATH}