summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEvoke Zhang <evoke.zhang@amlogic.com>2019-02-20 11:19:14 +0800
committerDongjin Kim <tobetter@gmail.com>2019-05-16 13:16:15 +0900
commitee040fea3798c964ce2b82d9d5058f97cea0a869 (patch)
tree4cea68ebe1c705988ac756fa320caf3cda1aa458 /common
parent7edeaa72f3f425ca99f14c436a22829a303b84de (diff)
downloadu-boot-odroid-c1-ee040fea3798c964ce2b82d9d5058f97cea0a869.tar.gz
tvconfig: support custome tvconfig path [1/1]
PD#TV-2579 Problem: need custome tvconfig path Solution: add custome tvconfig path support with uboot env "model_path", if null, use default path. Verify: x301 Change-Id: I3c1656d1e0541081efb5b598dcf2a22236acc2da Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Diffstat (limited to 'common')
-rw-r--r--common/ini/model.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/ini/model.c b/common/ini/model.c
index 704eda804f..975b2d4558 100644
--- a/common/ini/model.c
+++ b/common/ini/model.c
@@ -1276,7 +1276,14 @@ int parse_model_sum(const char *file_name, char *model_name)
const char *get_model_sum_path(void)
{
- return DEFAULT_MODEL_SUM_PATH;
+ char *model_path;
+
+ model_path = getenv("model_path");
+ if (model_path == NULL)
+ return DEFAULT_MODEL_SUM_PATH;
+
+ printf("%s: %s\n", __func__, model_path);
+ return model_path;
}
int handle_model_list(void)