• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# ---------------------------------------------------------------
18# Generic functions
19# TODO: Move these to definitions.make once we're able to include
20# definitions.make before config.make.
21
22###########################################################
23## Return non-empty if $(1) is a C identifier; i.e., if it
24## matches /^[a-zA-Z_][a-zA-Z0-9_]*$/.  We do this by first
25## making sure that it isn't empty and doesn't start with
26## a digit, then by removing each valid character.  If the
27## final result is empty, then it was a valid C identifier.
28##
29## $(1): word to check
30###########################################################
31
32_ici_digits := 0 1 2 3 4 5 6 7 8 9
33_ici_alphaunderscore := \
34    a b c d e f g h i j k l m n o p q r s t u v w x y z \
35    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _
36define is-c-identifier
37$(strip \
38  $(if $(1), \
39    $(if $(filter $(addsuffix %,$(_ici_digits)),$(1)), \
40     , \
41      $(eval w := $(1)) \
42      $(foreach c,$(_ici_digits) $(_ici_alphaunderscore), \
43        $(eval w := $(subst $(c),,$(w))) \
44       ) \
45      $(if $(w),,TRUE) \
46      $(eval w :=) \
47     ) \
48   ) \
49 )
50endef
51
52# TODO: push this into the combo files; unfortunately, we don't even
53# know HOST_OS at this point.
54trysed := $(shell echo a | sed -E -e 's/a/b/' 2>/dev/null)
55ifeq ($(trysed),b)
56  SED_EXTENDED := sed -E
57else
58  trysed := $(shell echo c | sed -r -e 's/c/d/' 2>/dev/null)
59  ifeq ($(trysed),d)
60    SED_EXTENDED := sed -r
61  else
62    $(error Unknown sed version)
63  endif
64endif
65
66###########################################################
67## List all of the files in a subdirectory in a format
68## suitable for PRODUCT_COPY_FILES and
69## PRODUCT_SDK_ADDON_COPY_FILES
70##
71## $(1): Glob to match file name
72## $(2): Source directory
73## $(3): Target base directory
74###########################################################
75
76define find-copy-subdir-files
77$(sort $(shell find $(2) -name "$(1)" -type f | $(SED_EXTENDED) "s:($(2)/?(.*)):\\1\\:$(3)/\\2:" | sed "s://:/:g"))
78endef
79
80# ---------------------------------------------------------------
81# Check for obsolete PRODUCT- and APP- goals
82ifeq ($(CALLED_FROM_SETUP),true)
83product_goals := $(strip $(filter PRODUCT-%,$(MAKECMDGOALS)))
84ifdef product_goals
85  $(error The PRODUCT-* goal is no longer supported. Use `TARGET_PRODUCT=<product> m droid` instead)
86endif
87unbundled_goals := $(strip $(filter APP-%,$(MAKECMDGOALS)))
88ifdef unbundled_goals
89  $(error The APP-* goal is no longer supported. Use `TARGET_BUILD_APPS="<app>" m droid` instead)
90endif # unbundled_goals
91endif
92
93# Default to building dalvikvm on hosts that support it...
94ifeq ($(HOST_OS),linux)
95# ... or if the if the option is already set
96ifeq ($(WITH_HOST_DALVIK),)
97  WITH_HOST_DALVIK := true
98endif
99endif
100
101# ---------------------------------------------------------------
102# Include the product definitions.
103# We need to do this to translate TARGET_PRODUCT into its
104# underlying TARGET_DEVICE before we start defining any rules.
105#
106include $(BUILD_SYSTEM)/node_fns.mk
107include $(BUILD_SYSTEM)/product.mk
108include $(BUILD_SYSTEM)/device.mk
109
110# Read in all of the product definitions specified by the AndroidProducts.mk
111# files in the tree.
112all_product_configs := $(get-all-product-makefiles)
113
114all_named_products :=
115
116# Find the product config makefile for the current product.
117# all_product_configs consists items like:
118# <product_name>:<path_to_the_product_makefile>
119# or just <path_to_the_product_makefile> in case the product name is the
120# same as the base filename of the product config makefile.
121current_product_makefile :=
122all_product_makefiles :=
123$(foreach f, $(all_product_configs),\
124    $(eval _cpm_words := $(call _decode-product-name,$(f)))\
125    $(eval _cpm_word1 := $(word 1,$(_cpm_words)))\
126    $(eval _cpm_word2 := $(word 2,$(_cpm_words)))\
127    $(eval all_product_makefiles += $(_cpm_word2))\
128    $(eval all_named_products += $(_cpm_word1))\
129    $(if $(filter $(TARGET_PRODUCT),$(_cpm_word1)),\
130        $(eval current_product_makefile += $(_cpm_word2)),))
131_cpm_words :=
132_cpm_word1 :=
133_cpm_word2 :=
134current_product_makefile := $(strip $(current_product_makefile))
135all_product_makefiles := $(strip $(all_product_makefiles))
136
137load_all_product_makefiles :=
138ifneq (,$(filter product-graph, $(MAKECMDGOALS)))
139ifeq ($(ANDROID_PRODUCT_GRAPH),--all)
140load_all_product_makefiles := true
141endif
142endif
143ifneq (,$(filter dump-products,$(MAKECMDGOALS)))
144ifeq ($(ANDROID_DUMP_PRODUCTS),all)
145load_all_product_makefiles := true
146endif
147endif
148
149ifneq ($(ALLOW_RULES_IN_PRODUCT_CONFIG),)
150_product_config_saved_KATI_ALLOW_RULES := $(.KATI_ALLOW_RULES)
151.KATI_ALLOW_RULES := $(ALLOW_RULES_IN_PRODUCT_CONFIG)
152endif
153
154ifeq ($(load_all_product_makefiles),true)
155# Import all product makefiles.
156$(call import-products, $(all_product_makefiles))
157else
158# Import just the current product.
159ifndef current_product_makefile
160$(error Can not locate config makefile for product "$(TARGET_PRODUCT)")
161endif
162ifneq (1,$(words $(current_product_makefile)))
163$(error Product "$(TARGET_PRODUCT)" ambiguous: matches $(current_product_makefile))
164endif
165$(call import-products, $(current_product_makefile))
166endif  # Import all or just the current product makefile
167
168# Quick check
169$(check-all-products)
170
171ifeq ($(SKIP_ARTIFACT_PATH_REQUIREMENT_PRODUCTS_CHECK),)
172# Import all the products that have made artifact path requirements, so that we can verify
173# the artifacts they produce.
174# These are imported after check-all-products because some of them might not be real products.
175$(foreach makefile,$(ARTIFACT_PATH_REQUIREMENT_PRODUCTS),\
176  $(if $(filter-out $(makefile),$(PRODUCTS)),$(eval $(call import-products,$(makefile))))\
177)
178endif
179
180ifneq ($(ALLOW_RULES_IN_PRODUCT_CONFIG),)
181.KATI_ALLOW_RULES := $(_saved_KATI_ALLOW_RULES)
182_product_config_saved_KATI_ALLOW_RULES :=
183endif
184
185ifneq ($(filter dump-products, $(MAKECMDGOALS)),)
186$(dump-products)
187endif
188
189# Convert a short name like "sooner" into the path to the product
190# file defining that product.
191#
192INTERNAL_PRODUCT := $(call resolve-short-product-name, $(TARGET_PRODUCT))
193ifneq ($(current_product_makefile),$(INTERNAL_PRODUCT))
194$(error PRODUCT_NAME inconsistent in $(current_product_makefile) and $(INTERNAL_PRODUCT))
195endif
196
197
198############################################################################
199# Strip and assign the PRODUCT_ variables.
200$(call strip-product-vars)
201
202current_product_makefile :=
203all_product_makefiles :=
204all_product_configs :=
205
206#############################################################################
207# Quick check and assign default values
208
209TARGET_DEVICE := $(PRODUCT_DEVICE)
210
211# TODO: also keep track of things like "port", "land" in product files.
212
213# Figure out which resoure configuration options to use for this
214# product.
215# If CUSTOM_LOCALES contains any locales not already included
216# in PRODUCT_LOCALES, add them to PRODUCT_LOCALES.
217extra_locales := $(filter-out $(PRODUCT_LOCALES),$(CUSTOM_LOCALES))
218ifneq (,$(extra_locales))
219  ifneq ($(CALLED_FROM_SETUP),true)
220    # Don't spam stdout, because envsetup.sh may be scraping values from it.
221    $(info Adding CUSTOM_LOCALES [$(extra_locales)] to PRODUCT_LOCALES [$(PRODUCT_LOCALES)])
222  endif
223  PRODUCT_LOCALES += $(extra_locales)
224  extra_locales :=
225endif
226
227# Add PRODUCT_LOCALES to PRODUCT_AAPT_CONFIG
228PRODUCT_AAPT_CONFIG := $(PRODUCT_LOCALES) $(PRODUCT_AAPT_CONFIG)
229
230# Keep a copy of the space-separated config
231PRODUCT_AAPT_CONFIG_SP := $(PRODUCT_AAPT_CONFIG)
232PRODUCT_AAPT_CONFIG := $(subst $(space),$(comma),$(PRODUCT_AAPT_CONFIG))
233
234###########################################################
235## Add 'platform:' prefix to jars not in <apex>:<module> format.
236##
237## This makes sure that a jar corresponds to ConfigureJarList format of <apex> and <module> pairs
238## where needed.
239##
240## $(1): a list of jars either in <module> or <apex>:<module> format
241###########################################################
242
243define qualify-platform-jars
244  $(foreach jar,$(1),$(if $(findstring :,$(jar)),,platform:)$(jar))
245endef
246
247# Extra boot jars must be appended at the end after common boot jars.
248PRODUCT_BOOT_JARS += $(PRODUCT_BOOT_JARS_EXTRA)
249
250PRODUCT_BOOT_JARS := $(call qualify-platform-jars,$(PRODUCT_BOOT_JARS))
251
252# Replaces references to overridden boot jar modules in a boot jars variable.
253# $(1): Name of a boot jars variable with <apex>:<jar> pairs.
254define replace-boot-jar-module-overrides
255  $(foreach pair,$(PRODUCT_BOOT_JAR_MODULE_OVERRIDES),\
256    $(eval _rbjmo_from := $(call word-colon,1,$(pair)))\
257    $(eval _rbjmo_to := $(call word-colon,2,$(pair)))\
258    $(eval $(1) := $(patsubst $(_rbjmo_from):%,$(_rbjmo_to):%,$($(1)))))
259endef
260
261$(call replace-boot-jar-module-overrides,PRODUCT_BOOT_JARS)
262$(call replace-boot-jar-module-overrides,PRODUCT_UPDATABLE_BOOT_JARS)
263$(call replace-boot-jar-module-overrides,ART_APEX_JARS)
264
265# The extra system server jars must be appended at the end after common system server jars.
266PRODUCT_SYSTEM_SERVER_JARS += $(PRODUCT_SYSTEM_SERVER_JARS_EXTRA)
267
268PRODUCT_SYSTEM_SERVER_JARS := $(call qualify-platform-jars,$(PRODUCT_SYSTEM_SERVER_JARS))
269
270ifndef PRODUCT_SYSTEM_NAME
271  PRODUCT_SYSTEM_NAME := $(PRODUCT_NAME)
272endif
273ifndef PRODUCT_SYSTEM_DEVICE
274  PRODUCT_SYSTEM_DEVICE := $(PRODUCT_DEVICE)
275endif
276ifndef PRODUCT_SYSTEM_BRAND
277  PRODUCT_SYSTEM_BRAND := $(PRODUCT_BRAND)
278endif
279ifndef PRODUCT_MODEL
280  PRODUCT_MODEL := $(PRODUCT_NAME)
281endif
282ifndef PRODUCT_SYSTEM_MODEL
283  PRODUCT_SYSTEM_MODEL := $(PRODUCT_MODEL)
284endif
285
286ifndef PRODUCT_MANUFACTURER
287  PRODUCT_MANUFACTURER := unknown
288endif
289ifndef PRODUCT_SYSTEM_MANUFACTURER
290  PRODUCT_SYSTEM_MANUFACTURER := $(PRODUCT_MANUFACTURER)
291endif
292
293ifndef PRODUCT_CHARACTERISTICS
294  TARGET_AAPT_CHARACTERISTICS := default
295else
296  TARGET_AAPT_CHARACTERISTICS := $(PRODUCT_CHARACTERISTICS)
297endif
298
299ifdef PRODUCT_DEFAULT_DEV_CERTIFICATE
300  ifneq (1,$(words $(PRODUCT_DEFAULT_DEV_CERTIFICATE)))
301    $(error PRODUCT_DEFAULT_DEV_CERTIFICATE='$(PRODUCT_DEFAULT_DEV_CERTIFICATE)', \
302      only 1 certificate is allowed.)
303  endif
304endif
305
306$(foreach pair,$(PRODUCT_UPDATABLE_BOOT_JARS), \
307  $(eval jar := $(call word-colon,2,$(pair))) \
308  $(if $(findstring $(jar), $(PRODUCT_BOOT_JARS)), \
309    $(error A jar in PRODUCT_UPDATABLE_BOOT_JARS must not be in PRODUCT_BOOT_JARS, but $(jar) is)))
310
311ENFORCE_SYSTEM_CERTIFICATE := $(PRODUCT_ENFORCE_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT)
312ENFORCE_SYSTEM_CERTIFICATE_ALLOW_LIST := $(PRODUCT_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT_ALLOW_LIST)
313
314PRODUCT_OTA_PUBLIC_KEYS := $(sort $(PRODUCT_OTA_PUBLIC_KEYS))
315PRODUCT_EXTRA_RECOVERY_KEYS := $(sort $(PRODUCT_EXTRA_RECOVERY_KEYS))
316
317# Resolve and setup per-module dex-preopt configs.
318DEXPREOPT_DISABLED_MODULES :=
319# If a module has multiple setups, the first takes precedence.
320_pdpmc_modules :=
321$(foreach c,$(PRODUCT_DEX_PREOPT_MODULE_CONFIGS),\
322  $(eval m := $(firstword $(subst =,$(space),$(c))))\
323  $(if $(filter $(_pdpmc_modules),$(m)),,\
324    $(eval _pdpmc_modules += $(m))\
325    $(eval cf := $(patsubst $(m)=%,%,$(c)))\
326    $(eval cf := $(subst $(_PDPMC_SP_PLACE_HOLDER),$(space),$(cf)))\
327    $(if $(filter disable,$(cf)),\
328      $(eval DEXPREOPT_DISABLED_MODULES += $(m)),\
329      $(eval DEXPREOPT.$(TARGET_PRODUCT).$(m).CONFIG := $(cf)))))
330_pdpmc_modules :=
331
332
333# Resolve and setup per-module sanitizer configs.
334# If a module has multiple setups, the first takes precedence.
335_psmc_modules :=
336$(foreach c,$(PRODUCT_SANITIZER_MODULE_CONFIGS),\
337  $(eval m := $(firstword $(subst =,$(space),$(c))))\
338  $(if $(filter $(_psmc_modules),$(m)),,\
339    $(eval _psmc_modules += $(m))\
340    $(eval cf := $(patsubst $(m)=%,%,$(c)))\
341    $(eval cf := $(subst $(_PSMC_SP_PLACE_HOLDER),$(space),$(cf)))\
342    $(eval SANITIZER.$(TARGET_PRODUCT).$(m).CONFIG := $(cf))))
343_psmc_modules :=
344
345# Reset ADB keys for non-debuggable builds
346ifeq (,$(filter eng userdebug,$(TARGET_BUILD_VARIANT)),)
347  PRODUCT_ADB_KEYS :=
348endif
349ifneq ($(filter-out 0 1,$(words $(PRODUCT_ADB_KEYS))),)
350  $(error Only one file may be in PRODUCT_ADB_KEYS: $(PRODUCT_ADB_KEYS))
351endif
352
353ifndef PRODUCT_USE_DYNAMIC_PARTITIONS
354  PRODUCT_USE_DYNAMIC_PARTITIONS := $(PRODUCT_RETROFIT_DYNAMIC_PARTITIONS)
355endif
356
357# All requirements of PRODUCT_USE_DYNAMIC_PARTITIONS falls back to
358# PRODUCT_USE_DYNAMIC_PARTITIONS if not defined.
359ifndef PRODUCT_USE_DYNAMIC_PARTITION_SIZE
360  PRODUCT_USE_DYNAMIC_PARTITION_SIZE := $(PRODUCT_USE_DYNAMIC_PARTITIONS)
361endif
362
363ifndef PRODUCT_BUILD_SUPER_PARTITION
364  PRODUCT_BUILD_SUPER_PARTITION := $(PRODUCT_USE_DYNAMIC_PARTITIONS)
365endif
366
367ifeq ($(PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS),)
368  ifdef PRODUCT_SHIPPING_API_LEVEL
369    ifeq (true,$(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),29))
370      PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := true
371    endif
372  endif
373endif
374
375ifeq ($(PRODUCT_SET_DEBUGFS_RESTRICTIONS),)
376  ifdef PRODUCT_SHIPPING_API_LEVEL
377    ifeq (true,$(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),31))
378      PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
379    endif
380  endif
381endif
382
383ifdef PRODUCT_SHIPPING_API_LEVEL
384  ifneq (,$(call math_gt_or_eq,29,$(PRODUCT_SHIPPING_API_LEVEL)))
385    PRODUCT_PACKAGES += $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29)
386  endif
387endif
388
389# If build command defines OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS,
390# override PRODUCT_EXTRA_VNDK_VERSIONS with it.
391ifdef OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS
392  PRODUCT_EXTRA_VNDK_VERSIONS := $(OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS)
393endif
394
395###########################################
396# APEXes are by default not compressed
397#
398# APEX compression can be forcibly enabled (resp. disabled) by
399# setting OVERRIDE_PRODUCT_COMPRESSED_APEX to true (resp. false), e.g. by
400# setting the OVERRIDE_PRODUCT_COMPRESSED_APEX environment variable.
401ifdef OVERRIDE_PRODUCT_COMPRESSED_APEX
402  PRODUCT_COMPRESSED_APEX := $(OVERRIDE_PRODUCT_COMPRESSED_APEX)
403endif
404
405$(KATI_obsolete_var OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS \
406    ,Use PRODUCT_EXTRA_VNDK_VERSIONS instead)
407
408# If build command defines OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE,
409# override PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE with it unless it is
410# defined as `false`. If the value is `false` clear
411# PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE
412# OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE can be used for
413# testing only.
414ifdef OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE
415  ifeq (false,$(OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE))
416    PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE :=
417  else
418    PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE := $(OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE)
419  endif
420else ifeq ($(PRODUCT_SHIPPING_API_LEVEL),)
421  # No shipping level defined
422else ifeq ($(call math_gt,$(PRODUCT_SHIPPING_API_LEVEL),29),true)
423  # Enforce product interface if PRODUCT_SHIPPING_API_LEVEL is greater than 29.
424  PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE := true
425endif
426
427$(KATI_obsolete_var OVERRIDE_PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE,Use PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE instead)
428
429# If build command defines PRODUCT_USE_PRODUCT_VNDK_OVERRIDE as `false`,
430# PRODUCT_PRODUCT_VNDK_VERSION will not be defined automatically.
431# PRODUCT_USE_PRODUCT_VNDK_OVERRIDE can be used for testing only.
432PRODUCT_USE_PRODUCT_VNDK := false
433ifneq ($(PRODUCT_USE_PRODUCT_VNDK_OVERRIDE),)
434  PRODUCT_USE_PRODUCT_VNDK := $(PRODUCT_USE_PRODUCT_VNDK_OVERRIDE)
435else ifeq ($(PRODUCT_SHIPPING_API_LEVEL),)
436  # No shipping level defined
437else ifeq ($(call math_gt,$(PRODUCT_SHIPPING_API_LEVEL),29),true)
438  # Enforce product interface for VNDK if PRODUCT_SHIPPING_API_LEVEL is greater
439  # than 29.
440  PRODUCT_USE_PRODUCT_VNDK := true
441endif
442
443ifeq ($(PRODUCT_USE_PRODUCT_VNDK),true)
444  ifndef PRODUCT_PRODUCT_VNDK_VERSION
445    PRODUCT_PRODUCT_VNDK_VERSION := current
446  endif
447endif
448
449$(KATI_obsolete_var PRODUCT_USE_PRODUCT_VNDK,Use PRODUCT_PRODUCT_VNDK_VERSION instead)
450$(KATI_obsolete_var PRODUCT_USE_PRODUCT_VNDK_OVERRIDE,Use PRODUCT_PRODUCT_VNDK_VERSION instead)
451
452ifdef PRODUCT_ENFORCE_RRO_EXEMPTED_TARGETS
453    $(error PRODUCT_ENFORCE_RRO_EXEMPTED_TARGETS is deprecated, consider using RRO for \
454      $(PRODUCT_ENFORCE_RRO_EXEMPTED_TARGETS))
455endif
456
457define product-overrides-config
458$$(foreach rule,$$(PRODUCT_$(1)_OVERRIDES),\
459    $$(if $$(filter 2,$$(words $$(subst :,$$(space),$$(rule)))),,\
460        $$(error Rule "$$(rule)" in PRODUCT_$(1)_OVERRIDE is not <module_name>:<new_value>)))
461endef
462
463$(foreach var, \
464    MANIFEST_PACKAGE_NAME \
465    PACKAGE_NAME \
466    CERTIFICATE, \
467  $(eval $(call product-overrides-config,$(var))))
468
469# Macro to use below. $(1) is the name of the partition
470define product-build-image-config
471ifneq ($$(filter-out true false,$$(PRODUCT_BUILD_$(1)_IMAGE)),)
472    $$(error Invalid PRODUCT_BUILD_$(1)_IMAGE: $$(PRODUCT_BUILD_$(1)_IMAGE) -- true false and empty are supported)
473endif
474endef
475
476# Copy and check the value of each PRODUCT_BUILD_*_IMAGE variable
477$(foreach image, \
478    SYSTEM \
479    SYSTEM_OTHER \
480    VENDOR \
481    PRODUCT \
482    SYSTEM_EXT \
483    ODM \
484    VENDOR_DLKM \
485    ODM_DLKM \
486    CACHE \
487    RAMDISK \
488    USERDATA \
489    BOOT \
490    RECOVERY, \
491  $(eval $(call product-build-image-config,$(image))))
492
493product-build-image-config :=
494
495$(call readonly-product-vars)
496