summaryrefslogtreecommitdiffstats
path: root/rules/post/ptxd_make_image_common.make
blob: 8bf295c449222af29cc3e244c9c898aecc18416c (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
# -*-makefile-*-
#
# Copyright (C) 2003-2010 by the ptxdist project <ptxdist@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.
#

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) \
	ptx_packages_selected="$(PTX_PACKAGES_SELECTED)" \
	image_pkgs_selected_target="$(call ptx/escape,$(PTX_PACKAGES_INSTALL))" \
	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