Browse Source

overlay: Introduced overlays handling

legacy/next/gcc
Alejandro Mery 15 years ago
parent
commit
1d02dc6b72
3 changed files with 46 additions and 1 deletions
  1. +1
    -1
      overlay.d/busybox-init/etc_inittab.txt
  2. +42
    -0
      overlay.in
  3. +3
    -0
      parse-config

busybox/embedded-init/etc_inittab.txt → overlay.d/busybox-init/etc_inittab.txt

@ -1,7 +1,7 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/mnemosyne/busybox/embedded-init/etc_inittab.txt
# Filename: target/mnemosyne/overlay.d/busybox-init/etc_inittab.txt
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.

+ 42
- 0
overlay.in

@ -0,0 +1,42 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/mnemosyne/overlay.in
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
mnemosyne_overlay_dir="$base/target/$SDECFG_TRG_MNEMOSYNE/overlay.d"
mnemosyne_overlay=
mnemosyne_overlay_apply()
{
local x=
for x; do
overlay_apply "$x"
done
}
hook_add postdoc 5 'eval mnemosyne_overlay_apply $mnemosyne_overlay'
# $pkg specific overlays
if [ -d "$mnemosyne_overlay_dir/pkgs/$pkg/" ]; then
var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/pkgs/$pkg/"
fi
# conditional $pkg specific overlays
case "$pkg" in
busybox)
if [ "$SDECFG_TRG_MNEMOSYNE_EMBEDDED_INIT" = 1 ]; then
var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/busybox-init"
fi
;;
esac
unset mnemosyne_overlay_dir

+ 3
- 0
parse-config

@ -53,6 +53,9 @@ mnemosyne_postinstall() {
esac
}
# check overlays
. target/$SDECFG_TRG_MNEMOSYNE/overlay.in
if [ "$SDECFG_TRG_MNEMOSYNE_DOC" == "minimal" ]; then
echo_status "Just minimal documentation files will be flisted"
mnemosyne_flist_just_minimal_docs() {

Loading…
Cancel
Save