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.

49 lines
1.3 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-64.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. # we will ignore the linux version for now, returning the same for all
  15. linux_ver="$1"
  16. # Map $SDECFG_X8664_OPT to something meaningful to the kernel
  17. linux_arch_map="k8:MK8
  18. opteron:MK8
  19. athlon64:MK8
  20. athlon-fx:MK8
  21. em64t:MPSC"
  22. linux_arch=
  23. for x in $linux_arch_map; do
  24. if [ "$SDECFG_X8664_OPT" = "${x%:*}" ]; then
  25. linux_arch="${x#*:}"
  26. break
  27. fi
  28. done
  29. # we only want to inject it once
  30. for x in $( echo "$linux_arch_map" | cut -d: -f2 | sort -u ); do
  31. if [ "$linux_arch" = "$x" ]; then
  32. echo "CONFIG_$x=y"
  33. else
  34. echo "# CONFIG_$x is not set"
  35. fi
  36. done
  37. # and as a fallback, GENERIC_CPU
  38. if [ -z "$linux_arch" ]; then
  39. echo "CONFIG_GENERIC_CPU=y"
  40. else
  41. echo "# CONFIG_GENERIC_CPU is not set"
  42. fi
  43. exec sh ${0%/*}/config-common.sh "$linux_ver"