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)
14 UBIFS_OPTS := -m 2048 -e 126KiB -c 2048
17 ifeq ($(SUBTARGET),sama5)
19 UBIFS_OPTS := -m 2048 -e 124KiB -c 2048
24 FILESYSTEMS := squashfs ubifs
28 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
36 KERNEL := kernel-bin | lzma | uImage lzma
39 define Device/evaluation
41 KERNEL_SUFFIX := -uImage
43 IMAGE/root.ubi := append-ubi
46 define Device/evaluation-zImage
48 IMAGE/zImage := install-zImage
51 define Device/evaluation-dtb
54 $(Device/evaluation-zImage)
56 IMAGE/dtb := install-dtb
59 define Device/production
62 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
65 define Device/production-dtb
69 IMAGE/factory.bin := append-dtb | pad-to $$$$(DTB_SIZE) \
70 | append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
73 $(eval $(call BuildImage))