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.

42 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/mnemosyne/overlay.in
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. mnemosyne_overlay_dir="$base/target/$SDECFG_TRG_MNEMOSYNE/overlay.d"
  15. mnemosyne_overlay=
  16. mnemosyne_overlay_apply()
  17. {
  18. local x=
  19. for x; do
  20. overlay_apply "$x"
  21. done
  22. }
  23. hook_add postdoc 5 'eval mnemosyne_overlay_apply $mnemosyne_overlay'
  24. # $pkg specific overlays
  25. if [ -d "$mnemosyne_overlay_dir/pkgs/$pkg/" ]; then
  26. var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/pkgs/$pkg/"
  27. fi
  28. # conditional $pkg specific overlays
  29. case "$pkg" in
  30. busybox)
  31. if [ "$SDECFG_TRG_MNEMOSYNE_EMBEDDED_INIT" = 1 ]; then
  32. var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/busybox-init"
  33. fi
  34. ;;
  35. esac
  36. unset mnemosyne_overlay_dir