@ -39,12 +39,6 @@ define PatchKernelLzma
$( call CompressLzma,$( KDIR) /vmlinux$( 2) -$( 1) .tmp,$( KDIR) /vmlinux$( 2) -$( 1) .lzma)
e n d e f
d e f i n e M k B r n I m a g e
mkbrncmdline -i $( KDIR) /vmlinux-$( 5) -o $( KDIR) /vmlinux-$( 5) -brn BRN-BOOT $( 7)
$( call CompressLzma,$( KDIR) /vmlinux-$( 5) -brn,$( KDIR) /vmlinux-$( 5) -brn.lzma)
mkbrnimg -s $( 1) -m $( 2) -p $( 3) -o $( 4) $( KDIR) /vmlinux-$( 5) -brn.lzma $( KDIR) /root.$( 6)
e n d e f
d e f i n e M k I m a g e L z m a
mkimage -A mips -O linux -T kernel -a 0x80002000 -C lzma \
-e 0x80002000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
@ -61,7 +55,6 @@ endef
d e f i n e I m a g e / B u i l d / s q u a s h f s
cat $( KDIR) /uImage-$( 2) $( KDIR) /root.$( 1) > $( BIN_DIR) /$( IMG_PREFIX) -$( 2) -$( 1) .image
$( call prepare_generic_squashfs,$( BIN_DIR) /$( IMG_PREFIX) -$( 2) -$( 1) .image)
$( if $( 3) ,$( call MkBrnImage,$( 3) ,$( 4) ,$( 5) ,$( BIN_DIR) /$( IMG_PREFIX) -$( 2) -$( 3) -brnImage,$( 2) ,$( 1) ,$( 6) ) )
e n d e f
d e f i n e I m a g e / B u i l d N A N D / s q u a s h f s
@ -268,6 +261,14 @@ define Build/mktplinkfw2
-o $@
e n d e f
d e f i n e B u i l d / m k b r n c m d l i n e
mkbrncmdline -i $@ -o $@ .new BRN-BOOT
mv $@ .new $@
e n d e f
d e f i n e B u i l d / m k b r n i m g
mkbrnimg -s $( SIGNATURE) -m $( MAGIC) -p $( CRC32_POLY) -o $@ $( word 1,$^) $( word 2,$^)
e n d e f
# 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
@ -291,6 +292,13 @@ define Device/lantiqTpLink
IMAGE/tplink := mktplinkfw2
e n d e f
d e f i n e D e v i c e / l a n t i q B r n I m a g e
KERNEL := kernel-bin | append-dtb | mkbrncmdline | lzma-no-dict
IMAGES := factory.bin
IMAGE/factory.bin := mkbrnimg
e n d e f
DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY
d e f i n e l a n t i q T p L i n k
define Device/$( 1)
$$ ( Device/lantiqTpLink)
@ -310,6 +318,17 @@ define lantiqImage
TARGET_DEVICES += $( 1)
e n d e f
d e f i n e l a n t i q B r n I m a g e
define Device/$( 1)
$$ ( Device/lantiqBrnImage)
DEVICE_PROFILE := $( 1)
DEVICE_DTS := $( 1)
SIGNATURE := $( 2)
MAGIC := $( 3)
CRC32_POLY := $( 4)
endef
TARGET_DEVICES += $( 1)
e n d e f
i f e q ( $( CONFIG_TARGET_lantiq_falcon ) , y )
@ -404,14 +423,9 @@ $(eval $(call lantiqTpLink,TDW8970,TD-W8970v1))
$( 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) )
$( eval $ ( call lantiqBrnImage ,VGV 7510KW 22BRN ,BRNDA 6431,0x 12345678,0x 04c 11db 7) )
$( 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) )
$( eval $ ( call lantiqBrnImage ,VGV 7519BRN ,5D 00008000,0x 12345678,0x 2083b 8ed ) )
d e f i n e I m a g e / P r e p a r e
$( call Image/Prepare/Profile,$( PROFILE) )