diff options
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 |