From 7813aae423bd52c6a8279cb74f4358b92cf9081a Mon Sep 17 00:00:00 2001 From: Haojian Zhuang Date: Wed, 17 Aug 2016 21:05:07 +0800 Subject: Document: add PLAT_PARTITION_MAX_ENTRIES define Partition driver requires the "PLAT_PARTITION_MAX_ENTRIES" definition. By default, it's defined to 128 in partition driver. But it costs a lot of memory, and only a few partition entries are really used in platform partition table. If user wants use memory efficiently, user should define the build flag in platform.mk instead. Signed-off-by: Haojian Zhuang --- docs/porting-guide.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/porting-guide.md b/docs/porting-guide.md index 8dad4a05..aa1ff45e 100644 --- a/docs/porting-guide.md +++ b/docs/porting-guide.md @@ -501,6 +501,17 @@ optionally be defined: PLAT_PL061_MAX_GPIOS := 160 $(eval $(call add_define,PLAT_PL061_MAX_GPIOS)) +If the platform port uses the partition driver, the following constant may +optionally be defined: + +* **PLAT_PARTITION_MAX_ENTRIES** + Maximum number of partition entries required by the platform. This allows + control how much memory is allocated for partition entries. The default + value is 128. + [For example, define the build flag in platform.mk]: + PLAT_PARTITION_MAX_ENTRIES := 12 + $(eval $(call add_define,PLAT_PARTITION_MAX_ENTRIES)) + ### File : plat_macros.S [mandatory] -- cgit v1.2.3