Facebook
From Edgy Gibbon, 3 Years ago, written in Diff-output.
Embed
Download Paste or View Raw
Hits: 292
  1. diff --git a/kernel-release.spec b/kernel-release.spec
  2. index fa913a3..ce7e8b4 100644
  3. --- a/kernel-release.spec
  4. +++ b/kernel-release.spec
  5. @@ -1012,61 +1012,76 @@ CreateConfig() {
  6.         # (crazy) do not use %{S:X} to copy, if someone messes up we end up with broken stuff again
  7.         case ${arch} in
  8.         i?86)
  9. -               rm -rf .config
  10. -               %if %{with build_desktop}
  11. -               %if %{with gcc}
  12. -               cp -v ${config_dir}/i686-desktop-gcc-omv-defconfig .config
  13. -               %endif
  14. -               %if %{with clang}
  15. -               cp -v ${config_dir}/i686-desktop-clang-omv-defconfig .config
  16. -               %endif
  17. -               %endif
  18. -               %if %{with build_server}
  19. -               %if %{with gcc}
  20. -               cp -v ${config_dir}/i686-server-gcc-omv-defconfig .config
  21. -               %endif
  22. -               %if %{with clang}
  23. -               cp -v ${config_dir}/i686-server-clang-omv-defconfig .config
  24. -               %endif
  25. -               %endif
  26. +               case ${type} in
  27. +               desktop)
  28. +                       rm -rf .config
  29. +                       cp -v ${config_dir}/i686-desktop-gcc-omv-defconfig .config
  30. +                       ;;
  31. +               desktop-clang)
  32. +                       rm -rf .config
  33. +                       cp -v ${config_dir}/i686-desktop-clang-omv-defconfig .config
  34. +                       ;;
  35. +               server)
  36. +                       rm -rf .config
  37. +                       cp -v ${config_dir}/i686-server-gcc-omv-defconfig .config
  38. +                       ;;
  39. +               server-clang)
  40. +                       rm -rf .config
  41. +                       cp -v ${config_dir}/i686-server-clang-omv-defconfig .config
  42. +                       ;;
  43. +               *)
  44. +                       printf '%s\n' "ERROR: no such type ${type}"
  45. +                       exit 1
  46. +                       ;;
  47. +               esac
  48.                 ;;
  49.         x86_64)
  50. -               rm -rf .config
  51. -               %if %{with build_desktop}
  52. -               %if %{with gcc}
  53. -               cp -v ${config_dir}/x86_64-desktop-gcc-omv-defconfig .config
  54. -               %endif
  55. -               %if %{with clang}
  56. -               cp -v ${config_dir}/x86_64-desktop-clang-omv-defconfig .config
  57. -               %endif
  58. -               %endif
  59. -               %if %{with build_server}
  60. -               %if %{with gcc}
  61. -               cp -v ${config_dir}/x86_64-server-gcc-omv-defconfig .config
  62. -               %endif
  63. -               %if %{with clang}
  64. -               cp -v ${config_dir}/x86_64-server-clang-omv-defconfig .config
  65. -               %endif
  66. -               %endif
  67. +               case ${type} in
  68. +               desktop)
  69. +                       rm -rf .config
  70. +                       cp -v ${config_dir}/x86_64-desktop-gcc-omv-defconfig .config
  71. +                       ;;
  72. +               desktop-clang)
  73. +                       rm -rf .config
  74. +                       cp -v ${config_dir}/x86_64-desktop-clang-omv-defconfig .config
  75. +                       ;;
  76. +               server)
  77. +                       rm -rf .config
  78. +                       cp -v ${config_dir}/x86_64-server-gcc-omv-defconfig .config
  79. +                       ;;
  80. +               server-clang)
  81. +                       rm -rf .config
  82. +                       cp -v ${config_dir}/x86_64-server-clang-omv-defconfig .config
  83. +                       ;;
  84. +               *)
  85. +                       printf '%s\n' "ERROR: no such type ${type}"
  86. +                       exit 1
  87. +                       ;;
  88. +               esac
  89.                 ;;
  90.         znver1)
  91. -               rm -rf .config
  92. -               %if %{with build_desktop}
  93. -               %if %{with gcc}
  94. -               cp -v ${config_dir}/x86_64-znver-desktop-gcc-omv-defconfig .config
  95. -               %endif
  96. -               %if %{with clang}
  97. -               cp -v ${config_dir}/x86_64-znver-desktop-clang-omv-defconfig .config
  98. -               %endif
  99. -               %endif
  100. -               %if %{with build_server}
  101. -               %if %{with gcc}
  102. -               cp -v ${config_dir}/x86_64-znver-server-gcc-omv-defconfig .config
  103. -               %endif
  104. -               %if %{with clang}
  105. -               cp -v ${config_dir}/x86_64-znver-server-clang-omv-defconfig .config
  106. -               %endif
  107. -               %endif
  108. +               case ${type} in
  109. +               desktop)
  110. +                       rm -rf .config
  111. +                       cp -v ${config_dir}/x86_64-znver-desktop-gcc-omv-defconfig .config
  112. +                       ;;
  113. +               desktop-clang)
  114. +                       rm -rf .config
  115. +                       cp -v ${config_dir}/x86_64-znver-desktop-clang-omv-defconfig .config
  116. +                       ;;
  117. +               server)
  118. +                       rm -rf .config
  119. +                       cp -v ${config_dir}/x86_64-znver-server-gcc-omv-defconfig .config
  120. +                       ;;
  121. +               server-clang)
  122. +                       rm -rf .config
  123. +                       cp -v ${config_dir}/x86_64-znver-server-clang-omv-defconfig .config
  124. +                       ;;
  125. +               *)
  126. +                       printf '%s\n' "ERROR: no such type ${type}"
  127. +                       exit 1
  128. +                       ;;
  129. +               esac
  130.                 ;;
  131.         ppc64)
  132.                 CONFIGS=pseries_defconfig
  133.  

Replies to Untitled rss

Title Name Language When
Re: Untitled Beige Wigeon diff 3 Years ago.