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
27 DEVICE_DTS
= $(lastword
$(subst _
, ,$(1)))
28 SUPPORTED_DEVICES
:= $(subst _
,$(comma
),$(1))
31 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma
36 KERNEL
:= kernel-bin | lzma | uImage lzma
39 define Device
/evaluation-sdimage
40 IMAGES
+= sdcard.img.gz
41 IMAGE
/sdcard.img.gz
:= at91-sdcard
44 define Device
/evaluation
46 KERNEL_SUFFIX
:= -uImage
48 IMAGE
/root.ubi
:= append-ubi
51 define Device
/evaluation-zImage
53 IMAGE
/zImage
:= at91-install-zImage
56 define Device
/evaluation-dtb
59 KERNEL_SUFFIX
:= -fit-zImage.itb
60 KERNEL
= kernel-bin | gzip | fit gzip
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
63 define Device
/evaluation-fit
65 KERNEL_SUFFIX
:= -fit-uImage.itb
66 KERNEL
= kernel-bin | lzma | fit lzma
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb
69 define Device
/production
72 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
75 define Device
/production-dtb
78 IMAGE
/factory.bin
:= append-dtb | pad-to
$$$$(DTB_SIZE
) | \
79 append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
82 $(eval
$(call BuildImage
))