OpenSDE Packages Database (without history before r20070)
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.

66 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../linux/arch/config.x86.sh
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. lx_ver="$1"
  15. # Map $SDECFG_X86_OPT to something meaningful to the kernel
  16. linux_arch_map="i386:M386
  17. i486:M486
  18. c3:MCYRIXIII
  19. c3-2:MVIAC3_2
  20. pentium:M586
  21. pentium-mmx:M586MMX
  22. pentiumpro:M686
  23. pentium2:MPENTIUMII
  24. pentium3:MPENTIUMIII
  25. pentium4:MPENTIUM4
  26. pentium-m:MPENTIUMM
  27. k6:MK6
  28. k6-2:MK6
  29. k6-3:MK6
  30. athlon:MK7
  31. athlon-tbird:MK7
  32. athlon4:MK7
  33. athlon-xp:MK7
  34. athlon-mp:MK7C"
  35. linux_arch="M386"
  36. for x in $linux_arch_map; do
  37. if [ "$SDECFG_X86_OPT" = "${x%:*}" ]; then
  38. linux_arch="${x#*:}"
  39. break
  40. fi
  41. done
  42. # we only want to inject it once
  43. for x in $( echo "$linux_arch_map" | cut -d: -f2 | sort -u ); do
  44. if [ "$linux_arch" = "$x" ]; then
  45. echo "CONFIG_$x=y"
  46. else
  47. echo "# CONFIG_$x is not set"
  48. fi
  49. done
  50. if [ $lx_ver -ge 2006024 ]; then
  51. # Merged i386 and x86-64
  52. echo "CONFIG_64BIT=n"
  53. else
  54. cat <<-EOT
  55. CONFIG_X86_GENERIC=y
  56. CONFIG_X86_PC=y
  57. EOT
  58. fi
  59. exec sh ${0%/*}/config-common.sh "$lx_ver"