Merge "Create embedcfg directory before writing the file" into main am: 0bc93e1a92
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/3081524 Change-Id: Ia75d0dc847b59aaf672c33f8a3ff1e56d5e3568f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
cbb04e8e9b
1 changed files with 1 additions and 0 deletions
|
@ -584,6 +584,7 @@ func generateEmbedcfgFile(files []string, srcDir string, embedcfgFile string) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os.MkdirAll(filepath.Dir(embedcfgFile), os.ModePerm)
|
||||||
os.WriteFile(embedcfgFile, []byte(embedcfgData), 0644)
|
os.WriteFile(embedcfgFile, []byte(embedcfgData), 0644)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue