语法
partition { }
描述
该属性用于定义分区。这是可选属性,用于简化 BIF 并使其可读。
示例
new_bif: { id_code = 0x04ca8093 extended_id_code = 0x01 id = 0x2 image { name = pmc_subsys, id = 0x1c000001 partition { id = 0x01, type = bootloader, file = plm.elf } partition { id = 0x09, type = pmcdata, load = 0xf2000000, file = pmc_data.cdo } } }
注释: 分区属性为可选,并且可编写无属性的 BIF 文件。
编写以上 BIF 时,其中可不含分区属性,如下所示:
new_bif: { id_code = 0x04ca8093 extended_id_code = 0x01 id = 0x2 image { name = pmc_subsys, id = 0x1c000001 { id = 0x01, type = bootloader, file = plm.elf } { id = 0x09, type = pmcdata, load = 0xf2000000, file = pmc_data.cdo } } }