summaryrefslogtreecommitdiffstats
path: root/rules/post/ptxd_make_xpkg_common.make
blob: 6de55ffba2e87c70fbcbc5bed989f3d7c7cba42e (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
# -*-makefile-*-
#
# Copyright (C) 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#               2011 by George McCollister <george.mccollister@gmail.com>
#
# 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.
#

#
# $1: xpkg label
# $2: PKG, uppercase pkg name
#
xpkg/env/impl = \
	$(call world/env, $(2))							\
	CROSS_STRIP="$(call ptx/escape,$(CROSS_STRIP))"				\
	CROSS_OBJCOPY="$(call ptx/escape,$(CROSS_OBJCOPY))"			\
	CROSS_READELF="$(call ptx/escape,$(CROSS_READELF))"			\
	pkg_xpkg="$(call ptx/escape,$(1))"					\
	pkg_xpkg_version="$(call ptx/escape,$($(2)_XPKG_VERSION))"

#
# $1: xpkg label
#
xpkg/env = \
	$(call xpkg/env/impl, $(strip $(1)),$(PTX_MAP_TO_PACKAGE_$(notdir $(basename $(basename $(@))))))

# vim: syntax=make