aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/pistachio/image/Makefile
blob: 88210374de8dda27382dba3b75b70fceab7142f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Copyright (C) 2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk

KERNEL_LOADADDR := 0x80400000

define Device/Default
  PROFILES := Default
  FILESYSTEMS := squashfs
  KERNEL_DEPENDS = $$(wildcard $$(DTS_DIR)/$$(DEVICE_DTS).dts)
  KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
  KERNEL_SUFFIX := -kernel.itb
  KERNEL_INSTALL := 1
  KERNEL_IN_UBI := 1
  IMAGES := factory.ubi sysupgrade.tar
  IMAGE/factory.ubi := append-ubi
  IMAGE/sysupgrade.tar := sysupgrade-tar
endef

define Device/marduk
  DEVICE_DTS := img/pistachio_marduk
  BLOCKSIZE := 256KiB
  PAGESIZE := 4KiB
  DEVICE_TITLE := Creator Ci40
  DEVICE_PACKAGES := kmod-tpm-i2c-infineon
endef

TARGET_DEVICES += marduk


$(eval $(call BuildImage))