diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-28 10:18:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-28 10:18:12 (EDT) |
commit | 1875d216059721bcd2c0288b33dc1dabe02fb92a (patch) | |
tree | 15f0f8d6967d626b12390c0034dd70c49f24b8f9 | |
parent | 1d95388a5947b83cb632c92540a5472cde4739aa (diff) |
Support run-time platform configuration packages.
-rwxr-xr-x | build | 21 | ||||
-rwxr-xr-x | config | 20 | ||||
-rw-r--r-- | src/build/busybox/1.21.1/busybox.config (renamed from src/busybox/1.21.1/busybox.config) | 0 | ||||
-rw-r--r-- | src/build/busybox/1.21.1/inittab (renamed from src/busybox/1.21.1/inittab) | 0 | ||||
-rw-r--r-- | src/build/linux-libre/3.10.45~gnu/config (renamed from src/linux-libre/3.10.45~gnu/config) | 0 | ||||
-rw-r--r-- | src/build/linux-libre/3.10.45~gnu/image (renamed from src/linux-libre/3.10.45~gnu/image) | 0 |
6 files changed, 32 insertions, 9 deletions
@@ -12,11 +12,22 @@ build: install: build set -e; \ - for pkg in src/*; do \ - pkg="$${pkg#src/}"; \ - for ver in "src/$${pkg}/"*; do \ - ver="$${ver#src/$${pkg}/}"; \ + for pkg in src/build/*; do \ + pkg="$${pkg#src/build/}"; \ + for ver in "src/build/$${pkg}/"*; do \ + ver="$${ver#src/build/$${pkg}/}"; \ mkdir -p "$(platconf_dir)"; \ - cp -p "src/$${pkg}/$${ver}/"* "$(platconf_dir)"; \ + cp -p "src/build/$${pkg}/$${ver}/"* "$(platconf_dir)"; \ + done; \ + done + set -e; \ + for pkg in src/run/*; do \ + pkg="$${pkg#src/run/}"; \ + mkdir "config-$${pkg}.data"; \ + find "src/run/$${pkg}" -type f | while read -r file; do \ + file="$${file#src/run/$${pkg}}"; \ + mkdir -p "config-$${pkg}.data/$${file%/*}"; \ + cp -p "src/run/$${pkg}/$${file}" \ + "config-$${pkg}.data/$${file}"; \ done; \ done @@ -39,9 +39,9 @@ config() >"config-${plat}-common.pkg/docs" msg 'Metadata for package "%s" generated.' "config-${plat}-common" - # Make each config-*-* package. - for pkg in src/*; do - pkg="${pkg#src/}" + # Make each config-* package. + for pkg in src/build/*; do + pkg="${pkg#src/build/}" mkdir -p "config-${pkg}-${plat}.pkg" cat >"config-${pkg}-${plat}.pkg/control" <<-EOF Architecture: all @@ -52,11 +52,23 @@ config() msg 'Metadata for package "%s" generated.' \ "config-${pkg}-${plat}" done + for pkg in src/run/*; do + pkg="${pkg#src/run/}" + mkdir -p "config-${pkg}.pkg" + cat >"config-${pkg}.pkg/control" <<-EOF + Architecture: all + Platform: ${plat} + Depends: config-${plat}-common (= \${Binary-Version}) + Description: "${plat}" platform configuration for ${pkg} + EOF + msg 'Metadata for package "%s" generated.' \ + "config-${pkg}" + done } clean() { - rm -Rf config-*-*.pkg/ + rm -Rf config-*.pkg/ } main "${@}" diff --git a/src/busybox/1.21.1/busybox.config b/src/build/busybox/1.21.1/busybox.config index 28bc676..28bc676 100644 --- a/src/busybox/1.21.1/busybox.config +++ b/src/build/busybox/1.21.1/busybox.config diff --git a/src/busybox/1.21.1/inittab b/src/build/busybox/1.21.1/inittab index 9455f5e..9455f5e 100644 --- a/src/busybox/1.21.1/inittab +++ b/src/build/busybox/1.21.1/inittab diff --git a/src/linux-libre/3.10.45~gnu/config b/src/build/linux-libre/3.10.45~gnu/config index 7c6ad57..7c6ad57 100644 --- a/src/linux-libre/3.10.45~gnu/config +++ b/src/build/linux-libre/3.10.45~gnu/config diff --git a/src/linux-libre/3.10.45~gnu/image b/src/build/linux-libre/3.10.45~gnu/image index d95903f..d95903f 100644 --- a/src/linux-libre/3.10.45~gnu/image +++ b/src/build/linux-libre/3.10.45~gnu/image |