diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-09-30 15:45:52 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-09-30 15:45:52 +0200 |
commit | 2c117c8065660f45367d5d7d11c441fbe23bd6fe (patch) | |
tree | e859e7f2bfd0f8d45699809315e9c049c1823dd5 /rules/image-root-cpio.make | |
parent | 8906865c33ba0724c0240c74fd6a190c85ebaba0 (diff) | |
download | ptxdist-2c117c8065660f45367d5d7d11c441fbe23bd6fe.tar.gz ptxdist-2c117c8065660f45367d5d7d11c441fbe23bd6fe.tar.xz |
add new-style rules for root.cpio/root.cpio.gz
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/image-root-cpio.make')
-rw-r--r-- | rules/image-root-cpio.make | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/rules/image-root-cpio.make b/rules/image-root-cpio.make new file mode 100644 index 000000000..c883abe4d --- /dev/null +++ b/rules/image-root-cpio.make @@ -0,0 +1,40 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# 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 +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_ROOT_CPIO) += image-root-cpio + +# +# Paths and names +# +IMAGE_ROOT_CPIO := image-root-cpio +IMAGE_ROOT_CPIO_DIR := $(BUILDDIR)/$(IMAGE_ROOT_CPIO) +IMAGE_ROOT_CPIO_IMAGE := $(IMAGEDIR)/root.cpio +IMAGE_ROOT_CPIO_FILES := $(IMAGEDIR)/root.tgz +IMAGE_ROOT_CPIO_CONFIG := cpio.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +IMAGE_ROOT_CPIO_ENV := \ + FORMAT="newc" \ + COMPRESS= + +ifdef PTXCONF_IMAGE_ROOT_CPIO +$(IMAGE_ROOT_CPIO_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_ROOT_CPIO) + @$(call finish) +endif + +# vim: syntax=make |