5d2e42f1399360fda89fe8640d1f7029ecc66b87
[openwrt/staging/chunkeey.git] / target / linux / pistachio / image / Makefile
1 #
2 # Copyright (C) 2017 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/image.mk
10
11 KERNEL_LOADADDR := 0x80400000
12
13 define Device/Default
14 PROFILES := Default
15 FILESYSTEMS := squashfs
16 KERNEL_DEPENDS = $$(wildcard $$(DTS_DIR)/$$(DEVICE_DTS).dts)
17 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
18 KERNEL_SUFFIX := -kernel.itb
19 KERNEL_INSTALL := 1
20 KERNEL_IN_UBI := 1
21 IMAGES := factory.ubi sysupgrade.tar
22 IMAGE/factory.ubi := append-ubi
23 IMAGE/sysupgrade.tar := sysupgrade-tar
24 endef
25
26 define Device/img_creator-ci40
27 DEVICE_VENDOR := Imagination Technologies
28 DEVICE_MODEL := Creator Ci40 (VL-62899)
29 DEVICE_ALT0_VENDOR := Imagination Technologies
30 DEVICE_ALT0_MODEL := Marduk board
31 BOARD_NAME := img,pistachio-marduk
32 DEVICE_DTS := img/pistachio_marduk
33 BLOCKSIZE := 256KiB
34 PAGESIZE := 4KiB
35 DEVICE_PACKAGES := kmod-tpm-i2c-infineon kmod-ca8210 wpan-tools
36 endef
37
38 TARGET_DEVICES += img_creator-ci40
39
40
41 $(eval $(call BuildImage))