diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-03-11 19:12:54 +0100 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2021-03-15 09:42:42 +0100 |
commit | e9c32bad6e9f7dcf226c9c91cb84f458af0847a5 (patch) | |
tree | 2e7689282ef2fca93a0f8355bf34010355058976 /configs/platform-v7a/rules | |
parent | 61be023775ab1ccef072bd8116f0ccf740bf8708 (diff) | |
download | DistroKit-e9c32bad6e9f7dcf226c9c91cb84f458af0847a5.tar.gz DistroKit-e9c32bad6e9f7dcf226c9c91cb84f458af0847a5.tar.xz |
v7a: Add support for Raspberry Pi CM3
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r-- | configs/platform-v7a/rules/barebox-rpi2.make | 2 | ||||
-rw-r--r-- | configs/platform-v7a/rules/blspec-rpicm3.make | 36 | ||||
-rw-r--r-- | configs/platform-v7a/rules/image-rpicm3.make | 46 |
3 files changed, 83 insertions, 1 deletions
diff --git a/configs/platform-v7a/rules/barebox-rpi2.make b/configs/platform-v7a/rules/barebox-rpi2.make index 5f16584..636ffeb 100644 --- a/configs/platform-v7a/rules/barebox-rpi2.make +++ b/configs/platform-v7a/rules/barebox-rpi2.make @@ -45,7 +45,7 @@ BAREBOX_RPI2_CONF_OPT := \ BAREBOX_RPI2_MAKE_OPT := $(BAREBOX_RPI2_CONF_OPT) -BAREBOX_RPI2_IMAGES := images/barebox-raspberry-pi-2.img images/barebox-raspberry-pi-3.img +BAREBOX_RPI2_IMAGES := images/barebox-raspberry-pi-2.img images/barebox-raspberry-pi-3.img images/barebox-raspberry-pi-cm3.img BAREBOX_RPI2_IMAGES := $(addprefix $(BAREBOX_RPI2_BUILD_DIR)/,$(BAREBOX_RPI2_IMAGES)) ifdef PTXCONF_BAREBOX_RPI2 diff --git a/configs/platform-v7a/rules/blspec-rpicm3.make b/configs/platform-v7a/rules/blspec-rpicm3.make new file mode 100644 index 0000000..4908a8b --- /dev/null +++ b/configs/platform-v7a/rules/blspec-rpicm3.make @@ -0,0 +1,36 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Uwe Kleine-König <u.kleine-koenig@pengutronix.de> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_BLSPEC_RPICM3) += blspec-rpicm3 + +BLSPEC_RPICM3_VERSION := 4.6 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-rpicm3.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-rpicm3) + @$(call install_fixup,blspec-rpicm3,PRIORITY,optional) + @$(call install_fixup,blspec-rpicm3,SECTION,base) + @$(call install_fixup,blspec-rpicm3,AUTHOR,"Uwe Kleine-König <u.kleine-koenig@pengutronix.de>") + @$(call install_fixup,blspec-rpicm3,DESCRIPTION,missing) + + @$(call install_alternative, blspec-rpicm3, 0, 0, 0644, \ + /loader/entries/rpicm3.conf) + + @$(call install_finish,blspec-rpicm3) + + @$(call touch) + +# vim: syntax=make diff --git a/configs/platform-v7a/rules/image-rpicm3.make b/configs/platform-v7a/rules/image-rpicm3.make new file mode 100644 index 0000000..81cdd26 --- /dev/null +++ b/configs/platform-v7a/rules/image-rpicm3.make @@ -0,0 +1,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_RPICM3) += image-rpicm3 + +# +# Paths and names +# +IMAGE_RPICM3 := image-rpicm3 +IMAGE_RPICM3_DIR := $(BUILDDIR)/$(IMAGE_RPICM3) +IMAGE_RPICM3_IMAGE := $(IMAGEDIR)/rpicm3.hdimg +IMAGE_RPICM3_FILES := $(IMAGEDIR)/root.tgz +IMAGE_RPICM3_CONFIG := rpicm3.config +IMAGE_RPICM3_DATA_DIR := $(call ptx/in-platformconfigdir, rpi-firmware) +IMAGE_RPICM3_DATA := \ + $(wildcard $(IMAGE_RPICM3_DATA_DIR)/*.bin) \ + $(wildcard $(IMAGE_RPICM3_DATA_DIR)/*.elf) \ + $(wildcard $(IMAGE_RPICM3_DATA_DIR)/*.dat) \ + $(wildcard $(IMAGE_RPICM3_DATA_DIR)/*.dtb) \ + $(wildcard $(IMAGE_RPICM3_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_RPICM3_ENV := \ + FIRMWARE_RPI3="$(call squote_and_comma,$(IMAGE_RPICM3_DATA))" + +$(IMAGE_RPICM3_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_RPICM3) + @$(call finish) + +# vim: syntax=make |