SBC_builder/config/board/opi_zero2.json
2025-09-14 13:09:55 +02:00

75 lines
1.8 KiB
JSON

{
"build":
[
"initramfs", "uboot", "kernel"
],
"variables":
[
"CROSS_C:aarch64-linux-gnu-",
"ATF_PLATFORM:sun50i_h616",
"ARCH:aarch64"
],
"targets":
[
{
"parent": "atf",
"version": "lts-v2.12.1",
"version_type": "tag",
"patch_dir": "atf/sunxi64",
"target": [ "bl31" ],
"makeopts": "CROSS_COMPILE=%{CROSS_C}% PLAT=%{ATF_PLATFORM}% DEBUG=0",
"artifacts":
[
{
"file": "build/%{ATF_PLATFORM}%/release/bl31.bin",
"store_type": "temp"
}
]
},
{
"parent": "uboot",
"version": "v2024.01",
"version_type": "tag",
"patch_dir": "uboot/sunxi",
"deps":
[
"atf"
],
"artifacts":
[
{
"file": "u-boot-sunxi-with-spl.bin",
"store_type": "dd",
"block_size": "1k",
"img_offset": 8
}
],
"target": [ "" ],
"config_def": "orangepi_zero2_defconfig",
"makeopts": "CROSS_COMPILE=%{CROSS_C}% BL31=%{out_dir}%/bl31.bin"
},
{
"parent": "kernel",
"config_def": "opi_zero2_printer_defconfig"
}
],
"install":
{
"target": "image",
"block_size": "512b",
"type": "mbr",
"partitions":
[
{
"name": "boot",
"size": "1g",
"first_sector": "2048"
},
{
"name": "rw",
"size": "2g"
}
]
}
}