summaryrefslogtreecommitdiffstats
path: root/rules/post/ptxd_make_world_common.make
blob: a63466e21d2a6b87f3b19845117e77c72083aa33 (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# -*-makefile-*-
#
# Copyright (C) 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

ptx/env = \
	MAKE="$(call ptx/escape,$(MAKE))"					\
	PTXDIST_SYSROOT_TARGET="$(call ptx/escape,$(PTXDIST_SYSROOT_TARGET))"	\
	PTXDIST_SYSROOT_HOST="$(call ptx/escape,$(PTXDIST_SYSROOT_HOST))"	\
	PTXDIST_SYSROOT_CROSS="$(call ptx/escape,$(PTXDIST_SYSROOT_CROSS))"	\
										\
	ptx_nfsroot="$(call ptx/escape,$(ROOTDIR))"				\
										\
	ptx_extract_dir_target="$(call ptx/escape,$(BUILDDIR))"			\
	ptx_extract_dir_host="$(call ptx/escape,$(HOST_BUILDDIR))"		\
	ptx_extract_dir_cross="$(call ptx/escape,$(CROSS_BUILDDIR))"		\
										\
	ptx_state_dir="$(call ptx/escape,$(STATEDIR))"				\
	ptx_image_dir="$(call ptx/escape,$(IMAGEDIR))"				\
	ptx_report_dir="$(call ptx/escape,$(REPORTDIR))"			\
	ptx_release_dir="$(call ptx/escape,$(RELEASEDIR))"			\
	ptx_lib_dir="$(call ptx/escape,$(PTXDIST_LIB_DIR))"			\
	ptx_pkg_dir="$(call ptx/escape,$(PKGDIR))"				\
	ptx_pkg_dev_dir="$(call ptx/escape,$(PTXDIST_DEVPKG_PLATFORMDIR))"	\
	ptx_path_rules="$(call ptx/escape,$(PTXDIST_PATH_RULES))"		\
										\
	ptx_path_target="$(call ptx/escape,$(CROSS_PATH))"			\
	ptx_conf_env_target="$(call ptx/escape,$(CROSS_ENV))"			\
	ptx_conf_opt_autoconf_target="$(call ptx/escape,$(CROSS_AUTOCONF_USR))"	\
	ptx_conf_opt_cmake_target="$(call ptx/escape,$(CROSS_CMAKE_USR))"	\
	ptx_conf_opt_qmake_target="$(call ptx/escape,$(CROSS_QMAKE_OPT))"	\
										\
	ptx_path_host="$(call ptx/escape,$(HOST_PATH))"				\
	ptx_conf_env_host="$(call ptx/escape,$(HOST_ENV))"			\
	ptx_conf_opt_autoconf_host="$(call ptx/escape,$(HOST_AUTOCONF))"	\
	ptx_conf_opt_cmake_host="$(call ptx/escape,$(HOST_CMAKE_OPT))"		\
	ptx_conf_opt_autoconf_host_sysroot="$(call ptx/escape,$(HOST_AUTOCONF_SYSROOT))"\
	ptx_conf_opt_cmake_host_sysroot="$(call ptx/escape,$(HOST_CMAKE_OPT_SYSROOT))"\
										\
	ptx_path_cross="$(call ptx/escape,$(HOST_CROSS_PATH))"			\
	ptx_conf_env_cross="$(call ptx/escape,$(HOST_CROSS_ENV))"		\
	ptx_conf_opt_autoconf_cross="$(call ptx/escape,$(HOST_CROSS_AUTOCONF))"	\
	ptx_conf_opt_autoconf_cross_sysroot="$(call ptx/escape,$(HOST_CROSS_AUTOCONF_SYSROOT))"\
										\
	ptx_python_target="$(call ptx/escape,$(CROSS_PYTHON))"			\
	ptx_python3_target="$(call ptx/escape,$(CROSS_PYTHON3))"		\
	ptx_install_opt_python_target="$(call ptx/escape,$(CROSS_PYTHON_INSTALL))"\
										\
	ptx_python_host="$(call ptx/escape,$(HOSTPYTHON))"			\
	ptx_python3_host="$(call ptx/escape,$(HOSTPYTHON3))"			\
	ptx_install_opt_python_host="$(call ptx/escape,$(HOST_PYTHON_INSTALL))"	\
										\
	ptx_conf_opt_meson_target="$(call ptx/escape,$(CROSS_MESON_USR))"	\
	ptx_conf_env_meson_target="$(call ptx/escape,$(CROSS_MESON_ENV))"	\
										\
	ptx_conf_opt_meson_host="$(call ptx/escape,$(HOST_MESON_OPT))"		\
	ptx_conf_env_meson_host="$(call ptx/escape,$(HOST_ENV))"		\
										\
	ptx_xpkg_extra_args=$(PTXCONF_IMAGE_XPKG_EXTRA_ARGS)

world/env/impl = \
	pkg_stamp="$(notdir $(@))"						\
	pkg_pkg_dir="$(call ptx/escape,$($(1)_PKGDIR))"				\
	pkg_pkg_dev="$(call ptx/escape,$($(1)_DEVPKG))"				\
	pkg_license="$(call ptx/escape,$($(1)_LICENSE))"			\
	pkg_build_deps="$(call ptx/escape,$(PTX_MAP_B_dep_$(1)))"		\
	pkg_run_deps="$(call ptx/escape,$(PTX_MAP_R_dep_$(1)))"			\
	pkg_license_files="$(call ptx/escape,$($(1)_LICENSE_FILES))"		\
	pkg_makefile="$(call ptx/escape,$($(1)_MAKEFILE))"			\
	pkg_infile="$(call ptx/escape,$($(1)_INFILE))"				\
										\
	pkg_pkg="$(call ptx/escape,$($(1)))"					\
	pkg_version="$(call ptx/escape,$($(1)_VERSION))"			\
	pkg_config="$(call ptx/escape,$($(1)_CONFIG))"				\
	pkg_ref_config="$(call ptx/escape,$($(1)_REF_CONFIG))"			\
	pkg_path="$(call ptx/escape,$($(1)_PATH))"				\
	pkg_patch_series="$(call ptx/escape,$(call remove_quotes, $(PTXCONF_$(strip $(1))_SERIES)))"\
	pkg_patch_dir="$(call ptx/escape,$($(1)_PATCH_DIR))"			\
	pkg_src="$(call ptx/escape,$($(1)_SOURCE))"				\
	pkg_srcs="$(call ptx/escape,$($(1)_SOURCES))"				\
	pkg_md5s="$(call ptx/escape,$(foreach s,$($(1)_SOURCES),$($($(s))_MD5):))"\
	pkg_md5="$(call ptx/escape,$($(1)_MD5))"				\
	pkg_url="$(call ptx/escape,$($(1)_URL))"				\
	pkg_cfghash="$(call ptx/escape,$($(1)_CFGHASH))"			\
	pkg_srchash="$(call ptx/escape,$($(1)_EXTRACT_CFGHASH))"		\
										\
	pkg_dir="$(call ptx/escape,$($(1)_DIR))"				\
	pkg_subdir="$(call ptx/escape,$($(1)_SUBDIR))"				\
	pkg_strip_level="$(call ptx/escape,$($(1)_STRIP_LEVEL))"		\
										\
	pkg_tags_opt="$(call ptx/escape,$($(1)_TAGS_OPT))"			\
										\
	pkg_build_oot="$(call ptx/escape,$($(1)_BUILD_OOT))"			\
	pkg_build_dir="$(call ptx/escape,$($(1)_BUILD_DIR))"			\
										\
	pkg_wrapper_blacklist="$(call ptx/escape,$($(1)_WRAPPER_BLACKLIST))"	\
										\
	pkg_cppflags="$(call ptx/escape,$($(1)_CPPFLAGS))"			\
	pkg_cflags="$(call ptx/escape,$($(1)_CFLAGS))"				\
	pkg_cxxflags="$(call ptx/escape,$($(1)_CXXFLAGS))"			\
	pkg_ldflags="$(call ptx/escape,$($(1)_LDFLAGS))"			\
										\
	pkg_conf_tool="$(call ptx/escape,$($(1)_CONF_TOOL))"			\
	pkg_conf_env="$(call ptx/escape,$($(1)_CONF_ENV))"			\
	pkg_conf_opt="$(call ptx/escape,$($(1)_CONF_OPT))"			\
										\
	pkg_make_env="$(call ptx/escape,$($(1)_MAKE_ENV))" 			\
	pkg_make_opt="$(call ptx/escape,$($(1)_MAKE_OPT))"			\
	pkg_make_par="$(call ptx/escape,$($(1)_MAKE_PAR))"			\
										\
	pkg_install_opt="$(call ptx/escape,$($(1)_INSTALL_OPT))"		\
	pkg_binconfig_glob="$(call ptx/escape,$($(1)_BINCONFIG_GLOB))"		\
										\
	pkg_nfsroot_dirs="$(call ptx/escape,$($(1)_NFSROOT_DIRS))"		\
										\
	pkg_deprecated_builddir="$(call ptx/escape,$($(1)_BUILDDIR))"		\
	pkg_deprecated_env="$(call ptx/escape,$($(1)_ENV))"			\
	pkg_deprecated_autoconf="$(call ptx/escape,$($(1)_AUTOCONF))"		\
	pkg_deprecated_cmake="$(call ptx/escape,$($(1)_CMAKE))"			\
	pkg_deprecated_compile_env="$(call ptx/escape,$($(1)_COMPILE_ENV))"	\
	pkg_deprecated_makevars="$(call ptx/escape, $($(1)_MAKEVARS))"

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

# vim: syntax=make