mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
993 B

uml_patch=$(ls $base/download/mirror/u/uml-patch-${ver}-*.bz2 | tail -n 1)
uml_24host26=$(ls $base/download/mirror/u/uml-patch-hostis26.diff.bz2)
uml_24cmdline=$(ls $base/download/mirror/u/uml-patch-kernel-cmdline.diff.bz2)
for i in $uml_patch $uml_24host26 $uml_24cmdline; do
var_remove patchfiles " " $i;
done
if [ "$ROCKCFG_KERNEL_UMLPATCH" == '1' ] ; then
if [ "$xpkg" = "linux24" ] ; then
var_append patchfiles " " "${uml_patch:=$base/download/mirror/u/uml-patch-2.4.26-3.bz2}"
var_append patchfiles " " "$uml_24host26"
var_append patchfiles " " "$uml_24cmdline"
elif [ "$xpkg" = "linux26" ] ; then
var_append patchfiles " " "$uml_patch"
# fix for the arch/um/kernel/ksyms.c:90: redefinition of `__kstrtab_os_ioctl_generic'
hook_add postpatch 3 \
"sed -e 's,\(EXPORT_SYMBOL(os_ioctl_generic);\),// \1,1' -i arch/um/kernel/ksyms.c"
fi
echo_status "Including UML Patch for $xpkg ($ver): $uml_patch."
export arch_machine="um"
var_insert makeopt " " "ARCH=um"
fi