@ -42,19 +42,30 @@ define Build/lzma-kernel
dd if = $@ .l7 of = $@ bs = 65536 conv = sync
dd if = $@ .l7 of = $@ bs = 65536 conv = sync
e n d e f
e n d e f
d e f i n e B u i l d / c o p y - k e r n e l
rm -f $@ $@ .elf
cp $< $@
cp $< $@ .elf
e n d e f
d e f i n e B u i l d / e l f - k e r n e l
cp $( IMAGE_KERNEL) .elf $@
e n d e f
d e f i n e D e v i c e / D e f a u l t
d e f i n e D e v i c e / D e f a u l t
PROFILES = Default $$ ( DEVICE_NAME)
PROFILES = Default $$ ( DEVICE_NAME)
KERNEL := kernel-bin | lzma-kernel
KERNEL := copy- kernel | lzma-kernel
IMAGES := sysupgrade.bin
IMAGES := sysupgrade.bin
FILESYSTEMS := squashfs
FILESYSTEMS := squashfs
e n d e f
e n d e f
d e f i n e D e v i c e / g e n e r i c
d e f i n e D e v i c e / g e n e r i c
DEVICE_TITLE := Generic Images
DEVICE_TITLE := Generic Images
IMAGES := kernel.lzma kernel.gz rootfs.bin sysupgrade.bin
IMAGES := kernel.lzma kernel.elf kernel.gz rootfs.bin sysupgrade.bin
IMAGE/kernel.gz := append-kernel | gzip-kernel
IMAGE/kernel.gz := elf-kernel | gzip-kernel
IMAGE/kernel.lzma := append-kernel | lzma-kernel
IMAGE/kernel.elf := elf-kernel
IMAGE/kernel.lzma := elf-kernel | lzma-kernel
IMAGE/rootfs.bin := append-rootfs | pad-rootfs | pad-to 128k
IMAGE/rootfs.bin := append-rootfs | pad-rootfs | pad-to 128k
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to 128k | combined-image
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | pad-to 128k | combined-image
IMAGE_NAME = $$ ( IMAGE_PREFIX) -$$ ( if $$ ( findstring kernel,$$ ( 2) ) ,,$$ ( 1) -) $$ ( 2)
IMAGE_NAME = $$ ( IMAGE_PREFIX) -$$ ( if $$ ( findstring kernel,$$ ( 2) ) ,,$$ ( 1) -) $$ ( 2)