forked from OERV-BSP/u-boot
binman: ti-board-config: Add support for TI board config binaries
The ti-board-config entry loads and validates a given YAML config file against a given schema, and generates the board config binary. K3 devices require these binaries to be packed into the final system firmware images. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
This commit is contained in:
committed by
Tom Rini
parent
247aa5a191
commit
6c66ccf26c
49
tools/binman/test/yaml/schema.yaml
Normal file
49
tools/binman/test/yaml/schema.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Test schema
|
||||
#
|
||||
---
|
||||
|
||||
definitions:
|
||||
u8:
|
||||
type: integer
|
||||
minimum: 0
|
||||
maximum: 0xff
|
||||
u16:
|
||||
type: integer
|
||||
minimum: 0
|
||||
maximum: 0xffff
|
||||
u32:
|
||||
type: integer
|
||||
minimum: 0
|
||||
maximum: 0xffffffff
|
||||
|
||||
type: object
|
||||
properties:
|
||||
main-branch:
|
||||
type: object
|
||||
properties:
|
||||
obj:
|
||||
type: object
|
||||
properties:
|
||||
a:
|
||||
$ref: "#/definitions/u32"
|
||||
b:
|
||||
$ref: "#/definitions/u16"
|
||||
arr:
|
||||
type: array
|
||||
minItems: 4
|
||||
maxItems: 4
|
||||
items:
|
||||
$ref: "#/definitions/u8"
|
||||
another-arr:
|
||||
type: array
|
||||
minItems: 2
|
||||
maxItems: 2
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
c:
|
||||
$ref: "#/definitions/u8"
|
||||
d:
|
||||
$ref: "#/definitions/u8"
|
||||
Reference in New Issue
Block a user