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.

24 lines
1000 B

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