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.

129 lines
3.7 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mnemoc/uclibc/uclibc.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. . $confdir/functions.in
  23. uclibc_preparelocale() {
  24. find ./charmaps -name "*.pairs" > codesets.txt
  25. cp LOCALES locales.txt
  26. }
  27. uclibc_kernellinks() {
  28. ln -svf $root/include/linux include/linux
  29. ln -svf $root/include/asm include/asm
  30. ln -svf $root/include/scsi include/scsi
  31. }
  32. if [ $ROCKCFG_CROSSBUILD = 1 ]; then
  33. $(SED) "s,^CROSS=.*,CROSS=$bindir/${arch_target}-,g" Rules.mak
  34. fi
  35. # rulesets
  36. var_append conffiles ' ' $confdir/clean_arch.config
  37. var_append conffiles ' ' /tmp/$$.config
  38. # i'll use this file for the generated rules
  39. rm -f /tmp/$$.config
  40. {
  41. # TARGET_ARCH
  42. cpu="`echo "$arch_machine" | sed -e s/i.86/i386/ `"
  43. echo "X TARGET_$cpu"
  44. echo "X TARGET_ARCH \"$cpu\""
  45. if [ "$arch_bigendian" = "yes" ]; then
  46. echo "X ARCH_BIG_ENDIAN"
  47. else
  48. echo "X ARCH_LITTLE_ENDIAN"
  49. fi
  50. # CONFIG_
  51. if [ "$arch" == "x86" ]; then
  52. case "$ROCKCFG_X86_OPT" in
  53. generic) echo "X CONFIG_GENERIC_386" ;;
  54. i386) echo "X CONFIG_386" ;;
  55. i486) echo "X CONFIG_486" ;;
  56. pentium) echo "X CONFIG_586" ;;
  57. pentium-mmx) echo "X CONFIG_586MMX" ;;
  58. pentiumpro|pentium2)
  59. echo "X CONFIG_686" ;;
  60. pentium3) echo "X CONFIG_PENTIUMIII" ;;
  61. pentium4) echo "X CONFIG_PENTIUM4" ;;
  62. k6*) echo "X CONFIG_K6" ;;
  63. athlon*) echo "X CONFIG_K7" ;;
  64. via-c3*) echo "X CONFIG_CYRIXIII" ;;
  65. esac
  66. fi
  67. # PREFIX
  68. echo "X KERNEL_SOURCE \"$root/usr/src/linux\""
  69. echo "X RUNTIME_PREFIX \"/\""
  70. echo "X DEVEL_PREFIX \"/usr\""
  71. # locale
  72. if [ "$ROCKCFG_DISABLE_NLS" = "0" ]; then
  73. echo "X UCLIBC_HAS_LOCALE"
  74. fi
  75. # util-linux needs it to build some mounts
  76. # FIXME: this has to be done in the oposite way (disable those mounts
  77. # if libc doesn't have support)
  78. echo "X UCLIBC_HAS_RPC"
  79. # echo "X UCLIBC_HAS_FULL_RPC"
  80. # to get rint (iproute2)
  81. echo "X DO_C99_MATH"
  82. # to make sed happy
  83. echo "X ULIBC_HAS_WCHAR"
  84. } > /tmp/$$.config
  85. if [ "$ROCKCFG_DISABLE_NLS" = "0" ]; then
  86. hook_add preconf 5 '( cd extra/locale; uclibc_preparelocale )'
  87. var_append patchfiles ' ' $confdir/make_locale_after_headers.diff
  88. fi
  89. var_append makeopt ' ' "PREFIX=$root"
  90. var_append makeopt ' ' "RUNTIME_PREFIX=/ DEVEL_PREFIX=/usr/"
  91. runconf=0
  92. makeinstopt="$makeopt"
  93. if [ $stagelevel -eq 0 ]; then
  94. var_append patchfiles ' ' $confdir/dont_validate_kernelsource_on_stage0.diff
  95. # FIXME: i don't know why, but if i split this hook, the second disapears
  96. # i wanted the var append at premake-9
  97. hook_add premake 1 "auto_config 2; var_append makeopt ' ' headers"
  98. var_append makeinstopt ' ' install_dev
  99. else
  100. hook_add premake 1 'auto_config 2'
  101. var_append makeinstopt ' ' install
  102. # remove symlinks to avoid shares (install_dev)
  103. hook_add inmake 9 'rm -v include/{asm,linux,scsi}'
  104. # utils (ldd, ldconfig )
  105. hook_add postmake 5 'uclibc_kernellinks'
  106. hook_add postmake 6 'eval "$MAKE $makeopt utils install_utils"'
  107. fi
  108. var_append flist''del '|' "usr/include"