summaryrefslogtreecommitdiffstats
path: root/rules/post/ptxd_make_image_common.make
blob: 3ad5737000b1143c6ec0e24f470d19a66eb3c220 (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
# -*-makefile-*-
#
# Copyright (C) 2003-2010 by the ptxdist project <ptxdist@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

IMAGE_REPO_DIST_DIR := $(call ptx/escape,$(PTXCONF_SETUP_IPKG_REPOSITORY)/$(call remove_quotes,$(PTXCONF_PROJECT))/dists/$(call remove_quotes,$(PTXCONF_PROJECT))$(call remove_quotes,$(PTXCONF_PROJECT_VERSION)))

image/env = \
	$(call ptx/env) \
	image_repo_dist_dir="$(IMAGE_REPO_DIST_DIR)"

world/image/env/impl = \
	$(call world/env, $(1))					\
	$(call image/env)					\
	image_env="$(call ptx/escape,$($(1)_ENV))"		\
	image_pkgs="$(call ptx/escape,$($(1)_PKGS))"		\
	image_files="$(call ptx/escape,$($(1)_FILES))"		\
	image_image="$(call ptx/escape,$($(1)_IMAGE))"		\
	image_label="$(call ptx/escape,$($(1)_LABEL))"

world/image/env = \
	$(call world/image/env/impl,$(strip $(1)))

# vim: syntax=make