@ -60,6 +60,18 @@ define MkImageLzma
$( call MkImage,lzma,$( KDIR) /vmlinux-$( 1) .bin.lzma,$( KDIR) /vmlinux-$( 1) .uImage,$( 3) )
e n d e f
d e f i n e M k C o m b i n e d u I m a g e
$( call PatchKernelLzma,$( 2) ,$( 3) )
if [ ` stat -c%s " $( KDIR) /vmlinux- $( 2) .bin.lzma " ` -gt ` expr $( 4) - 64` ] ; then \
echo " Warning: $( KDIR) /vmlinux- $( 2) .bin.lzma is too big " ; \
else if [ ` stat -c%s " $( KDIR) /root. $( 1) " ` -gt $( 5) ] ; then \
echo " Warning: $( KDIR) /root. $( 1) is too big " ; \
else \
( dd if = $( KDIR) /vmlinux-$( 2) .bin.lzma bs = ` expr $( 4) - 64` conv = sync ; dd if = $( KDIR) /root.$( 1) ) > $( KDIR) /vmlinux-$( 2) .bin.lzma.combined ; \
fi ; fi
$( call MkImage,lzma,$( KDIR) /vmlinux-$( 2) .bin.lzma.combined,$( call sysupname,$( 1) ,$( 2) ) ,$( 6) )
e n d e f
d e f i n e C a t F i l e s
if [ ` stat -c%s " $( 1) " ` -gt $( 2) ] ; then \
echo " Warning: $( 1) is too big " ; \
@ -125,6 +137,10 @@ define BuildFirmware/GENERIC_8M/initramfs
$( call BuildFirmware/Generic/initramfs,$( 1) ,$( 2) ,$( call mkcmdline,$( 3) ,$( 4) ,$( 5) ) $( call mkmtd/$( 6) ,$( mtdlayout_8M) ) )
e n d e f
d e f i n e B u i l d F i r m w a r e / U I M A G E _ 8 M
$( call MkCombineduImage,$( 1) ,$( 2) ,$( call mkcmdline,$( 3) ,$( 4) ,$( 5) ) $( call mkmtd/$( 6) ,$( mtdlayout_8M) ) ,$( kernel_size_8M) ,$( rootfs_size_8M) ,$( 7) )
e n d e f
mtdlayout_edimax_3g6200n = 192k( u-boot) ro,64k( u-boot-env) ro,64k( factory) ro,896k( kernel) ,2752k( rootfs) ,128k@0x3e0000( cimage) ro,3648k@0x50000( firmware)
d e f i n e B u i l d F i r m w a r e / 3 G 6 2 0 0 N
$( call BuildFirmware/Generic,$( 1) ,$( 2) ,$( call mkcmdline,$( 3) ,$( 4) ,$( 5) ) $( call mkmtd/$( 6) ,$( mtdlayout_edimax_3g6200n) ) ,917504,2818048)
@ -367,6 +383,10 @@ define Image/Build/Profile/3G6200N
$( call Image/Build/Template/$( fs_squash) /$( 1) ,3G6200N,3g-6200n,3G-6200N,ttyS1,57600,phys)
e n d e f
d e f i n e I m a g e / B u i l d / P r o f i l e / A L L 0 2 3 9 3 G
$( call Image/Build/Template/$( fs_squash) /$( 1) ,UIMAGE_8M,all0239-3g,ALL0239-3G,ttyS1,57600,phys)
e n d e f
d e f i n e I m a g e / B u i l d / P r o f i l e / A L L 0 2 5 6 N
$( call Image/Build/Template/$( fs_squash) /$( 1) ,GENERIC_4M,all0256n,ALL0256N,ttyS1,57600,spi)
e n d e f
@ -513,6 +533,7 @@ endef
i f e q ( $( CONFIG_RALINK_RT 305X ) , y )
d e f i n e I m a g e / B u i l d / P r o f i l e / D e f a u l t
$( call Image/Build/Profile/3G6200N,$( 1) )
$( call Image/Build/Profile/ALL02393G,$( 1) )
$( call Image/Build/Profile/ALL0256N,$( 1) )
$( call Image/Build/Profile/ALL5002,$( 1) )
$( call Image/Build/Profile/ARGUS_ATP52B,$( 1) )