ath79: fix platform check image mikrotik nor
authorMarcin Maj <[email protected]>
Thu, 4 Dec 2025 00:43:41 +0000 (01:43 +0100)
committerRobert Marko <[email protected]>
Fri, 5 Dec 2025 09:26:59 +0000 (10:26 +0100)
commit3a10dd596760ecebe5d8a5f3804bfe1d13f952ae
treec8dc1a57c215feae538545d5e9ee5aaac2b94a62
parentcc57e155a60891631c5040b9c4a3a2c0d1dbf38f
ath79: fix platform check image mikrotik nor

Every attempt to update a device with NOR flash
and RouterBOOT v6 resulted in the error:
“RouterBOOT 6 and earlier requires ELF-in-YAFFS image.”
The cause was that xargs did not fully remove whitespace,
so the condition "$bootentry" != "kernel" always evaluated to true.

Signed-off-by: Marcin Maj <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21034
Signed-off-by: Robert Marko <[email protected]>
target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh