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.

100 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../busybox/busybox.conf
  5. # Copyright (C) 2006 - 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. for x in $( match_source_file -p patch ); do
  17. var_append patchfiles ' ' $x
  18. done
  19. . $base/package/*/uclibc/conffiles-functions.in
  20. runconf=0
  21. var_append conffiles ' ' "$builddir/.config"
  22. hook_add premake 1 'busybox_config'
  23. busybox_config() {
  24. local BB_arch=$( echo $arch | arch2uname )
  25. # generate default config rules
  26. default_config > $builddir/.config
  27. if [ "$SDECFG_PKG_BUSYBOX_DEFCONFIG" == 0 ]; then
  28. eval $MAKE allnoconfig ARCH=$BB_arch
  29. else
  30. eval $MAKE defconfig ARCH=$BB_arch
  31. fi
  32. conffiles_loop 2 ARCH=$BB_arch
  33. }
  34. default_config() {
  35. echo "O CONFIG_MAKEDEVS"
  36. if [ "$SDECFG_STATIC" == 1 ]; then
  37. echo "X CONFIG_STATIC"
  38. else
  39. echo "O CONFIG_STATIC"
  40. echo "X CONFIG_BUILD_LIBBUSYBOX"
  41. fi
  42. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  43. echo "X CONFIG_PREFIX \"$root${SDECFG_PKG_BUSYBOX_ET_DIR#/}\""
  44. elif [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then
  45. echo "X CONFIG_INSTALL_APPLET_DONT"
  46. echo "O CONFIG_INSTALL_APPLET_SYMLINKS"
  47. echo "X CONFIG_PREFIX \"${root:-/}\""
  48. else
  49. echo "X CONFIG_PREFIX \"${root:-/}\""
  50. fi
  51. if [ "$SDECFG_DISABLE_NLS" = 1 ]; then
  52. echo "O CONFIG_LOCALE_SUPPORT"
  53. fi
  54. if [ "$SDECFG_DEBUG" = 0 ]; then
  55. echo "O CONFIG_DEBUG"
  56. else
  57. echo "X CONFIG_DEBUG"
  58. fi
  59. if [ "$SDECFG_PKG_BUSYBOX_SUSv2" != 1 ]; then
  60. echo "O CONFIG_INCLUDE_SUSv2"
  61. else
  62. echo "X CONFIG_INCLUDE_SUSv2"
  63. fi
  64. }
  65. # add custom/target configuration from $targetdir
  66. if [ -e $targetdir/busybox.config ] ; then
  67. var_append conffiles ' ' $targetdir/busybox.config
  68. fi
  69. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  70. prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
  71. set_confopt
  72. var_append flistroot ' ' "${prefix%%/*}"
  73. var_append conffiles ' ' "$confdir/emergency.config"
  74. fi
  75. var_append conffiles ' ' $confdir/broken.config
  76. # when SDECFG_DEBUG is enabled, we don't get busybox, just busybox_unstripped
  77. # but `make install` still expects busybox to be there
  78. #
  79. [ "$SDECFG_DEBUG" != 1 ] || hook_add inmake 5 'cp -v busybox_unstripped busybox'
  80. # save .config file for the future
  81. hook_add postdoc 9 'cp -v .config busybox.links $root/$docdir'