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

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