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.

93 lines
2.5 KiB

  1. Index: ../linux/linux.conf
  2. ===================================================================
  3. --- ../linux/linux.conf (revision 7)
  4. +++ ../linux/linux.conf (working copy)
  5. @@ -24,8 +24,6 @@
  6. pkg_linux_cross=""
  7. case "$xpkg-" in
  8. - *-header-*)
  9. - pkg_linux_mode=header ;;
  10. *-source-*)
  11. unset splitdesc_dev
  12. pkg_linux_mode=source ;;
  13. @@ -36,12 +34,8 @@
  14. case "$xpkg" in
  15. *-cross-*)
  16. pkg_linux_cross="${xpkg#**-cross-}"
  17. - if [ $pkg_linux_mode = header ]; then
  18. - echo_status "Preparing to build a linux kernel $pkg_linux_cross cross-headers package."
  19. - else
  20. - echo_error "Building linux kernel cross packages isn't supported yet."
  21. - exit 1
  22. - fi
  23. + echo_error "Building linux kernel cross packages isn't supported yet."
  24. + exit 1
  25. ;;
  26. esac
  27. @@ -347,52 +341,6 @@
  28. rm -f .config.old .config.[1-9]
  29. }
  30. -main_lx_header() {
  31. - echo "Extracting the Linux Kernel Sources [$ver] ... "
  32. - tar $taropt $archdir/$srctar
  33. - cd linux-$vanilla_ver
  34. -
  35. - # patch and configure
  36. - lx_config
  37. -
  38. - if [ -z "$pkg_linux_cross" ]; then
  39. - incdir="$root/$prefix/include/linux$treever"
  40. - else
  41. - incdir="$root/$prefix/$pkg_linux_cross-unknown-linux-gnu/include"
  42. - fi
  43. -
  44. - # install the header files - and do some post-processing for sparc
  45. - rm -rf $incdir/{asm,asm-generic,linux,asm-sparc,asm-sparc64}
  46. - mkdir -p $incdir
  47. - if [ "$lx_cpu" != sparc -a "$lx_cpu" != sparc64 ]
  48. - then
  49. - mkdir -p $incdir/asm
  50. - cp -rv include/asm/* $incdir/asm/
  51. - cp -rv include/{asm-generic,linux} $incdir/
  52. - else
  53. - # we can only generate this files when we have a cross compiler
  54. - # which is stage 1 and above ...
  55. - if [ $stagelevel -gt 0 -a $treever != 26 ] ; then
  56. - # build two generated headers first ...
  57. - make ARCH=sparc CROSS_COMPILE=$archprefix KCC=$KCC \
  58. - arch/sparc/kernel/Makefile check_asm
  59. - [ $lx_cpu = sparc64 ] && \
  60. - make ARCH=sparc64 CROSS_COMPILE=$archprefix KCC=sparc64-unknown-linux-gnu-gcc \
  61. - arch/sparc64/kernel/Makefile check_asm
  62. - fi
  63. -
  64. - cp -rv include/{asm-{sparc{,64},generic},linux} $incdir/
  65. - cp -v $confdir/generate-asm . ; chmod +x ./generate-asm
  66. - ./generate-asm $incdir
  67. - fi
  68. - if [ -z "$pkg_linux_cross" -a "linux$treever" = "$ROCKCFG_PKG_LINUX_HEADERS" ]; then
  69. - for x in $incdir/*; do
  70. - rm -rf $root/$prefix/include/${x##*/}
  71. - ln -sf linux$treever/${x##*/} $root/$prefix/include/${x##*/}
  72. - done
  73. - fi
  74. -}
  75. -
  76. main_lx() {
  77. lx_config
  78. @@ -534,11 +482,6 @@
  79. createdocs=0
  80. custmain="main_lx_src"
  81. ;;
  82. - header)
  83. - autoextract=0
  84. - createdocs=0
  85. - custmain="main_lx_header"
  86. - ;;
  87. image)
  88. custmain="main_lx"
  89. autopatch=0