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 ifeq ($(SUBTARGET
),legacy
)
15 ifeq ($(SUBTARGET
),sama5
)
20 $(Device
/default-nand
)
22 FILESYSTEMS
:= squashfs ubifs
26 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma
31 KERNEL
:= kernel-bin | lzma | uImage lzma
34 define Device
/evaluation
36 KERNEL_SUFFIX
:= -uImage
38 IMAGE
/root.ubi
:= append-ubi
41 define Device
/evaluation-zImage
43 IMAGE
/zImage
:= install-zImage
46 define Device
/evaluation-dtb
49 $(Device
/evaluation-zImage
)
51 IMAGE
/dtb
:= install-dtb
54 define Device
/production
57 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
60 define Device
/production-dtb
64 IMAGE
/factory.bin
:= append-dtb | pad-to
$$$$(DTB_SIZE
) \
65 | append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
68 $(eval
$(call BuildImage
))