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.

66 lines
1.9 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. hook_add premake 1 'busybox_config'
  22. busybox_config() {
  23. local BB_arch=$( echo $arch | arch2uname )
  24. eval $MAKE defconfig ARCH=$BB_arch
  25. conffiles_loop 2 ARCH=$BB_arch
  26. }
  27. # add basic config
  28. var_append conffiles ' ' "$confdir/busybox.config"
  29. [ "$SDECFG_STATIC" != 1 ] || var_append conffiles ' ' "$confdir/static.config"
  30. # add custom/target configuration from $targetdir
  31. if [ -e $targetdir/busybox.config ] ; then
  32. var_append conffiles ' ' $targetdir/busybox.config
  33. fi
  34. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  35. prefix="${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
  36. set_confopt
  37. var_append flistroot ' ' "${prefix%%/*}"
  38. var_append conffiles ' ' "$confdir/emergency.config"
  39. fi
  40. # FIXME: shouldn't emergency thing force the symlinks creation? (on config.in)
  41. if [ "$SDECFG_PKG_BUSYBOX_SYMLINKS" = 0 ] ; then
  42. makeinstopt=''
  43. hook_add postmake 5 'cp -v busybox $root/$bindir'
  44. else
  45. if [ "$SDECFG_PKG_BUSYBOX_ET" = 1 ] ; then
  46. var_append makeinstopt ' ' "CONFIG_PREFIX=${SDECFG_PKG_BUSYBOX_ET_DIR#/}"
  47. else
  48. var_append makeinstopt ' ' "CONFIG_PREFIX=$root"
  49. fi
  50. fi
  51. # save .config file for the future
  52. hook_add postdoc 9 'cp -v .config busybox.links $root/$docdir'