openwrt-pf/target/linux
Rafał Miłecki 15a0701cdd kernel: rewrite run_parsers_by_type() to use add_mtd_partitions()
Make run_parsers_by_type() more similar to the parse_mtd_partitions():
1. Use struct mtd_partitions
2. Use add_mtd_partitions()

This change simplifies run_parsers_by_type() by:
1. Dropping loop
2. Dropping code getting partition properties (name, offset, size)

Moreover this change allows passing more partitions details (e.g.
mask_flags).

One noticeable change introduced by this patch is adding parsed
partitions as children. This results in printing their *relative*
offsets which unifies this code with parse_mtd_partitions() behaviour.

Before:
[    1.785448] 0x00000018f800-0x000000fb0000 : "rootfs"
[    1.791642] mtd: device 4 (rootfs) set to be root filesystem
[    1.797537] 1 squashfs-split partitions found on MTD device rootfs
[    1.804009] 0x0000004e0000-0x000000fb0000 : "rootfs_data"

After:
[    1.785376] 0x00000018f800-0x000000fb0000 : "rootfs"
[    1.791601] mtd: device 4 (rootfs) set to be root filesystem
[    1.797491] 1 squashfs-split partitions found on MTD device rootfs
[    1.803936] Creating 1 MTD partitions on "rootfs":
[    1.808910] 0x000000350800-0x000000e20800 : "rootfs_data"

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2020-02-11 16:55:38 +01:00
..
apm821xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ar71xx kernel: bump 4.14 to 4.14.167 2020-01-24 13:14:33 +01:00
arc770
archs38
armvirt
at91
ath25
ath79 ath79: add support for TP-Link TL-WA830RE v1 2020-02-11 14:31:05 +01:00
bcm53xx bcm53xx: build images for Luxul ABR-4500 and XBR-4500 routers 2020-02-07 09:31:22 +01:00
brcm47xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
brcm63xx brcm63xx: apply updated compatibles for selecting board_info 2020-02-08 19:30:39 +01:00
brcm2708 brcm2708: update to latest patches from RPi foundation 2020-02-04 19:14:13 +01:00
cns3xxx
gemini
generic kernel: rewrite run_parsers_by_type() to use add_mtd_partitions() 2020-02-11 16:55:38 +01:00
imx6
ipq40xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ipq806x kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
kirkwood kirkwood: exploit BOARD_NAME to set DEVICE_DTS and SUPPORTED_DEVICES 2020-01-23 14:27:12 +01:00
lantiq lantiq: tidy up image/Makefile 2020-01-24 18:52:41 +01:00
layerscape kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
malta malta: enable HighMem on MIPS32 2020-01-15 22:35:48 +01:00
mediatek kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
mpc85xx treewide: move mktplinkfw to tplink-v1-image in image-commands.mk 2020-01-08 16:15:29 +01:00
mvebu mvebu: image: align subtargets makefile names 2020-02-01 20:02:36 +01:00
mxs
octeon octeon: apply vendor_model scheme to device definition/image name 2020-01-26 23:00:26 +01:00
octeontx
omap
oxnas
pistachio kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
ramips ramips: append tail to WF2881 initramfs image 2020-02-11 15:13:52 +01:00
rb532
samsung
sunxi kernel: bump 4.14 to 4.14.169 2020-02-04 18:10:13 +01:00
tegra
uml
x86
zynq zynq: derive DEVICE_DTS from device definition name 2020-01-21 14:26:04 +01:00
Makefile