@ -7,6 +7,8 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
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
i n c l u d e $( INCLUDE_DIR ) / i m a g e . m k
KDIR_TMP := $( KDIR) /tmp
i f n e q ( $( CONFIG_AVR 32_UBOOT ) , )
i f n e q ( $( CONFIG_AVR 32_UBOOT ) , )
define Build/Clean
define Build/Clean
$( MAKE) -C u-boot clean
$( MAKE) -C u-boot clean
@ -18,6 +20,7 @@ ifneq ($(CONFIG_AVR32_UBOOT),)
e n d i f
e n d i f
d e f i n e I m a g e / B u i l d K e r n e l
d e f i n e I m a g e / B u i l d K e r n e l
-mkdir -p $( KDIR_TMP)
cp $( KDIR) /uImage $( BIN_DIR) /$( IMG_PREFIX) -uImage
cp $( KDIR) /uImage $( BIN_DIR) /$( IMG_PREFIX) -uImage
$( STAGING_DIR_HOST) /bin/lzma e $( LINUX_DIR) /arch/avr32/boot/images/vmlinux.bin $( KDIR) /vmlinux.lzma
$( STAGING_DIR_HOST) /bin/lzma e $( LINUX_DIR) /arch/avr32/boot/images/vmlinux.bin $( KDIR) /vmlinux.lzma
@ -34,16 +37,17 @@ define Image/Build
e n d e f
e n d e f
d e f i n e I m a g e / B u i l d / s q u a s h f s
d e f i n e I m a g e / B u i l d / s q u a s h f s
$( call prepare_generic_squashfs,$( KDIR) /root.squashfs)
( \
( \
dd if = $( KDIR) /uImage-lzma bs = 1024k conv = sync; \
cat $( KDIR) /uImage-lzma; \
dd if = $( KDIR) /root.$( 1) bs = 64k conv = sync; \
cat $( KDIR) /root.squashfs; \
) > $( BIN_DIR) /$( IMG_PREFIX) -$( 1) .img
) > $( KDIR_TMP) /avr32-squahsfs.img
padjffs2 $( KDIR_TMP) /avr32-squahsfs.img 64
dd if = $( KDIR_TMP) /avr32-squahsfs.img of = $( BIN_DIR) /$( IMG_PREFIX) -$( 1) .img bs = 64k conv = sync
e n d e f
e n d e f
d e f i n e I m a g e / B u i l d / j f f s 2 - 6 4 k
d e f i n e I m a g e / B u i l d / j f f s 2 - 6 4 k
( \
( \
dd if = $( KDIR) /uImage-lzma bs = 102 4k conv = sync; \
dd if = $( KDIR) /uImage-lzma bs = 6 4k conv = sync; \
dd if = $( KDIR) /root.$( 1) bs = 64k conv = sync; \
dd if = $( KDIR) /root.$( 1) bs = 64k conv = sync; \
) > $( BIN_DIR) /$( IMG_PREFIX) -$( 1) .img
) > $( BIN_DIR) /$( IMG_PREFIX) -$( 1) .img
e n d e f
e n d e f