|
4 | 4 | # Here is where you specify your product options |
5 | 5 | # ---------------------------------------------------------------------------- |
6 | 6 |
|
7 | | -PRODUCT_LIST := unittest |
| 7 | +# The umm_malloc library can be build with a number of different options, and |
| 8 | +# we control the build by setting the UMM_MALLOC_CFGFILE on the command line |
| 9 | +# |
| 10 | +# The following configurations can be built as separate products, each one has |
| 11 | +# a corresponding .h file |
| 12 | +# |
| 13 | +# default |
| 14 | +# enable_critical_depth_check |
| 15 | +# enable_info |
| 16 | +# enable_inline_metrics |
| 17 | +# enable_integrity_checks |
| 18 | +# enable_poison_check |
| 19 | +# enable_first_fit |
| 20 | +# |
| 21 | +PRODUCT_LIST := default \ |
| 22 | + enable_info \ |
| 23 | + enable_critical_depth_check \ |
| 24 | + enable_inline_metrics \ |
| 25 | + enable_integrity_check \ |
| 26 | + enable_poison_check \ |
| 27 | + enable_first_fit |
8 | 28 |
|
9 | 29 | ifneq ($(filter $(PRODUCT),$(PRODUCT_LIST)),) |
10 | | - # Set PRODUCT_MAIN here based on $(PRODUCT) |
11 | | - # The unittest product typically does not need PRODUCT_MAIN |
| 30 | + # Set PRODUCT_MAIN here based on $(PRODUCT) |
| 31 | + # The unittest product typically does not need PRODUCT_MAIN |
| 32 | + ifeq (default,$(PRODUCT)) |
| 33 | + UMM_MALLOC_CFGFILE := \"options/default.h\" |
| 34 | + else ifeq (enable_info,$(PRODUCT)) |
| 35 | + UMM_MALLOC_CFGFILE := \"options/enable_umm_info.h\" |
| 36 | + else ifeq (enable_critical_depth_check,$(PRODUCT)) |
| 37 | + UMM_MALLOC_CFGFILE := \"options/enable_critical_depth_check.h\" |
| 38 | + else ifeq (enable_inline_metrics,$(PRODUCT)) |
| 39 | + UMM_MALLOC_CFGFILE := \"options/enable_inline_metrics.h\" |
| 40 | + else ifeq (enable_integrity_check,$(PRODUCT)) |
| 41 | + UMM_MALLOC_CFGFILE := \"options/enable_integrity_check.h\" |
| 42 | + else ifeq (enable_poison_check,$(PRODUCT)) |
| 43 | + UMM_MALLOC_CFGFILE := \"options/enable_poison_check.h\" |
| 44 | + else ifeq (enable_first_fit,$(PRODUCT)) |
| 45 | + UMM_MALLOC_CFGFILE := \"options/enable_first_fit.h\" |
| 46 | + endif |
12 | 47 | else |
13 | 48 | $(error PRODUCT must be one of $(PRODUCT_LIST)) |
14 | 49 | endif |
|
0 commit comments