if [ -s "%{SOURCE2}" ] ; then
tar zxf "%{SOURCE2}" -C lustre/kernel_patches
fi
-sh -x ./build/lmake \
+bash -x ./build/lmake \
--unpack-kernel \
--target @LUSTRE_TARGET@ \
--target-arch %{_target_cpu} \
DependKernel()
{
target_config=${1:+--target-config $1}
- sh -x ./build/lmake \
+ bash -x ./build/lmake \
--depend-kernel \
--target @LUSTRE_TARGET@ \
--target-arch %{_target_cpu} \
BuildKernel()
{
target_config=${1:+--target-config $1}
- sh -x ./build/lmake \
+ bash -x ./build/lmake \
--build-kernel --build-lustre \
--install \
--save-headers \
BuildLustre()
{
target_config=${1:+--target-config $1}
- sh -x ./build/lmake \
+ bash -x ./build/lmake \
--build-lustre \
--install-lustre \
--target @LUSTRE_TARGET@ \
SaveHeaders()
{
- sh -x ./build/lmake \
+ bash -x ./build/lmake \
--save-headers \
--target @LUSTRE_TARGET@ \
--target-arch %{_target_cpu} \
$(set -- 2.6.5 ; echo ${*//./ })
EOF
rm -f $o/Makefile
- ARCH=%{_target_cpu} /bin/sh scripts/mkmakefile ../../../linux-%{KVERREL} $o \
+ ARCH=%{_target_cpu} /bin/bash scripts/mkmakefile ../../../linux-%{KVERREL} $o \
$VERSION $PATCHLEVEL > $o/Makefile.in
if [ -f $o/Makefile ] ; then
# will exist only for 2.6.17 and newer because mkmakefile