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 ifeq ($(TARGET_DEVICES
),at91-sama5d4_xplained
)
20 UBIFS_OPTS
:= -e
0x3e000 -c
2082 -m
0x1000 -x lzo
21 UBINIZE_OPTS
:= -m
0x1000 -p
0x40000
23 UBIFS_OPTS
:= -m
2048 -e
124KiB
-c
2048
29 FILESYSTEMS
:= squashfs ubifs
33 KERNEL
:= kernel-bin | append-dtb | lzma | uImage lzma
41 KERNEL
:= kernel-bin | lzma | uImage lzma
44 define Device
/evaluation
46 KERNEL_SUFFIX
:= -uImage
48 IMAGE
/root.ubi
:= append-ubi
51 define Device
/evaluation-zImage
53 IMAGE
/zImage
:= install-zImage
56 define Device
/evaluation-dtb
59 $(Device
/evaluation-zImage
)
61 IMAGE
/dtb
:= install-dtb
64 define Device
/production
67 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
70 define Device
/production-dtb
74 IMAGE
/factory.bin
:= append-dtb | pad-to
$$$$(DTB_SIZE
) \
75 | append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi
78 $(eval
$(call BuildImage
))