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:
Treehugger Robot 2024-05-09 17:32:27 +00:00 committed by Automerger Merge Worker
commit cbb04e8e9b

View file

@ -584,6 +584,7 @@ func generateEmbedcfgFile(files []string, srcDir string, embedcfgFile string) {
panic(err)
}
os.MkdirAll(filepath.Dir(embedcfgFile), os.ModePerm)
os.WriteFile(embedcfgFile, []byte(embedcfgData), 0644)
}