generate: Dump overlay keys and values
This commit is contained in:
parent
e86ecbd801
commit
eedcb9c0ba
1 changed files with 16 additions and 2 deletions
|
@ -204,7 +204,21 @@ export async function extractOverlays(
|
||||||
|
|
||||||
let missingOverlays = diffPartOverlays(stockOverlays, customOverlays,
|
let missingOverlays = diffPartOverlays(stockOverlays, customOverlays,
|
||||||
config.filters.overlay_keys, config.filters.overlay_values)
|
config.filters.overlay_keys, config.filters.overlay_values)
|
||||||
return await serializePartOverlays(missingOverlays, dirs.overlays)
|
|
||||||
|
// Generate RROs and get a list of modules to build
|
||||||
|
let buildPkgs = await serializePartOverlays(missingOverlays, dirs.overlays)
|
||||||
|
|
||||||
|
// Dump overlay key and value lists
|
||||||
|
if (buildPkgs.length > 0) {
|
||||||
|
for (let [part, overlays] of Object.entries(missingOverlays)) {
|
||||||
|
let overlayList = Array.from(overlays.entries())
|
||||||
|
.map(([k, v]) => `${k} = ${v}`)
|
||||||
|
.join('\n')
|
||||||
|
await fs.writeFile(`${dirs.overlays}/${part}.txt`, overlayList + '\n')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return buildPkgs
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function extractVintfManifests(
|
export async function extractVintfManifests(
|
||||||
|
@ -311,7 +325,7 @@ export async function generateBuildFiles(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump list
|
// Dump blob list
|
||||||
if (entries.length > 0) {
|
if (entries.length > 0) {
|
||||||
let fileList = serializeBlobList(entries)
|
let fileList = serializeBlobList(entries)
|
||||||
await fs.writeFile(`${dirs.out}/proprietary-files.txt`, fileList + '\n')
|
await fs.writeFile(`${dirs.out}/proprietary-files.txt`, fileList + '\n')
|
||||||
|
|
Loading…
Reference in a new issue