+ local lustre=""
+ if $KERNEL_LUSTRE_NAMING; then
+ $lustre="-lustre"
+ fi
+ echo kernel${lustre}-${rpmsmptype}-${lnxmaj}${lnxmin}/linux-${lnxmaj}
+}
+
+resolve_arch() {
+ local arch="$1"
+
+ case $arch in
+ ppc64) arch=powerpc
+ ;;
+ i686) arch=i386
+ ;;
+ esac
+
+ echo "$arch"
+
+}
+
+find_linux_devel_paths() {
+ local path="$1"
+
+ LINUX=$path/usr/src/linux-${lnxmaj}${lnxmin}-${lnxrel}
+ LINUXOBJ=$path/usr/src/linux-${lnxmaj}${lnxmin}-${lnxrel}-obj/$(resolve_arch $TARGET_ARCH)/$RPMSMPTYPE
+ # XXX this has been commented out in th rhel5 build file for a while
+ # as it says there, it's probably not needed anymore and can be deleted
+ #LINUXRELEASE=$(find_linux_release "$LINUXOBJ")
+ #if [ -z "$LINUXRELEASE" ]; then
+ # echo "Failed to find linux release in $LINUXOBJ"
+ # return 255
+ #fi
+
+ return 0
+}
+
+mcpu_rpmbuild_opt() {
+
+ echo "--define \'jobs $(/usr/bin/getconf _NPROCESSORS_ONLN)\'"
+ return 0