Merge "Create embedcfg directory before writing the file" into main am: 0bc93e1a92 am: cbb04e8e9b

Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/3081524

Change-Id: I669bf19e6b39fb84ce8dbbd7f90ee42e417daebd
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:56:18 +00:00 committed by Automerger Merge Worker
commit 0ad5367b36

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)
}