Mnemosyne is a abstract distribution originally designed for ROCKLinux, but currently only support the trunk of OpenSDE.
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.

53 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/mnemosyne/pkg_conf/busybox.conf
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2002 - 2006 Alejandro Mery
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. BB_MNEMOSYNE_DIR="$base/target/$SDECFG_TRG_MNEMOSYNE/busybox"
  16. bb_mnemosyne_overlay=
  17. bb_mnemosyne_overlay_apply()
  18. {
  19. local x=
  20. for x in $bb_mnemosyne_overlay; do
  21. overlay_apply "$x"
  22. done
  23. }
  24. hook_add postdoc 5 'bb_mnemosyne_overlay_apply'
  25. bb_mnemosyne_append()
  26. {
  27. local x=
  28. local y=
  29. for x; do
  30. # busybox config settings
  31. y="$BB_MNEMOSYNE_DIR/$x.config"
  32. [ ! -s "$y" ] || var_append conffiles ' ' "$y"
  33. # overlay directories
  34. y="$BB_MNEMOSYNE_DIR/$x"
  35. [ ! -d "$y/" ] || var_append bb_mnemosyne_overlay ' ' "$y"
  36. done
  37. }
  38. # mnemosyne generics
  39. bb_mnemosyne_append mnemosyne
  40. case "$SDECFG_TRG_MNEMOSYNE_FOOTPRINT" in
  41. embedded) bb_mnemosyne_append embedded
  42. [ "$SDECFG_TRG_MNEMOSYNE_EMBEDDED_INIT" = 1 ] && bb_mnemosyne_append embedded-init
  43. ;;
  44. esac
  45. unset bb_mnemosyne_append
  46. unset BB_MNEMOSYNE_DIR