@ -6,27 +6,7 @@ include $(INCLUDE_DIR)/image.mk
UBIFS_OPTS = -m 2048 -e 124KiB -c 4096 -U -F
UBINIZE_OPTS = -m 2048 -p 128KiB
E2SIZE = $( shell echo $$ ( ( $( CONFIG_TARGET_ROOTFS_PARTSIZE) *1024) ) )
d e f i n e I m a g e / B u i l d K e r n e l / z I m a g e
cat $( KDIR) /zImage $( LINUX_DIR) /arch/arm/boot/dts/$( 1) .dtb > $( KDIR) /zImage-$( 1)
$( CP) $( KDIR) /zImage-$( 1) $( BIN_DIR) /$( IMG_PREFIX) -$( 1) -zImage
i f n e q ( $( CONFIG_TARGET_ROOTFS_INITRAMFS ) , )
cat $( KDIR) /zImage-initramfs $( LINUX_DIR) /arch/arm/boot/dts/$( 1) .dtb > $( KDIR) /zImage-initramfs-$( 1)
$( CP) $( KDIR) /zImage-initramfs-$( 1) $( BIN_DIR) /$( IMG_PREFIX) -$( 1) -zImage-initramfs
e n d i f
e n d e f
d e f i n e I m a g e / B u i l d K e r n e l / F I T
gzip -9n -c $( KDIR) /Image > $( KDIR) /Image.gz
$( call CompressLzma,$( KDIR) /Image,$( KDIR) /Image.gz)
$( call Image/BuildKernel/MkFIT,$( 1) , $( KDIR) /Image.gz, $( LINUX_DIR) /arch/arm/boot/dts/$( 1) .dtb,gzip,0x42208000,0x42208000)
$( CP) $( KDIR) /fit-$( 1) .itb $( BIN_DIR) /$( IMG_PREFIX) -$( 1) -fit-uImage.itb
i f n e q ( $( CONFIG_TARGET_ROOTFS_INITRAMFS ) , )
$( call Image/BuildKernel/MkFIT,$( 1) , $( KDIR) /Image-initramfs, $( LINUX_DIR) /arch/arm/boot/dts/$( 1) .dtb, none,0x42208000,0x42208000)
$( CP) $( KDIR) /fit-$( 1) .itb $( BIN_DIR) /$( IMG_PREFIX) -$( 1) -fit-uImage-initramfs.itb
e n d i f
e n d e f
KERNEL_LOADADDR := 0x42208000
d e f i n e I m a g e / P r e p a r e
$( CP) $( LINUX_DIR) /vmlinux $( KDIR) /$( IMG_PREFIX) -vmlinux.elf
@ -34,9 +14,6 @@ endef
d e f i n e I m a g e / B u i l d K e r n e l
$( CP) $( KDIR) /$( IMG_PREFIX) -vmlinux.elf $( BIN_DIR)
$( call Image/BuildKernel/FIT,qcom-ipq8064-ap148)
$( call Image/BuildKernel/zImage,qcom-ipq8064-ap148)
$( call Image/BuildKernel/FIT,qcom-ipq8064-db149)
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
@ -48,4 +25,47 @@ define Image/Build
dd if = $( KDIR) /root.$( 1) of = $( BIN_DIR) /$( IMG_PREFIX) -$( 1) -root.img bs = 2k conv = sync
e n d e f
d e f i n e B u i l d / a p p e n d - d t b
cat $( DTS_DIR) /$( DEVICE_DTS) .dtb >> $@
e n d e f
d e f i n e D e v i c e / D e f a u l t
PROFILES := Default
KERNEL_INITRAMFS_PREFIX := $$ ( IMG_PREFIX) -$( 1) -initramfs
DEVICE_DTS :=
KERNEL_PREFIX := $$ ( IMAGE_PREFIX)
e n d e f
DEVICE_VARS += DEVICE_DTS
d e f i n e D e v i c e / L e g a c y I m a g e
KERNEL_SUFFIX := -zImage
KERNEL = kernel-bin | append-dtb
KERNEL_NAME := zImage
KERNEL_INSTALL := 1
e n d e f
d e f i n e D e v i c e / F i t I m a g e
KERNEL_SUFFIX := -fit-uImage.itb
KERNEL = kernel-bin | gzip | fit gzip $$ ( DTS_DIR) /$$ ( DEVICE_DTS) .dtb
KERNEL_NAME := Image
KERNEL_INSTALL := 1
e n d e f
d e f i n e D e v i c e / A P 1 4 8
$( call Device/FitImage)
DEVICE_DTS := qcom-ipq8064-ap148
e n d e f
d e f i n e D e v i c e / A P 1 4 8 - l e g a c y
$( call Device/LegacyImage)
DEVICE_DTS := qcom-ipq8064-ap148
e n d e f
d e f i n e D e v i c e / D B 1 4 9
$( call Device/FitImage)
DEVICE_DTS := qcom-ipq8064-db149
e n d e f
TARGET_DEVICES += AP148 AP148-legacy DB149
$( eval $ ( call BuildImage ) )