diff options
author | Luka Perkov <luka@openwrt.org> | 2016-03-14 17:06:08 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-03-14 17:06:08 +0000 |
commit | 56f10e0e408c2836087f7807f4bdb4da397662c2 (patch) | |
tree | 54de48ffe1da24d020a2daed619309d5fdc55db2 /target/linux/kirkwood | |
parent | 0e8f4e011863a97e4f66c6807283456de47685a8 (diff) | |
download | master-187ad058-56f10e0e408c2836087f7807f4bdb4da397662c2.tar.gz master-187ad058-56f10e0e408c2836087f7807f4bdb4da397662c2.tar.bz2 master-187ad058-56f10e0e408c2836087f7807f4bdb4da397662c2.zip |
kirkwood: add DEVICE_VAR KERNEL_IN_UBI for kernel as volume in ubi images
depending on KERNEL_IN_UBI, the image.mk will create a ubi volume for the kernel
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49009 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/kirkwood')
-rw-r--r-- | target/linux/kirkwood/image/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index 24cb31702d..9a2c2e4fb2 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -10,7 +10,7 @@ NAND_BLOCKSIZE := 2048-128k include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -DEVICE_VARS += DEVICE_DTS KERNEL_SIZE PAGESIZE BLOCKSIZE SUBPAGESIZE +DEVICE_VARS += DEVICE_DTS KERNEL_SIZE PAGESIZE BLOCKSIZE SUBPAGESIZE KERNEL_IN_UBI KERNEL_LOADADDR:=0x8000 TARGET_DEVICES = linksys-audi linksys-viper @@ -18,6 +18,21 @@ define Device/Default KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts) KERNEL := kernel-bin | append-dtb | uImage none KERNEL_NAME := zImage + KERNEL_IN_UBI := +endef + +define Device/dockstar + DEVICE_DTS := kirkwood-dockstar + PAGESIZE := 2048 + SUBPAGESIZE := 512 + BLOCKSIZE := 128KiB + FILESYSTEMS := squashfs + PROFILES := Generic DOCKSTAR + IMAGES := factory.bin sysupgrade.tar + IMAGE/factory.bin := append-ubi + IMAGE/sysupgrade.tar := sysupgrade-nand + KERNEL_IN_UBI := 1 + KERNEL := kernel-bin | append-dtb endef define Device/linksys-audi |