# get an md5sum of the kernel patch + config for reuse check
# XXX really, there needs to be a signature and a CONFIG_FILE per arch
# in BUILD_ARCHS
- local REUSE_SIGNATURE=$(cat $CONFIG_FILE $TARGET_FILE $FULL_PATCH | md5sum | cut -d" " -f1)
+ local REUSE_SIGNATURE=$((echo $BUILD_GEN; cat $CONFIG_FILE $TARGET_FILE $FULL_PATCH) | md5sum | cut -d" " -f1)
# see if we can link to the reuse pool
# XXX - hrm. i'm not convinced this doesn't belong in the reuse "library"
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
+# increment this if you have made a change that should force a new kernel
+# to build built
+BUILD_GEN=1
+
DEVEL_KERNEL_TYPE="devel"
prepare_and_build_srpm() {
-e '/^Provides: glibc-kernheaders = /a\
Provides: kernel-headers = %{rpmversion}-%{release}
' \
+ -e '/^Provides: kernel-%{_target_cpu} = %{rpmversion}-%{release}$/a\
+Provides: kernel = %{rpmversion}-%{release}
+' \
-e '/^Provides: kernel-devel-%{_target_cpu} = %{rpmversion}-%{release}$/a\
Provides: kernel-devel = %{rpmversion}-%{release}
' \
# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
+# increment this if you have made a change that should force a new kernel
+# to build built
+BUILD_GEN=1
+
DEVEL_KERNEL_TYPE="source"
prepare_and_build_srpm() {
#cp $TOPDIR/SPECS/kernel-$spec.spec{,.orig}
sed -i -e 's/^\(Name:.*kernel-\)\(.*\)/\1lustre-\2/' \
-e "s/^Release:.*/&_${buildid}/" \
+ -e "/^Provides: *kernel = /a\
+Provides: kernel-$spec = %{version}-%{release}
+" \
-e "s/^ExclusiveArch:.*/& ppc ppc64/" \
-e '/^# Apply the patches needed for this architecture\./a\
cp %_sourcedir/linux-2.6.16-lustre.patch %_builddir/%{name}-%{version}/lustre.patch\