@ -1,5 +1,5 @@
#
# Copyright (C) 2010-2012 OpenWrt.org
# Copyright (C) 2010-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -10,6 +10,9 @@
JFFS2_BLOCKSIZE = 64k 128k 256k
KERNEL_LOADADDR = 0x80002000
KERNEL_ENTRY = 0x80a00000
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( INCLUDE_DIR ) / i m a g e . m k
@ -269,81 +272,103 @@ endif
e n d e f
i f e q ( $( CONFIG_TARGET_lantiq_falcon ) , y )
I m a g e / B u i l d K e r n e l / P r o f i l e / EASY98000NOR = $( call Image/BuildKernel/Template,EASY98000NOR)
I m a g e / B u i l d / P r o f i l e / EASY98000NOR = $( call Image/Build/$( 1) ,$( 1) ,EASY98000NOR)
I m a g e / B u i l d K e r n e l / P r o f i l e / EASY98000SFLASH = $( call Image/BuildKernel/Template,EASY98000SFLASH)
I m a g e / B u i l d / P r o f i l e / EASY98000SFLASH = $( call Image/Build/$( 1) ,$( 1) ,EASY98000SFLASH)
e n d i f
i f e q ( $( CONFIG_TARGET_lantiq_ase ) , y )
I m a g e / B u i l d K e r n e l / P r o f i l e / DGN1000B = $( call Image/BuildKernel/Template,DGN1000B)
I m a g e / B u i l d / P r o f i l e / DGN1000B = $( call Image/Build/$( 1) ,$( 1) ,DGN1000B)
e n d i f
### Kernel scripts ###
d e f i n e B u i l d / a p p e n d - d t b
$( call Image/BuildDTB,../dts/$( DEVICE_DTS) .dts,$@ .dtb)
cat $@ .dtb >> $@
e n d e f
i f e q ( $( CONFIG_TARGET_lantiq_xway ) , y )
d e f i n e B u i l d / t p l i n k - f w
mktplinkfw2 -c -B $( BOARD_ID) -s \
-k $@ -o $@ .new
mv $@ .new $@
e n d e f
# Danube
I m a g e / B u i l d K e r n e l / P r o f i l e / BTHOMEHUBV2B = $( call Image/BuildKernel/Template,BTHOMEHUBV2B)
I m a g e / B u i l d / P r o f i l e / BTHOMEHUBV2B = $( call Image/BuildNAND/$( 1) ,$( 1) ,BTHOMEHUBV2B)
d e f i n e B u i l d / m k t p l i n k f w 2
mktplinkfw2 -B $( BOARD_ID) -s -a 0x4 -j \
-k $( word 1,$^) -r $( word 2,$^) \
-o $@
e n d e f
I m a g e / B u i l d K e r n e l / P r o f i l e / EASY50712 = $( call Image/BuildKernel/Template,EASY50712)
I m a g e / B u i l d / P r o f i l e / EASY50712 = $( call Image/Build/$( 1) ,$( 1) ,EASY50712)
I m a g e / B u i l d K e r n e l / P r o f i l e / ACMP252 = $( call Image/BuildKernel/Template,ACMP252)
I m a g e / B u i l d / P r o f i l e / ACMP252 = $( call Image/Build/$( 1) ,$( 1) ,ACMP252)
# Shared device definition: applies to every defined device
d e f i n e D e v i c e / D e f a u l t
PROFILES = Default $$ ( DEVICE_PROFILE)
KERNEL_DEPENDS = $$ ( wildcard ../dts/$$ ( DEVICE_DTS) .dts)
KERNEL_INITRAMFS_NAME = $$ ( KERNEL_NAME) -initramfs
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
FILESYSTEMS := squashfs
DEVICE_PROFILE :=
DEVICE_DTS :=
e n d e f
DEVICE_VARS += BOARD_ID DEVICE_PROFILE DEVICE_DTS
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV4510PW = $( call Image/BuildKernel/Template,ARV4510PW)
I m a g e / B u i l d / P r o f i l e / ARV4510PW = $( call Image/Build/$( 1) ,$( 1) ,ARV4510PW)
d e f i n e D e v i c e / l a n t i q T p L i n k
KERNEL := kernel-bin | append-dtb | lzma
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-fw
IMAGES := tplink
IMAGE/tplink := mktplinkfw2
e n d e f
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV4525PW = $( call Image/BuildKernel/Template,ARV4525PW)
I m a g e / B u i l d / P r o f i l e / ARV4525PW = $( call Image/Build/$( 1) ,$( 1) ,ARV4525PW)
d e f i n e l a n t i q T p L i n k
define Device/$( 1)
$$ ( Device/lantiqTpLink)
DEVICE_PROFILE := $( 1)
DEVICE_DTS := $( 1)
BOARD_ID := $( 2)
endef
TARGET_DEVICES += $( 1)
e n d e f
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV7525PW = $( call Image/BuildKernel/Template,ARV7525PW)
I m a g e / B u i l d / P r o f i l e / ARV7525PW = $( call Image/Build/$( 1) ,$( 1) ,ARV7525PW)
d e f i n e l a n t i q I m a g e
define Device/$( 1)
$$ ( Device/lantiqImage)
DEVICE_PROFILE := $( 1)
DEVICE_DTS := $( 1)
endef
TARGET_DEVICES += $( 1)
e n d e f
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV4518PWR01 = $( call Image/BuildKernel/Template,ARV4518PWR01)
I m a g e / B u i l d / P r o f i l e / ARV4518PWR01 = $( call Image/Build/$( 1) ,$( 1) ,ARV4518PWR01)
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV4518PWR01A = $( call Image/BuildKernel/Template,ARV4518PWR01A)
I m a g e / B u i l d / P r o f i l e / ARV4518PWR01A = $( call Image/Build/$( 1) ,$( 1) ,ARV4518PWR01A)
i f e q ( $( CONFIG_TARGET_lantiq_falcon ) , y )
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV4519PW = $( call Image/BuildKernel/Template,ARV4519PW)
I m a g e / B u i l d / P r o f i l e / ARV4519PW = $( call Image/Build/$( 1) ,$( 1) ,ARV4519PW)
$( eval $ ( call lantiqImage ,EASY 98000NOR ) )
$( eval $ ( call lantiqImage ,EASY 98000SFLASH ) )
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV4520PW = $( call Image/BuildKernel/Template,ARV4520PW)
I m a g e / B u i l d / P r o f i l e / ARV4520PW = $( call Image/Build/$( 1) ,$( 1) ,ARV4520PW)
e n d i f
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV452CQW = $( call Image/BuildKernel/Template,ARV452CQW)
I m a g e / B u i l d / P r o f i l e / ARV452CQW = $( call Image/Build/$( 1) ,$( 1) ,ARV452CQW)
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV7510PW22 = $( call Image/BuildKernel/Template,ARV7510PW22)
I m a g e / B u i l d / P r o f i l e / ARV7510PW22 = $( call Image/Build/$( 1) ,$( 1) ,ARV7510PW22)
i f e q ( $( CONFIG_TARGET_lantiq_ase ) , y )
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV7518PW = $( call Image/BuildKernel/Template,ARV7518PW)
I m a g e / B u i l d / P r o f i l e / ARV7518PW = $( call Image/Build/$( 1) ,$( 1) ,ARV7518PW)
$( eval $ ( call lantiqImage ,DGN 1000B ) )
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV7519PW = $( call Image/BuildKernel/Template,ARV7519PW)
I m a g e / B u i l d / P r o f i l e / ARV7519PW = $( call Image/Build/$( 1) ,$( 1) ,ARV7519PW)
e n d i f
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV752DPW = $( call Image/BuildKernel/Template,ARV752DPW)
I m a g e / B u i l d / P r o f i l e / ARV752DPW = $( call Image/Build/$( 1) ,$( 1) ,ARV752DPW)
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV752DPW22 = $( call Image/BuildKernel/Template,ARV752DPW22)
I m a g e / B u i l d / P r o f i l e / ARV752DPW22 = $( call Image/Build/$( 1) ,$( 1) ,ARV752DPW22)
i f e q ( $( CONFIG_TARGET_lantiq_xway ) , y )
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV8539PW22 = $( call Image/BuildKernel/Template,ARV8539PW22)
I m a g e / B u i l d / P r o f i l e / ARV8539PW22 = $( call Image/Build/$( 1) ,$( 1) ,ARV8539PW22)
# Danube
I m a g e / B u i l d K e r n e l / P r o f i l e / BTHOMEHUBV2B = $( call Image/BuildKernel/Template,BTHOMEHUBV2B)
I m a g e / B u i l d / P r o f i l e / BTHOMEHUBV2B = $( call Image/BuildNAND/$( 1) ,$( 1) ,BTHOMEHUBV2B)
I m a g e / B u i l d K e r n e l / P r o f i l e / GIGASX76X = $( call Image/BuildKernel/Template,GIGASX76X)
I m a g e / B u i l d / P r o f i l e / GIGASX76X = $( call Image/Build/$( 1) ,$( 1) ,GIGASX76X)
$( eval $ ( call lantiqImage ,EASY 50712) )
$( eval $ ( call lantiqImage ,ACMP 252) )
$( eval $ ( call lantiqImage ,ARV 4510PW ) )
$( eval $ ( call lantiqImage ,ARV 4525PW ) )
$( eval $ ( call lantiqImage ,ARV 7525PW ) )
$( eval $ ( call lantiqImage ,ARV 4518PWR 01) )
$( eval $ ( call lantiqImage ,ARV 4518PWR 01A ) )
$( eval $ ( call lantiqImage ,ARV 4519PW ) )
$( eval $ ( call lantiqImage ,ARV 4520PW ) )
$( eval $ ( call lantiqImage ,ARV 452CQW ) )
$( eval $ ( call lantiqImage ,ARV 7510PW 22) )
$( eval $ ( call lantiqImage ,ARV 7518PW ) )
$( eval $ ( call lantiqImage ,ARV 7519PW ) )
$( eval $ ( call lantiqImage ,ARV 752DPW ) )
$( eval $ ( call lantiqImage ,ARV 752DPW 22) )
$( eval $ ( call lantiqImage ,ARV 8539PW 22) )
$( eval $ ( call lantiqImage ,GIGASX 76X ) )
# AR9
@ -356,23 +381,15 @@ Image/Build/Profile/DGN3500=$(call Image/BuildDGN3500/$(1),$(1),DGN3500)
I m a g e / B u i l d K e r n e l / P r o f i l e / DGN3500B = $( call Image/BuildKernel/Template,DGN3500B)
I m a g e / B u i l d / P r o f i l e / DGN3500B = $( call Image/BuildDGN3500B/$( 1) ,$( 1) ,DGN3500B)
I m a g e / B u i l d K e r n e l / P r o f i l e / WBMRA = $( call Image/BuildKernel/Template,WBMR)
I m a g e / B u i l d / P r o f i l e / WBMRA = $( call Image/Build/$( 1) ,$( 1) ,WBMR)
I m a g e / B u i l d K e r n e l / P r o f i l e / WBMRB = $( call Image/BuildKernel/Template,WBMR)
I m a g e / B u i l d / P r o f i l e / WBMRB = $( call Image/Build/$( 1) ,$( 1) ,WBMR)
$( eval $ ( call lantiqImage ,WBMRA ) )
$( eval $ ( call lantiqImage ,WBMRB ) )
I m a g e / B u i l d K e r n e l / P r o f i l e / FRITZ7320 = $( call Image/BuildKernelEVA/Template,FRITZ7320)
I m a g e / B u i l d / P r o f i l e / FRITZ7320 = $( call Image/BuildEVA/$( 1) ,$( 1) ,FRITZ7320)
I m a g e / B u i l d K e r n e l / P r o f i l e / GR7000 = $( call Image/BuildKernel/Template,GR7000)
I m a g e / B u i l d / P r o f i l e / GR7000 = $( call Image/Build/$( 1) ,$( 1) ,GR7000)
I m a g e / B u i l d K e r n e l / P r o f i l e / H201L = $( call Image/BuildKernel/Template,H201L)
I m a g e / B u i l d / P r o f i l e / H201L = $( call Image/Build/$( 1) ,$( 1) ,H201L)
I m a g e / B u i l d K e r n e l / P r o f i l e / P2601HNFX = $( call Image/BuildKernel/Template,P2601HNFX)
I m a g e / B u i l d / P r o f i l e / P2601HNFX = $( call Image/Build/$( 1) ,$( 1) ,P2601HNFX)
$( eval $ ( call lantiqImage ,GR 7000) )
$( eval $ ( call lantiqImage ,H 201L ) )
$( eval $ ( call lantiqImage ,P 2601HNFX ) )
e n d i f
@ -386,17 +403,13 @@ Image/Build/Profile/P2812HNUF1=$(call Image/BuildNAND/$(1),$(1),P2812HNUF1)
I m a g e / B u i l d K e r n e l / P r o f i l e / P2812HNUF3 = $( call Image/BuildKernel/Template,P2812HNUF3)
I m a g e / B u i l d / P r o f i l e / P2812HNUF3 = $( call Image/BuildNAND/$( 1) ,$( 1) ,P2812HNUF3)
I m a g e / B u i l d K e r n e l / P r o f i l e / ARV7519RW22 = $( call Image/BuildKernel/Template,ARV7519RW22,$( 1) )
I m a g e / B u i l d / P r o f i l e / ARV7519RW22 = $( call Image/Build/$( 1) ,$( 1) ,ARV7519RW22)
$( eval $ ( call lantiqImage ,ARV 7519RW 22) )
I m a g e / B u i l d K e r n e l / P r o f i l e / BTHOMEHUBV5A = $( call Image/BuildKernel/Template,BTHOMEHUBV5A)
I m a g e / B u i l d / P r o f i l e / BTHOMEHUBV5A = $( call Image/BuildNAND/$( 1) ,$( 1) ,BTHOMEHUBV5A)
I m a g e / B u i l d K e r n e l / P r o f i l e / EASY80920NAND = $( call Image/BuildKernel/Template,EASY80920NAND)
I m a g e / B u i l d / P r o f i l e / EASY80920NAND = $( call Image/Build/$( 1) ,$( 1) ,EASY80920NAND)
I m a g e / B u i l d K e r n e l / P r o f i l e / EASY80920NOR = $( call Image/BuildKernel/Template,EASY80920NOR)
I m a g e / B u i l d / P r o f i l e / EASY80920NOR = $( call Image/Build/$( 1) ,$( 1) ,EASY80920NOR)
$( eval $ ( call lantiqImage ,EASY 80920NAND ) )
$( eval $ ( call lantiqImage ,EASY 80920NOR ) )
I m a g e / B u i l d K e r n e l / P r o f i l e / FRITZ3370 = $( call Image/BuildKernelEVA/Template,FRITZ3370)
I m a g e / B u i l d / P r o f i l e / FRITZ3370 = $( call Image/BuildEVA/$( 1) ,$( 1) ,FRITZ3370)
@ -407,23 +420,15 @@ Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J)
I m a g e / B u i l d K e r n e l / P r o f i l e / VG3503J_V2 = $( call Image/BuildKernelLoader/Template,VG3503J_V2)
I m a g e / B u i l d / P r o f i l e / VG3503J_V2 = $( call Image/BuildLoader/$( 1) ,$( 1) ,VG3503J_V2)
I m a g e / B u i l d K e r n e l / P r o f i l e / TDW8970 = $( call Image/BuildKernelTPLink/Template,TDW8970,TD-W8970v1,$( 1) )
I m a g e / B u i l d / P r o f i l e / TDW8970 = $( call Image/BuildTPLink/$( 1) ,$( 1) ,TDW8970,TD-W8970v1)
I m a g e / B u i l d K e r n e l / P r o f i l e / TDW8980 = $( call Image/BuildKernelTPLink/Template,TDW8980,TD-W8980v1,$( 1) )
I m a g e / B u i l d / P r o f i l e / TDW8980 = $( call Image/BuildTPLink/$( 1) ,$( 1) ,TDW8980,TD-W8980v1)
I m a g e / B u i l d K e r n e l / P r o f i l e / VR200v = $( call Image/BuildKernelTPLink/Template,VR200v,ArcherVR200V,$( 1) )
I m a g e / B u i l d / P r o f i l e / VR200v = $( call Image/BuildTPLink/$( 1) ,$( 1) ,VR200v,ArcherVR200V)
I m a g e / B u i l d K e r n e l / P r o f i l e / VGV7510KW22NOR = $( call Image/BuildKernel/Template,VGV7510KW22NOR,$( 1) )
I m a g e / B u i l d / P r o f i l e / VGV7510KW22NOR = $( call Image/Build/$( 1) ,$( 1) ,VGV7510KW22NOR)
$( eval $ ( call lantiqTpLink ,TDW 8970,TD -W 8970v 1) )
$( eval $ ( call lantiqTpLink ,TDW 8980,TD -W 8980v 1) )
$( eval $ ( call lantiqTpLink ,VR 200v ,ArcherVR 200V ) )
$( eval $ ( call lantiqImage ,VGV 7510KW 22NOR ) )
I m a g e / B u i l d K e r n e l / P r o f i l e / VGV7510KW22BRN = $( call Image/BuildKernel/Template,VGV7510KW22BRN,$( 1) )
I m a g e / B u i l d / P r o f i l e / VGV7510KW22BRN = $( call Image/Build/$( 1) ,$( 1) ,VGV7510KW22BRN,BRNDA6431,0x12345678,0x04c11db7,$( 1) )
I m a g e / B u i l d K e r n e l / P r o f i l e / VGV7519NOR = $( call Image/BuildKernel/Template,VGV7519NOR,$( 1) )
I m a g e / B u i l d / P r o f i l e / VGV7519NOR = $( call Image/Build/$( 1) ,$( 1) ,VGV7519NOR)
$( eval $ ( call lantiqImage ,VGV 7519NOR ) )
I m a g e / B u i l d K e r n e l / P r o f i l e / VGV7519BRN = $( call Image/BuildKernel/Template,VGV7519BRN,$( 1) )
I m a g e / B u i l d / P r o f i l e / VGV7519BRN = $( call Image/Build/$( 1) ,$( 1) ,VGV7519BRN,5D00008000,0x12345678,0x2083b8ed,$( 1) )