realtek: rt-loader: enhance is_uimage()
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 30 Dec 2025 15:43:37 +0000 (16:43 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 2 Jan 2026 17:03:45 +0000 (18:03 +0100)
commit8f66b335036f762ad0d4b97afd5a25ce75104f5c
treed95aafd9b3e1d38c7b6f6ccfc9e959847a7c3d2f
parent7a78dc4a5d1edc63116b100ffe6c374913d128a8
realtek: rt-loader: enhance is_uimage()

Until now is_uimage() is only a crc check and the caller
still needs to check other bits of the uimage header. Make
this function what it is meant to be.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21332
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/image/rt-loader/src/main.c