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.

58 lines
1.5 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 - 2010 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. local x=
  18. for x; do
  19. overlay_apply "$x"
  20. done
  21. }
  22. hook_add postdoc 6 'eval mnemosyne_overlay_apply $mnemosyne_overlay'
  23. # $pkg specific overlays
  24. y="pkgs"
  25. for x in vserver HD initrd; do
  26. if [ "$SDECFG_TRG_MNEMOSYNE_BOOT" = "$x" ]; then
  27. y="$y boot-$x"
  28. else
  29. y="$y boot-no$x"
  30. fi
  31. done
  32. for x in $y; do
  33. z="$mnemosyne_overlay_dir/$x/$pkg/"
  34. if [ -d "$z" ]; then
  35. var_append mnemosyne_overlay ' ' "$z"
  36. fi
  37. done
  38. # conditional $pkg specific overlays
  39. case "$pkg" in
  40. busybox)
  41. if [ "$SDECFG_TRG_MNEMOSYNE_EMBEDDED_INIT" = 1 ]; then
  42. var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/busybox-init"
  43. fi
  44. ;;
  45. sysfiles)
  46. if [ "$SDECFG_TRG_MNEMOSYNE_FOOTPRINT" = embedded ]; then
  47. var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/$pkg-embedded"
  48. fi
  49. ;;
  50. esac
  51. unset mnemosyne_overlay_dir