Author: luka
Date: 2016-03-14 18:06:08 +0100 (Mon, 14 Mar 2016)
New Revision: 49009

Modified:
   trunk/target/linux/kirkwood/image/Makefile
Log:
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 <[email protected]>

Modified: trunk/target/linux/kirkwood/image/Makefile
===================================================================
--- trunk/target/linux/kirkwood/image/Makefile  2016-03-14 17:06:06 UTC (rev 
49008)
+++ trunk/target/linux/kirkwood/image/Makefile  2016-03-14 17:06:08 UTC (rev 
49009)
@@ -10,7 +10,7 @@
 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,8 +18,23 @@
   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
   DEVICE_DTS := kirkwood-linksys-audi
   PAGESIZE := 512
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to