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
16 ifeq ($(SUBTARGET),sama5d3)
18 UBIFS_OPTS := -m 2048 -e 124KiB -c 2048
23 FILESYSTEMS := squashfs ubifs
27 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-dtb
49 IMAGE/dtb := install-dtb
52 define Device/production
55 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
58 define Device/production-dtb
62 IMAGE/factory.bin := append-dtb | pad-to $$$$(DTB_SIZE) \
63 | append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
66 $(eval $(call BuildImage))