scripts: add board specific 'crust_config' to uboot_helper

The sunxi firmware crust needs to be enabled per board, add this as a
new optional option.

A missing entry indicated that crust is not supported/enabled for the
corresponding board.
This commit is contained in:
Andre Heider 2020-12-13 08:18:31 +01:00
parent cb61a731ec
commit 9faef13b0b

View File

@ -24,7 +24,8 @@ devices = \
'A64': { 'A64': {
'orangepi-win': { 'orangepi-win': {
'dtb': 'sun50i-a64-orangepi-win.dtb', 'dtb': 'sun50i-a64-orangepi-win.dtb',
'config': 'orangepi_win_defconfig' 'config': 'orangepi_win_defconfig',
'crust_config': 'orangepi_win_defconfig',
}, },
'pine64': { 'pine64': {
'dtb': 'sun50i-a64-pine64.dtb', 'dtb': 'sun50i-a64-pine64.dtb',
@ -36,7 +37,8 @@ devices = \
}, },
'pine64-plus': { 'pine64-plus': {
'dtb': 'sun50i-a64-pine64-plus.dtb', 'dtb': 'sun50i-a64-pine64-plus.dtb',
'config': 'pine64_plus_defconfig' 'config': 'pine64_plus_defconfig',
'crust_config': 'pine64_plus_defconfig',
}, },
}, },
'H2-plus': { 'H2-plus': {
@ -64,29 +66,35 @@ devices = \
}, },
'orangepi-2': { 'orangepi-2': {
'dtb': 'sun8i-h3-orangepi-2.dtb', 'dtb': 'sun8i-h3-orangepi-2.dtb',
'config': 'orangepi_2_defconfig' 'config': 'orangepi_2_defconfig',
'crust_config': 'orangepi_2_defconfig',
}, },
'orangepi-pc': { 'orangepi-pc': {
'dtb': 'sun8i-h3-orangepi-pc.dtb', 'dtb': 'sun8i-h3-orangepi-pc.dtb',
'config': 'orangepi_pc_defconfig' 'config': 'orangepi_pc_defconfig',
'crust_config': 'orangepi_pc_defconfig',
}, },
'orangepi-pc-plus': { 'orangepi-pc-plus': {
'dtb': 'sun8i-h3-orangepi-pc-plus.dtb', 'dtb': 'sun8i-h3-orangepi-pc-plus.dtb',
'config': 'orangepi_pc_plus_defconfig' 'config': 'orangepi_pc_plus_defconfig',
'crust_config': 'orangepi_pc_plus_defconfig',
}, },
'orangepi-plus2e': { 'orangepi-plus2e': {
'dtb': 'sun8i-h3-orangepi-plus2e.dtb', 'dtb': 'sun8i-h3-orangepi-plus2e.dtb',
'config': 'orangepi_plus2e_defconfig' 'config': 'orangepi_plus2e_defconfig',
'crust_config': 'orangepi_plus2e_defconfig',
}, },
'orangepi-plus': { 'orangepi-plus': {
'dtb': 'sun8i-h3-orangepi-plus.dtb', 'dtb': 'sun8i-h3-orangepi-plus.dtb',
'config': 'orangepi_plus_defconfig' 'config': 'orangepi_plus_defconfig',
'crust_config': 'orangepi_plus_defconfig',
}, },
}, },
'H5' : { 'H5' : {
'orangepi-pc2': { 'orangepi-pc2': {
'dtb': 'sun50i-h5-orangepi-pc2.dtb', 'dtb': 'sun50i-h5-orangepi-pc2.dtb',
'config': 'orangepi_pc2_defconfig' 'config': 'orangepi_pc2_defconfig',
'crust_config': 'orangepi_pc2_defconfig',
}, },
'tritium-h5': { 'tritium-h5': {
'dtb': 'sun50i-h5-libretech-all-h3-cc.dtb', 'dtb': 'sun50i-h5-libretech-all-h3-cc.dtb',
@ -100,7 +108,8 @@ devices = \
}, },
'orangepi-3': { 'orangepi-3': {
'dtb': 'sun50i-h6-orangepi-3.dtb', 'dtb': 'sun50i-h6-orangepi-3.dtb',
'config': 'orangepi_3_defconfig' 'config': 'orangepi_3_defconfig',
'crust_config': 'orangepi_3_defconfig',
}, },
'orangepi-lite2': { 'orangepi-lite2': {
'dtb': 'sun50i-h6-orangepi-lite2.dtb', 'dtb': 'sun50i-h6-orangepi-lite2.dtb',
@ -112,7 +121,8 @@ devices = \
}, },
'pine-h64': { 'pine-h64': {
'dtb': 'sun50i-h6-pine-h64.dtb', 'dtb': 'sun50i-h6-pine-h64.dtb',
'config': 'pine_h64_defconfig' 'config': 'pine_h64_defconfig',
'crust_config': 'pine_h64_defconfig',
}, },
'pine-h64-model-b': { 'pine-h64-model-b': {
'dtb': 'sun50i-h6-pine-h64-model-b.dtb', 'dtb': 'sun50i-h6-pine-h64-model-b.dtb',
@ -380,7 +390,7 @@ if len(sys.argv) > 3 and sys.argv[3] not in devices[sys.argv[1]][sys.argv[2]]:
if len(sys.argv) == 4: if len(sys.argv) == 4:
exit_error('Invalid option: must specify dtb or config', PROJECT=sys.argv[1], SOC=sys.argv[2]) exit_error('Invalid option: must specify dtb or config', PROJECT=sys.argv[1], SOC=sys.argv[2])
elif len(sys.argv) > 4 and sys.argv[4] not in ['dtb', 'config']: elif len(sys.argv) > 4 and sys.argv[4] not in ['dtb', 'config', 'crust_config']:
exit_error('Invalid option: %s' % sys.argv[4], PROJECT=sys.argv[1], SOC=sys.argv[2]) exit_error('Invalid option: %s' % sys.argv[4], PROJECT=sys.argv[1], SOC=sys.argv[2])
if len(sys.argv) > 5: if len(sys.argv) > 5:
@ -389,7 +399,8 @@ if len(sys.argv) > 5:
# Get dtb or u-boot config for a given project, soc, and board # Get dtb or u-boot config for a given project, soc, and board
# ./scripts/uboot_helper project device board-name dtb|config # ./scripts/uboot_helper project device board-name dtb|config
if len(sys.argv) == 5: if len(sys.argv) == 5:
print(devices[sys.argv[1]][sys.argv[2]][sys.argv[3]][sys.argv[4]]) if sys.argv[4] in devices[sys.argv[1]][sys.argv[2]][sys.argv[3]]:
print(devices[sys.argv[1]][sys.argv[2]][sys.argv[3]][sys.argv[4]])
# List boards supported by a given project and soc # List boards supported by a given project and soc
# ./scripts/uboot_helper project device # ./scripts/uboot_helper project device