2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
10 KERNEL_LOADADDR
:= 0x20008000
12 define Build
/at91-install-zImage
13 $(CP
) $(KDIR
)/zImage
$@
16 include $(SUBTARGET
).mk
18 AT91_SD_BOOT_PARTSIZE
:=64
19 FAT32_BLOCK_SIZE
:=1024
20 FAT32_BLOCKS
:=$(shell echo \
21 $$(($(AT91_SD_BOOT_PARTSIZE
)*1024*1024/$(FAT32_BLOCK_SIZE
))))
24 $(Device
/default-nand
)
26 FILESYSTEMS
:= squashfs ubifs ext4
30 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma
35 KERNEL
:= kernel-bin | lzma | uImage lzma
38 define Device
/evaluation-sdimage
39 IMAGES
+= sdcard.img.gz
40 IMAGE
/sdcard.img.gz
:= at91-sdcard
43 define Device
/evaluation
45 KERNEL_SUFFIX
:= -uImage
47 IMAGE
/root.ubi
:= append-ubi
50 define Device
/evaluation-zImage
52 IMAGE
/zImage
:= at91-install-zImage
55 define Device
/evaluation-dtb
58 $(Device
/evaluation-zImage
)
60 IMAGE
/dtb
:= install-dtb
61 KERNEL_SUFFIX
:= -fit-zImage.itb
62 KERNEL
:= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
65 define Device
/evaluation-fit
67 KERNEL_SUFFIX
:= -fit-uImage.itb
68 KERNEL
:= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
71 define Device
/production
74 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
77 define Device
/production-dtb
80 IMAGE
/factory.bin
:= append-dtb | pad-to
$$$$(DTB_SIZE
) \
81 | append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
84 $(eval
$(call BuildImage
))