build: Create overlays directory and remove empty imports array

This commit is contained in:
Danny Lin 2021-11-11 16:28:21 -08:00
parent ea260df6d3
commit da64e046e4

View file

@ -16,6 +16,7 @@ export interface VendorDirectories {
outDir: string outDir: string
proprietaryDir: string proprietaryDir: string
fwDir: string fwDir: string
overlaysDir: string
} }
function nameDepKey(entry: BlobEntry) { function nameDepKey(entry: BlobEntry) {
@ -113,7 +114,6 @@ export async function generateBuild(
return { return {
blueprint: { blueprint: {
imports: [],
modules: namedModules.values(), modules: namedModules.values(),
}, },
modulesMakefile: { modulesMakefile: {
@ -141,10 +141,14 @@ export async function createVendorDirs(vendor: string, device: string) {
let fwDir = `${proprietaryDir}/firmware` let fwDir = `${proprietaryDir}/firmware`
await fs.mkdir(fwDir, { recursive: true }) await fs.mkdir(fwDir, { recursive: true })
let overlaysDir = `${proprietaryDir}/overlays`
await fs.mkdir(overlaysDir, { recursive: true })
return { return {
outDir: outDir, outDir: outDir,
proprietaryDir: proprietaryDir, proprietaryDir: proprietaryDir,
fwDir: fwDir, fwDir: fwDir,
overlaysDir: overlaysDir,
} as VendorDirectories } as VendorDirectories
} }