Need to be able to tell the lustre.spec which kernel sources to build against.
lmake "cheats" and re-substs the lustre.spec.in template file.
./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS}
$RPMBUILD $targets -bb build/lustre.spec \
- --define "_topdir $TOPDIR" || \
+ --define "_topdir $TOPDIR" \
+ --define "configure_flags --with-linux=${LINUX}" || \
fatal 1 "Error building rpms for $BUILD_ARCHS."
popd >/dev/null
# but we still need the headers
unpack_linux
LINUX=$(pwd)/linux
+ pushd $LINUX && {
+ # need a .config -- like a user would do
+ cp /boot/config-${lnxmaj}-${lnxrel}smp .config
+ make oldconfig
+ make include/asm
+ make include/linux/version.h
+ make SUBDIRS=scripts
+ popd
build_lustre
fi
else
# Set an explicit path to our Linux tree, if we can.
cd $RPM_BUILD_DIR/lustre-%{version}
-./configure @ac_configure_args@ \
+./configure @ac_configure_args@ %{configure_flags} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--libdir=%{_libdir}