[PATCH v3 05/10] kernel: mtdsplit_uimage: replace "openwrt, okli" parser

Rafał Miłecki zajec5 at gmail.com
Wed Jan 20 10:33:21 EST 2021


On 20.01.2021 15:35, Bjørn Mork wrote:
> diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
> index 58c40e9ec70b..32c027d3e979 100644
> --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
> +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
> @@ -429,58 +429,6 @@ static struct mtd_part_parser uimage_edimax_parser = {
>   	.type = MTD_PARSER_TYPE_FIRMWARE,
>   };
>   
> -/**************************************************
> - * OKLI (OpenWrt Kernel Loader Image)
> - **************************************************/
> -
> -#define IH_MAGIC_OKLI	0x4f4b4c49

You have that magic value put directly in a few .dts files.

What about moving above define to the dt-bindings/mtd/partitions/uimage.h ?



More information about the openwrt-devel mailing list