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.

75 lines
2.0 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 - 2007 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. eval $MAKE defconfig ARCH=$BB_arch
  28. conffiles_loop 2 ARCH=$BB_arch
  29. }
  30. default_config() {
  31. echo "O CONFIG_MAKEDEVS"
  32. if [ "$SDECFG_STATIC" == 1 ]; then
  33. echo "X CONFIG_STATIC"
  34. else
  35. echo "O CONFIG_STATIC"
  36. echo "X CONFIG_BUILD_LIBBUSYBOX"
  37. fi
  38. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  39. echo "X CONFIG_PREFIX \"${SDECFG_PKG_BUSYBOX_ET_DIR#/}\""
  40. elif [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then
  41. echo "X CONFIG_INSTALL_APPLET_DONT"
  42. echo "X CONFIG_PREFIX \"${root:-/}\""
  43. else
  44. echo "X CONFIG_PREFIX \"${root:-/}\""
  45. fi
  46. }
  47. # add custom/target configuration from $targetdir
  48. if [ -e $targetdir/busybox.config ] ; then
  49. var_append conffiles ' ' $targetdir/busybox.config
  50. fi
  51. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  52. prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
  53. set_confopt
  54. var_append flistroot ' ' "${prefix%%/*}"
  55. var_append conffiles ' ' "$confdir/emergency.config"
  56. fi
  57. var_append conffiles ' ' $confdir/broken.config
  58. # save .config file for the future
  59. hook_add postdoc 9 'cp -v .config busybox.links $root/$docdir'