Allow android_dt_dir to be set by bootconfig am: 3bb240bd4c
am: 7d0bfb1956
am: 696017ac7c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1624583 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I282bd9e51c8c6947e026a4ac3268d967394a804f
This commit is contained in:
commit
4ea63b727e
1 changed files with 9 additions and 0 deletions
|
@ -376,6 +376,15 @@ static std::string init_android_dt_dir() {
|
|||
android_dt_dir = value;
|
||||
}
|
||||
});
|
||||
// ..Or bootconfig
|
||||
if (android_dt_dir == kDefaultAndroidDtDir) {
|
||||
ImportBootconfig([&](const std::string& key, const std::string& value) {
|
||||
if (key == "androidboot.android_dt_dir") {
|
||||
android_dt_dir = value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
LOG(INFO) << "Using Android DT directory " << android_dt_dir;
|
||||
return android_dt_dir;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue