init: skip "name" DT entry
DTs have a standard "name" entry which is not to be
turned into an android property, so skip it.
Change-Id: I79f6638b4123358c8d80510c1666cf5d4561160e
(cherry picked from commit 1dcf325844)
This commit is contained in:
parent
b4354b3615
commit
d2bbe45713
1 changed files with 2 additions and 1 deletions
|
|
@ -832,8 +832,9 @@ static void process_kernel_dt(void)
|
|||
|
||||
struct dirent *dp;
|
||||
while ((dp = readdir(dir.get())) != NULL) {
|
||||
if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible"))
|
||||
if (dp->d_type != DT_REG || !strcmp(dp->d_name, "compatible") || !strcmp(dp->d_name, "name")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
file_name = android::base::StringPrintf("%s/%s", android_dir, dp->d_name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue