[LEDE-DEV] [PATCH 00/11] sunxi: rework image build and sysupgrade support
Yousong Zhou
yszhou4tech at gmail.com
Sat Dec 31 09:06:28 PST 2016
This series mainly tries achieve the following goals
- use new image generation method
- squashfs sdcard image support
- mkfs.f2fs or mkfs.ext4 remaining space within squashfs rootfs partition and
mount it as rw overlay
- sysupgrade with fwtool check support
Device profiles are automatically generated with a helper makefile. Names for
image files, board_names, etc. are changed to try to use basename of kernel dts
file for the specific device. Names for uboot-sunxi is not touched though.
Run-tested with cubitech,cubiboard2, compile-tested others
Yousong Zhou (11):
x86: move sysupgrade.tgz only if it exists
build: unzip: perform operations quietly
build: image.mk: add IMAGE_PREFIX as one of DEFAULT_DEVICE_VARS
build: image.mk: don't install-images for devices not selected
sunxi: fix dts name for Mele M9
sunxi: convert to new image generation method
sunxi: enable loopback device and f2fs support
sunxi: make sdcard image with squashfs as rootfs
base-files: export x86 platform upgrade functions to common.sh
sunxi: add sysupgrade support
sunxi: use fwtool for checking sdcard images
include/image.mk | 5 +-
include/unpack.mk | 2 +-
package/base-files/files/lib/upgrade/common.sh | 90 ++++++++
target/linux/sunxi/Makefile | 3 +-
.../linux/sunxi/base-files/etc/board.d/02_network | 4 +-
.../base-files/lib/preinit/01_preinit_sunxi.sh | 9 -
.../sunxi/base-files/lib/preinit/02_b53_hack.sh | 2 +-
.../sunxi/base-files/lib/preinit/79_move_config | 20 ++
target/linux/sunxi/base-files/lib/sunxi.sh | 140 -------------
.../linux/sunxi/base-files/lib/upgrade/platform.sh | 67 ++++++
target/linux/sunxi/config-4.4 | 18 ++
target/linux/sunxi/image/Makefile | 226 ++++++++++++++-------
target/linux/sunxi/image/gen_sunxi_sdcard_img.sh | 3 +-
target/linux/sunxi/profiles/01-default.mk | 17 --
target/linux/sunxi/profiles/a10-olinuxino.mk | 19 --
target/linux/sunxi/profiles/a13-olimex-som.mk | 18 --
target/linux/sunxi/profiles/a13-olinuxino.mk | 18 --
target/linux/sunxi/profiles/a20-olinuxino.mk | 33 ---
target/linux/sunxi/profiles/bananapi.mk | 18 --
target/linux/sunxi/profiles/bananapro.mk | 19 --
target/linux/sunxi/profiles/cubieboard.mk | 19 --
target/linux/sunxi/profiles/cubieboard2.mk | 19 --
target/linux/sunxi/profiles/cubietruck.mk | 19 --
target/linux/sunxi/profiles/lamobo-r1.mk | 19 --
target/linux/sunxi/profiles/mele_m9.mk | 18 --
target/linux/sunxi/profiles/orangepi_plus.mk | 18 --
target/linux/sunxi/profiles/pcduino.mk | 18 --
target/linux/sunxi/profiles/pcduino3.mk | 19 --
.../x86/base-files/lib/preinit/79_move_config | 13 +-
.../linux/x86/base-files/lib/upgrade/platform.sh | 97 +--------
30 files changed, 371 insertions(+), 619 deletions(-)
delete mode 100644 target/linux/sunxi/base-files/lib/preinit/01_preinit_sunxi.sh
create mode 100644 target/linux/sunxi/base-files/lib/preinit/79_move_config
create mode 100644 target/linux/sunxi/base-files/lib/upgrade/platform.sh
delete mode 100644 target/linux/sunxi/profiles/01-default.mk
delete mode 100644 target/linux/sunxi/profiles/a10-olinuxino.mk
delete mode 100644 target/linux/sunxi/profiles/a13-olimex-som.mk
delete mode 100644 target/linux/sunxi/profiles/a13-olinuxino.mk
delete mode 100644 target/linux/sunxi/profiles/a20-olinuxino.mk
delete mode 100644 target/linux/sunxi/profiles/bananapi.mk
delete mode 100644 target/linux/sunxi/profiles/bananapro.mk
delete mode 100644 target/linux/sunxi/profiles/cubieboard.mk
delete mode 100644 target/linux/sunxi/profiles/cubieboard2.mk
delete mode 100644 target/linux/sunxi/profiles/cubietruck.mk
delete mode 100644 target/linux/sunxi/profiles/lamobo-r1.mk
delete mode 100644 target/linux/sunxi/profiles/mele_m9.mk
delete mode 100644 target/linux/sunxi/profiles/orangepi_plus.mk
delete mode 100644 target/linux/sunxi/profiles/pcduino.mk
delete mode 100644 target/linux/sunxi/profiles/pcduino3.mk
--
2.6.4
More information about the Lede-dev
mailing list