make: Skip empty prop sets

This commit is contained in:
Danny Lin 2021-11-10 15:34:52 -08:00
parent aa36aa6f13
commit 6f88c06512

View file

@ -101,6 +101,10 @@ export function serializeProductMakefile(mk: ProductMakefile) {
if (mk.props != undefined) {
for (let [partition, props] of mk.props.entries()) {
if (props.size == 0) {
continue
}
let propLines = Array.from(props.entries()).map(([k, v]) => `${k}=${v}`)
blocks.push(`PRODUCT_${partition.toUpperCase()}_PROPERTIES += \\