diff options
author | Jon Ringle <jon@ringle.org> | 2010-01-23 00:39:31 -0500 |
---|---|---|
committer | Jon Ringle <jon@ringle.org> | 2010-01-25 04:55:55 -0500 |
commit | 45c3b25f0f192cd747fdb6cf90f82dfe948e4400 (patch) | |
tree | 560f41efbd117d742123e03184f76824d6c93d1d /rules/initramfs-user-spec.make | |
parent | 1488810e6b6547264d07e798b42db167e2ed5a26 (diff) | |
download | ptxdist-45c3b25f0f192cd747fdb6cf90f82dfe948e4400.tar.gz ptxdist-45c3b25f0f192cd747fdb6cf90f82dfe948e4400.tar.xz |
[klibc/initramfs] Rename {klibc,initramfs}-user-spec
Rename klibc-user-spec more appropriately to initramfs-user-spec
Signed-off-by: Jon Ringle <jon@ringle.org>
Diffstat (limited to 'rules/initramfs-user-spec.make')
-rw-r--r-- | rules/initramfs-user-spec.make | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/rules/initramfs-user-spec.make b/rules/initramfs-user-spec.make new file mode 100644 index 000000000..c4355141d --- /dev/null +++ b/rules/initramfs-user-spec.make @@ -0,0 +1,87 @@ +# -*-makefile-*- +# +# Copyright (C) 2009 by Jon Ringle <jon@ringle.org> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_INITRAMFS_USER_SPEC) += initramfs-user-spec + +# +# Dummy to keep ipkg happy +# +INITRAMFS_USER_SPEC_VERSION := $(INITRAMFS_TOOLS_VERSION) + +ifdef PTXCONF_INITRAMFS_USER_SPEC +$(STATEDIR)/klibc.targetinstall.post: $(STATEDIR)/initramfs-user-spec.targetinstall +endif + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(STATEDIR)/initramfs-user-spec.get: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/initramfs-user-spec.extract: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +$(STATEDIR)/initramfs-user-spec.prepare: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/initramfs-user-spec.compile: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- +# + +$(STATEDIR)/initramfs-user-spec.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/initramfs-user-spec.targetinstall: $(STATEDIR)/klibc.targetinstall + @$(call targetinfo) +# +# adding user specific files to the list last +# Note: files without a leading '/' get a prefix path of $(PTXDIST_WORKSPACE)/initramfs +# + cat $(PTXDIST_WORKSPACE)/initramfs_spec | while read type target source rest; do \ + if [ "$$type" == "file" ]; then \ + if [ "$$(echo "$$source" | grep "^/")" == "" ]; then \ + source=$(PTXDIST_WORKSPACE)/initramfs/$$source; \ + fi; \ + fi; \ + echo "$$type $$target $$source $$rest" >> $(INITRAMFS_CONTROL); \ + done + + @$(call touch) + +# vim: syntax=make |