]> git.dujemihanovic.xyz Git - u-boot.git/commit
xilinx: common: Add support for partial string match in board_fit_config_name_match()
authorMichal Simek <michal.simek@amd.com>
Fri, 6 Jan 2023 08:38:52 +0000 (09:38 +0100)
committerMichal Simek <michal.simek@amd.com>
Wed, 18 Jan 2023 11:17:47 +0000 (12:17 +0100)
commit8174cd21163a4bc1095a50b6ac1a08a37f366c92
treee376d2eadea197eab285ccad3756be793847c8b9
parent724379d9afc850de2767094987a761f096af7718
xilinx: common: Add support for partial string match in board_fit_config_name_match()

Board name in FIT image can use U-Boot regular expressions SLRE to instruct
U-Boot to handle all revisions for certain board.
For example when name (description property) is saying "zynqmp-zcu104-revA"
only description with this name is selected.
When zynqmp-zcu104.* is described then all board revisions will be handled
by this fragment.
Xilinx normally have some board revisions which are SW compatible to each
other. That's why make sense to define board name with revisions first
follow by generic description with '.*' at the end like this:

config_1 {
        description = "zynqmp-zcu104-rev[AB]";
        fdt = "zynqmp-zcu104-revA";
};
config_2 {
        description = "zynqmp-zcu104.*";
        fdt = "zynqmp-zcu104-revC";
};

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/d67683a3c5d0435a5070e622f7a9a38e19c64cf5.1672994329.git.michal.simek@amd.com
board/xilinx/common/board.c