[PATCH 3/3] ar71xx: add profile and generate images for LigoDLB series
Daniel Golle
daniel at makrotopia.org
Mon Aug 17 11:50:23 CEST 2015
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
target/linux/ar71xx/generic/profiles/ligowave.mk | 17 +++++++++++
target/linux/ar71xx/image/Makefile | 36 ++++++++++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 target/linux/ar71xx/generic/profiles/ligowave.mk
diff --git a/target/linux/ar71xx/generic/profiles/ligowave.mk b/target/linux/ar71xx/generic/profiles/ligowave.mk
new file mode 100644
index 0000000..86c29cb
--- /dev/null
+++ b/target/linux/ar71xx/generic/profiles/ligowave.mk
@@ -0,0 +1,17 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/LIGODLB5XX
+ NAME:=LigoWave LigoDLB 5-XX
+ PACKAGES:=rssileds
+endef
+
+define Profile/LIGODLB5XX/Description
+ Package set optimized for the LigoWave LigoDLB 5-15 and LigoDLB 5-20.
+endef
+
+$(eval $(call Profile,LIGODLB5XX))
\ No newline at end of file
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 6dad0d2..b065be5 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -37,6 +37,23 @@ define Build/netgear-uImage
$(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))
endef
+define Build/netgear-image
+ $(STAGING_DIR_HOST)/bin/mkdniimg \
+ -B $(NETGEAR_BOARD) -v OpenWrt.$(REVISION) \
+ $(if $(NETGEAR_ID),-H $(NETGEAR_ID)) \
+ -r "$(1)" \
+ -i $@ -o $@.new
+ mv $@.new $@
+endef
+
+define Build/v2v-uImage
+ mkimage -A $(LINUX_KARCH) \
+ -O linux -T kernel \
+ -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
+ -n 'APCPE.QM-1.v7.99.0000' -d $@ $@.new
+ @mv $@.new $@
+endef
+
# combine kernel and rootfs into one image
# mktplinkfw <type> <optional extra arguments to mktplinkfw binary>
# <type> is "sysupgrade" or "factory"
@@ -971,6 +988,25 @@ define Device/ubnt-bz
IMAGE/sysupgrade.bin = append-kernel $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE)
endef
+define Device/v2v-dlb5xx
+ IMAGE_SIZE := 16000k
+ MTDPARTS = spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,15936k(firmware),128k(cfg),64k(art)ro
+ DEVICE_PROFILE := LIGODLB5XX
+ KERNEL := kernel-bin | patch-cmdline | lzma | v2v-uImage lzma
+endef
+
+define Device/v2v-dlb515
+ $(Device/v2v-dlb5xx)
+ BOARDNAME := V2V-DLB515
+endef
+
+define Device/v2v-dlb520
+ $(Device/v2v-dlb5xx)
+ BOARDNAME := V2V-DLB520
+endef
+
+TARGET_DEVICES += v2v-dlb515 v2v-dlb520
+
define Device/rw2458n
$(Device/ubnt-xm)
BOARDNAME := RW2458N
--
2.6.0
--45Z9DzgjV8m4Oswq--
More information about the Battlemesh
mailing list