summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules/image-rpi3.make
blob: 5c56c3afb146f56b12b20fdbafc5e3f5584679f0 (plain) (blame)
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
38
39
40
41
42
43
44
45
46
# -*-makefile-*-
#
# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
IMAGE_PACKAGES-$(PTXCONF_IMAGE_RPI3) += image-rpi3

#
# Paths and names
#
IMAGE_RPI3		:= image-rpi3
IMAGE_RPI3_DIR	:= $(BUILDDIR)/$(IMAGE_RPI3)
IMAGE_RPI3_IMAGE	:= $(IMAGEDIR)/rpi3.hdimg
IMAGE_RPI3_FILES	:= $(IMAGEDIR)/root.tgz
IMAGE_RPI3_CONFIG	:= rpi3.config
IMAGE_RPI3_DATA_DIR	:= $(call ptx/in-platformconfigdir, rpi-firmware)
IMAGE_RPI3_DATA		:= \
	$(wildcard $(IMAGE_RPI3_DATA_DIR)/*.bin) \
	$(wildcard $(IMAGE_RPI3_DATA_DIR)/*.elf) \
	$(wildcard $(IMAGE_RPI3_DATA_DIR)/*.dat) \
	$(wildcard $(IMAGE_RPI3_DATA_DIR)/*.dtb) \
	$(wildcard $(IMAGE_RPI3_DATA_DIR)/config.txt)

# ----------------------------------------------------------------------------
# Image
# ----------------------------------------------------------------------------

define squote_and_comma
$(subst $(ptx/def/space),$(comma) ,$(addsuffix $(ptx/def/squote),$(addprefix $(ptx/def/squote),$(1))))
endef

IMAGE_RPI3_ENV := \
        FIRMWARE_RPI3="$(call squote_and_comma,$(IMAGE_RPI3_DATA))"

$(IMAGE_RPI3_IMAGE):
	@$(call targetinfo)
	@$(call image/genimage, IMAGE_RPI3)
	@$(call finish)

# vim: syntax=make