aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/image
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-05-30 11:54:06 +0200
committerJohn Crispin <john@phrozen.org>2016-06-05 23:23:57 +0200
commit1616bb2a7d18131627d6fee0eb26a0f6be2a5962 (patch)
tree1ac9e521057c3a200cc9b3033c27c2cdf7130c40 /target/linux/lantiq/image
parentaa930ba3ddccb8aa573b2e364d3f2315627d757f (diff)
downloadupstream-1616bb2a7d18131627d6fee0eb26a0f6be2a5962.tar.gz
upstream-1616bb2a7d18131627d6fee0eb26a0f6be2a5962.tar.bz2
upstream-1616bb2a7d18131627d6fee0eb26a0f6be2a5962.zip
lantiq/image: move tplink specific image into own file
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target/linux/lantiq/image')
-rw-r--r--target/linux/lantiq/image/Makefile45
-rw-r--r--target/linux/lantiq/image/tp-link.mk45
2 files changed, 46 insertions, 44 deletions
diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile
index f114007288..bd2abd9fd1 100644
--- a/target/linux/lantiq/image/Makefile
+++ b/target/linux/lantiq/image/Makefile
@@ -249,18 +249,6 @@ define Build/append-dtb
cat $@.dtb >> $@
endef
-define Build/tplink-fw
- mktplinkfw2 -c -B $(BOARD_ID) -s \
- -k $@ -o $@.new
- mv $@.new $@
-endef
-
-define Build/mktplinkfw2
- mktplinkfw2 -B $(BOARD_ID) -s -a 0x4 -j \
- -k $(word 1,$^) -r $(word 2,$^) \
- -o $@
-endef
-
define Build/mkbrncmdline
mkbrncmdline -i $@ -o $@.new BRN-BOOT
mv $@.new $@
@@ -286,14 +274,6 @@ define Device/Default
endef
DEVICE_VARS += DEVICE_PROFILE DEVICE_DTS IMAGE_SIZE
-define Device/lantiqTpLink
- KERNEL := kernel-bin | append-dtb | lzma
- KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-fw
- IMAGES := sysupgrade.bin
- IMAGE/sysupgrade.bin := mktplinkfw2 | check-size $$$$(IMAGE_SIZE)
-endef
-DEVICE_VARS += BOARD_ID
-
define Device/lantiqBrnImage
KERNEL := kernel-bin | append-dtb | mkbrncmdline | lzma-no-dict
IMAGES := factory.bin
@@ -428,30 +408,7 @@ Image/Build/Profile/FRITZ3370=$(call Image/BuildEVA/$(1),$(1),FRITZ3370)
Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelLoader/Template,VG3503J)
Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J)
-define Device/TDW8970
- $(Device/lantiqTpLink)
- DEVICE_PROFILE := TDW8970
- DEVICE_DTS = $(DEVICE_PROFILE)
- BOARD_ID := TD-W8970v1
- IMAGE_SIZE := 7680k
-endef
-
-define Device/TDW8980
- $(Device/lantiqTpLink)
- DEVICE_PROFILE := TDW8980
- DEVICE_DTS = $(DEVICE_PROFILE)
- BOARD_ID := TD-W8980v1
- IMAGE_SIZE := 7680k
-endef
-
-define Device/VR200v
- $(Device/lantiqTpLink)
- DEVICE_PROFILE := VR200v
- DEVICE_DTS = $(DEVICE_PROFILE)
- BOARD_ID := ArcherVR200V
- IMAGE_SIZE := 15808k
-endef
-TARGET_DEVICES += TDW8970 TDW8980 VR200v
+include tp-link.mk
$(eval $(call lantiqImage,VGV7510KW22NOR,15232k))
$(eval $(call lantiqBrnImage,VGV7510KW22BRN,6784k,BRNDA6431,0x12345678,0x04c11db7))
diff --git a/target/linux/lantiq/image/tp-link.mk b/target/linux/lantiq/image/tp-link.mk
new file mode 100644
index 0000000000..5cb3169393
--- /dev/null
+++ b/target/linux/lantiq/image/tp-link.mk
@@ -0,0 +1,45 @@
+define Build/tplink-fw
+ mktplinkfw2 -c -B $(BOARD_ID) -s \
+ -k $@ -o $@.new
+ mv $@.new $@
+endef
+
+define Build/mktplinkfw2
+ mktplinkfw2 -B $(BOARD_ID) -s -a 0x4 -j \
+ -k $(word 1,$^) -r $(word 2,$^) \
+ -o $@
+endef
+DEVICE_VARS += BOARD_ID
+
+define Device/lantiqTpLink
+ KERNEL := kernel-bin | append-dtb | lzma
+ KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-fw
+ IMAGES := sysupgrade.bin
+ IMAGE/sysupgrade.bin := mktplinkfw2 | check-size $$$$(IMAGE_SIZE)
+endef
+
+define Device/TDW8970
+ $(Device/lantiqTpLink)
+ DEVICE_PROFILE := TDW8970
+ DEVICE_DTS = $(DEVICE_PROFILE)
+ BOARD_ID := TD-W8970v1
+ IMAGE_SIZE := 7680k
+endef
+
+define Device/TDW8980
+ $(Device/lantiqTpLink)
+ DEVICE_PROFILE := TDW8980
+ DEVICE_DTS = $(DEVICE_PROFILE)
+ BOARD_ID := TD-W8980v1
+ IMAGE_SIZE := 7680k
+endef
+
+define Device/VR200v
+ $(Device/lantiqTpLink)
+ DEVICE_PROFILE := VR200v
+ DEVICE_DTS = $(DEVICE_PROFILE)
+ BOARD_ID := ArcherVR200V
+ IMAGE_SIZE := 15808k
+endef
+TARGET_DEVICES += TDW8970 TDW8980 VR200v
+