@ -191,6 +191,7 @@ define Image/BuildKernel
$( call MkuImage,lzma,,$( KDIR) /vmlinux.bin.lzma,$( UIMAGE) -lzma.bin)
cp $( KDIR) /loader-generic.elf $( VMLINUX) -lzma.elf
-mkdir -p $( KDIR_TMP)
$( call Image/Build/Profile/$( PROFILE) ,buildkernel)
i f n e q ( $( CONFIG_TARGET_ROOTFS_INITRAMFS ) , )
cp $( KDIR) /vmlinux-initramfs.elf $( VMLINUX) -initramfs.elf
cp $( KDIR) /vmlinux-initramfs $( VMLINUX) -initramfs.bin
@ -203,16 +204,21 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
e n d i f
e n d e f
I m a g e / B u i l d / W R T 4 0 0 N / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / W R T 4 0 0 N
$( call MkuImageLzma,$( 2) ,$( 3) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,1310720,6488064)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
wrt400n $( KDIR_TMP) /vmlinux-$( 2) .uImage $( KDIR) /root.$( 1) $( call factoryname,$( 1) ,$( 2) ) ; \
fi
e n d e f
d e f i n e I m a g e / B u i l d / D I R 8 2 5 B 1
d e f i n e I m a g e / B u i l d / D I R 8 2 5 B 1 / b u i l d k e r n e l
$( call MkuImageLzma,$( 2) ,$( 3) $( dir825b1_mtdlayout) )
$( call MkuImageLzma,$( 2) -fat,$( 3) $( dir825b1_mtdlayout_fat) )
e n d e f
d e f i n e I m a g e / B u i l d / D I R 8 2 5 B 1
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,65536,5308416)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
( \
@ -228,7 +234,6 @@ define Image/Build/DIR825B1
) > $( call factoryname,$( 1) ,$( 2) ) ; \
fi ; \
fi
$( call MkuImageLzma,$( 2) -fat,$( 3) $( dir825b1_mtdlayout_fat) )
$( call CatFiles,$( KDIR_TMP) /vmlinux-$( 2) -fat.uImage,65536,$( KDIR) /root.$( 1) ,6946816,$( KDIR_TMP) /$( 2) -fat.bin)
if [ -e " $( KDIR_TMP) / $( 2) -fat.bin " ] ; then \
echo -n "" > $( KDIR_TMP) /$( 2) -fat.dummy; \
@ -239,8 +244,12 @@ define Image/Build/DIR825B1
fi
e n d e f
d e f i n e I m a g e / B u i l d / D L R T D E V
d e f i n e I m a g e / B u i l d / D L R T D E V / b u i l d k e r n e l
$( call MkuImageLzma,$( 2) ,$( 3) $( dlrtdev_mtdlayout) )
$( call MkuImageLzma,$( 2) -fat,$( 3) $( dlrtdev_mtdlayout_fat) )
e n d e f
d e f i n e I m a g e / B u i l d / D L R T D E V
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,65536,5308416)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
( \
@ -256,7 +265,6 @@ define Image/Build/DLRTDEV
) > $( call factoryname,$( 1) ,$( 2) ) ; \
fi ; \
fi
$( call MkuImageLzma,$( 2) -fat,$( 3) $( dlrtdev_mtdlayout_fat) )
$( call CatFiles,$( KDIR_TMP) /vmlinux-$( 2) -fat.uImage,65536,$( KDIR) /root.$( 1) ,6946816,$( KDIR_TMP) /$( 2) -fat.bin)
if [ -e " $( KDIR_TMP) / $( 2) -fat.bin " ] ; then \
echo -n "" > $( KDIR_TMP) /$( 2) -fat.dummy; \
@ -267,8 +275,9 @@ define Image/Build/DLRTDEV
fi
e n d e f
I m a g e / B u i l d / W Z R H P 6 4 K / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / W Z R H P 6 4 K
$( call MkuImageLzma,$( 2) ,$( 3) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,65536,31850496)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
( \
@ -289,8 +298,9 @@ define Image/Build/WZRHP64K/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( 4) )
e n d e f
I m a g e / B u i l d / W Z R H P 1 2 8 K / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / W Z R H P 1 2 8 K
$( call MkuImageLzma,$( 2) ,$( 3) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,131072,31850496)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
( \
@ -311,8 +321,9 @@ define Image/Build/WZRHP128K/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( 4) )
e n d e f
I m a g e / B u i l d / W H R H P G 3 0 0 N / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / W H R H P G 3 0 0 N
$( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,65536,2818048)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
( \
@ -333,8 +344,9 @@ define Image/Build/WHRHPG300N/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( 4) )
e n d e f
I m a g e / B u i l d / C a m e o / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / C a m e o
$( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,$( 5) ,$( 6) )
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
( \
@ -345,8 +357,9 @@ define Image/Build/Cameo
fi
e n d e f
I m a g e / B u i l d / C a m e o H o r n e t / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / C a m e o H o r n e t
$( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,$( 5) ,$( 6) )
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
for r in $( 9) ; do \
@ -360,6 +373,10 @@ define Image/Build/CameoHornet
fi
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 1 3 x / b u i l d k e r n e l
$( call Image/Build/Cameo/buildkernel,$( 1) ,$( 2) ,$( 3) ,$( cameo913x_mtdlayout) ,65536,2883584,$( 4) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 1 3 x
$( call Image/Build/Cameo,$( 1) ,$( 2) ,$( 3) ,$( cameo913x_mtdlayout) ,65536,2883584,$( 4) )
e n d e f
@ -368,6 +385,10 @@ define Image/Build/Cameo913x/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( cameo913x_mtdlayout) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 7 2 4 0 / b u i l d k e r n e l
$( call Image/Build/Cameo/buildkernel,$( 1) ,$( 2) ,$( 3) ,$( cameo7240_mtdlayout) ,65536,2752512,$( 4) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 7 2 4 0
$( call Image/Build/Cameo,$( 1) ,$( 2) ,$( 3) ,$( cameo7240_mtdlayout) ,65536,2752512,$( 4) )
e n d e f
@ -376,6 +397,10 @@ define Image/Build/Cameo7240/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( cameo7240_mtdlayout) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 3 3 x / b u i l d k e r n e l
$( call Image/Build/Cameo/buildkernel,$( 1) ,$( 2) ,$( 3) ,$( cameo933x_mtdlayout) ,65536,2686976,$( 4) ,$( 5) ,$( 6) ,0xe0000,3735552)
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 3 3 x
$( call Image/Build/CameoHornet,$( 1) ,$( 2) ,$( 3) ,$( cameo933x_mtdlayout) ,65536,2686976,$( 4) ,$( 5) ,$( 6) ,0xe0000,3735552)
e n d e f
@ -384,6 +409,10 @@ define Image/Build/Cameo933x/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( cameo933x_mtdlayout) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 3 3 x _ 8 M / b u i l d k e r n e l
$( call Image/Build/Cameo/buildkernel,$( 1) ,$( 2) ,$( 3) ,$( cameo933x_mtdlayout_8M) ,65536,6422528,$( 4) ,$( 5) ,$( 6) ,0x100000,7864320)
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 3 3 x _ 8 M
$( call Image/Build/CameoHornet,$( 1) ,$( 2) ,$( 3) ,$( cameo933x_mtdlayout_8M) ,65536,6422528,$( 4) ,$( 5) ,$( 6) ,0x100000,7864320)
e n d e f
@ -392,6 +421,10 @@ define Image/Build/Cameo933x_8M/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( cameo933x_mtdlayout_8M) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 3 4 x / b u i l d k e r n e l
$( call Image/Build/Cameo/buildkernel,$( 1) ,$( 2) ,$( 3) ,$( cameo934x_mtdlayout) ,65536,15007718,$( 4) )
e n d e f
d e f i n e I m a g e / B u i l d / C a m e o 9 3 4 x
$( call Image/Build/Cameo,$( 1) ,$( 2) ,$( 3) ,$( cameo934x_mtdlayout) ,65536,15007718,$( 4) )
e n d e f
@ -410,8 +443,9 @@ define Image/Build/Ath
fi
e n d e f
I m a g e / B u i l d / A t h G z i p / buildkernel = $( call MkuImageGzip,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / A t h G z i p
$( call MkuImageGzip,$( 2) ,$( 3) $( 4) )
$( call Image/Build/Ath,$( 1) ,$( 2) ,$( 3) ,$( 4) ,$( 5) ,$( 6) ,$( 7) )
e n d e f
@ -419,8 +453,9 @@ define Image/Build/AthGzip/initramfs
$( call MkuImageGzip/initramfs,$( 2) ,$( 3) $( 4) )
e n d e f
I m a g e / B u i l d / A t h L z m a / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / A t h L z m a
$( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
$( call Image/Build/Ath,$( 1) ,$( 2) ,$( 3) ,$( 4) ,$( 5) ,$( 6) ,$( 7) )
e n d e f
@ -428,8 +463,9 @@ define Image/Build/AthLzma/initramfs
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( 4) )
e n d e f
I m a g e / B u i l d / P B 4 X / buildkernel = $( call PatchKernelLzma,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / P B 4 X
$( call PatchKernelLzma,$( 2) ,$( 3) )
dd if = $( KDIR_TMP) /vmlinux-$( 2) .bin.lzma \
of = $( call imgname,kernel,$( 2) ) .bin bs = 64k conv = sync
dd if = $( KDIR) /root.$( 1) \
@ -440,16 +476,16 @@ define Image/Build/PB4X
$( call sysupname,$( 1) ,$( 2) )
e n d e f
I m a g e / B u i l d / M y L o a d e r / buildkernel = $( call PatchKernelLzma,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / M y L o a d e r
$( call PatchKernelLzma,$( 2) ,$( 3) )
-$( STAGING_DIR_HOST) /bin/mkmylofw -B $( 2) -s $( 4) \
-p0x030000:0xe0000:al:0x80060000:kernel:$( KDIR_TMP) /vmlinux-$( 2) .bin.lzma \
-p0x110000:0:::rootfs:$( KDIR) /root.$( 1) \
$( call imgname,$( 1) ,$( 2) ) -$( 5) -factory.img
e n d e f
d e f i n e I m a g e / B u i l d / U A P P R O
d e f i n e I m a g e / B u i l d / U A P P R O / b u i l d k e r n e l
$( call MkuImageLzma,$( 2) ,$( 3) $( uap_pro_mtdlayout) )
-rm -rf $( KDIR_TMP) /$( 2)
mkdir -p $( KDIR_TMP) /$( 2) /image
@ -461,20 +497,23 @@ define Image/Build/UAPPRO
2>& 1 1>/dev/null | awk '/^.+$$$$/'
-rm -rf $( KDIR_TMP) /$( 2)
$( STAGING_DIR_HOST) /bin/padjffs2 $( KDIR_TMP) /$( 2) -kernel.jffs2 64
e n d e f
d e f i n e I m a g e / B u i l d / U A P P R O
$( call CatFiles,$( KDIR_TMP) /$( 2) -kernel.jffs2,1572864,$( KDIR) /root.$( 1) ,14548992,$( call sysupname,$( 1) ,$( 2) ) )
-$( STAGING_DIR_HOST) /bin/mkfwimage2 -f 0x9f000000 \
-v $( 5) .$( 6) .v6.0.0-OpenWrt-$( REVISION) \
-p jffs2:0x50000:0xf60000:0:0:$( call sysupname,$( 1) ,$( 2) ) \
-o $( call factoryname,$( 1) ,$( 2) )
-rm -f $( KDIR_TMP) /$( 2) -kernel.jffs2
e n d e f
d e f i n e I m a g e / B u i l d / U A P P R O / i n i t r a m f s
$( call MkuImageLzma/initramfs,$( 2) ,$( 3) $( uap_pro_mtdlayout) )
e n d e f
I m a g e / B u i l d / U B N T X M / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( ubntxm_mtdlayout) )
d e f i n e I m a g e / B u i l d / U B N T X M
$( call MkuImageLzma,$( 2) ,$( 3) $( ubntxm_mtdlayout) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,65536,6684672)
dd if = $( KDIR_TMP) /vmlinux-$( 2) .uImage of = $( KDIR_TMP) /vmlinux-$( 2) .uImage.bin bs = 64k conv = sync
-$( STAGING_DIR_HOST) /bin/mkfwimage \
@ -484,8 +523,9 @@ define Image/Build/UBNTXM
-o $( call factoryname,$( 1) ,$( 2) )
e n d e f
I m a g e / B u i l d / U B D E V / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( ubdev_mtdlayout) )
d e f i n e I m a g e / B u i l d / U B D E V
$( call MkuImageLzma,$( 2) ,$( 3) $( ubdev_mtdlayout) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,65536,6684672)
dd if = $( KDIR_TMP) /vmlinux-$( 2) .uImage of = $( KDIR_TMP) /vmlinux-$( 2) .uImage.bin bs = 64k conv = sync
-$( STAGING_DIR_HOST) /bin/mkfwimage \
@ -495,8 +535,11 @@ define Image/Build/UBDEV
-o $( call factoryname,$( 1) ,$( 2) )
e n d e f
d e f i n e I m a g e / B u i l d / U B N T
d e f i n e I m a g e / B u i l d / U B N T / b u i l d k e r n e l
$( call PatchKernelLzma,$( 2) ,$( 3) )
e n d e f
d e f i n e I m a g e / B u i l d / U B N T
dd if = $( KDIR_TMP) /vmlinux-$( 2) .bin.lzma of = $( KDIR_TMP) /vmlinux-$( 2) .lzma bs = 64k conv = sync
-$( STAGING_DIR_HOST) /bin/mkfwimage \
-B $( 4) -v $( 5) .$( 6) .OpenWrt.$( REVISION) \
@ -531,8 +574,9 @@ define Image/Build/Planex
fi
e n d e f
I m a g e / B u i l d / A L F A / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / A L F A
$( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
$( call Sysupgrade/RKuImage,$( 1) ,$( 2) ,$( 5) ,$( 6) )
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
rm -rf $( KDIR) /$( 1) ; \
@ -616,8 +660,9 @@ define Image/Build/TPLINK/initramfs
-o $( call imgname,$( 1) ,$( 2) ) -uImage.bin
e n d e f
I m a g e / B u i l d / T P L I N K - L Z M A / buildkernel = $( call PatchKernelLzma,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / T P L I N K - L Z M A
$( call PatchKernelLzma,$( 2) ,$( 3) )
-$( STAGING_DIR_HOST) /bin/mktplinkfw \
-H $( 4) -W $( 5) -F $( 6) -N OpenWrt -V $( REVISION) $( 7) \
-k $( KDIR_TMP) /vmlinux-$( 2) .bin.lzma \
@ -640,8 +685,9 @@ define Image/Build/TPLINK-LZMA/initramfs
-o $( call imgname,$( 1) ,$( 2) ) -uImage.bin
e n d e f
I m a g e / B u i l d / C y b e r T A N / buildkernel = $( call MkuImageGzip,$( 2) ,$( 3) )
d e f i n e I m a g e / B u i l d / C y b e r T A N
$( call MkuImageGzip,$( 2) ,$( 3) )
$( STAGING_DIR_HOST) /bin/trx -o $( KDIR) /image.tmp -f $( KDIR_TMP) /vmlinux-$( 2) .uImage \
-x 32 -a 0x10000 -x -32 -f $( KDIR) /root.$( 1)
-$( STAGING_DIR_HOST) /bin/addpattern -B $( 2) -v v$( 4) \
@ -741,8 +787,9 @@ define Image/Build/NetgearNAND/initramfs
e n d e f
i f d e f C O N F I G _ P A C K A G E _ u b o o t - a r 7 1 x x - n b g 4 6 0 n _ 5 5 0 n _ 5 5 0 n h
Image/Build/ZyXEL/buildkernel= $( call MkuImageLzma,$( 2) ,$( 3) )
define Image/Build/ZyXEL
$( call MkuImageLzma,$( 2) ,$( 3) )
$( call Sysupgrade/KRuImage,$( 1) ,$( 2) ,917504,2752512)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
if [ ! -f $( BIN_DIR) /$( IMG_PREFIX) -$( 2) -u-boot.bin ] ; then \
@ -757,8 +804,9 @@ ifdef CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh
endef
e n d i f
I m a g e / B u i l d / O p e n M e s h / buildkernel = $( call MkuImageLzma,$( 2) )
d e f i n e I m a g e / B u i l d / O p e n M e s h
$( call MkuImageLzma,$( 2) )
-sh $( TOPDIR) /scripts/om-fwupgradecfg-gen.sh \
" $( 4) " \
" $( BUILD_DIR) /fwupgrade.cfg- $( 4) " \
@ -771,8 +819,9 @@ define Image/Build/OpenMesh
" $( KDIR) /root. $( 1) " "rootfs"
e n d e f
I m a g e / B u i l d / Z c o m a x / buildkernel = $( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
d e f i n e I m a g e / B u i l d / Z c o m a x
$( call MkuImageLzma,$( 2) ,$( 3) $( 4) )
$( call Sysupgrade/RKuImage,$( 1) ,$( 2) ,1507328,6356992)
if [ -e " $( call sysupname,$( 1) ,$( 2) ) " ] ; then \
$( STAGING_DIR_HOST) /bin/mkzcfw \
@ -800,6 +849,9 @@ define BuildTemplate
define Image/Build/Template/$( 1) /loader
$$ ( call Image/Build/$$ ( 1) /loader,$$ ( 2) ,$$ ( 3) ,$$ ( 4) ,$$ ( 5) ,$$ ( 6) ,$$ ( 7) ,$$ ( 8) )
endef
define Image/Build/Template/$( 1) /buildkernel
$$ ( call Image/Build/$$ ( 1) /buildkernel,,$$ ( 2) ,$$ ( 3) ,$$ ( 4) ,$$ ( 5) ,$$ ( 6) ,$$ ( 7) ,$$ ( 8) )
endef
define Image/Build/Template/$( 1) /squashfs
$$ ( call Image/Build/$$ ( 1) ,squashfs$( 2) ,$$ ( 2) ,$$ ( 3) ,$$ ( 4) ,$$ ( 5) ,$$ ( 6) ,$$ ( 7) ,$$ ( 8) )
endef