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 ifeq ($(SUBTARGET
),legacy
)
19 ifeq ($(SUBTARGET
),sama5
)
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
40 KERNEL_SUFFIX
:= -uImage
42 IMAGE
/root.ubi
:= append-ubi
45 define Device
/evaluation-zImage
47 IMAGE
/zImage
:= at91-install-zImage
50 define Device
/evaluation-dtb
53 $(Device
/evaluation-zImage
)
55 IMAGE
/dtb
:= install-dtb
58 define Device
/evaluation-fit
60 KERNEL_SUFFIX
:= -fit-uImage.itb
61 KERNEL
:= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
64 define Device
/production
67 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
70 define Device
/production-dtb
73 IMAGE
/factory.bin
:= append-dtb | pad-to
$$$$(DTB_SIZE
) \
74 | append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
77 $(eval
$(call BuildImage
))