summaryrefslogtreecommitdiffstats
path: root/rules/image-root-cpio.make
blob: c883abe4de894f1c865a61f1b55a5b059068054b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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