From 3bce747e47170b219334f57102560a24cd67e6e0 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 2 Mar 2020 12:03:56 +0100 Subject: v7a: add stm32mp157c-dk2 SD-Card image Both STM32MP BootROM and TF-A expect the subsequent bootloader stage to come from a GPT partition when booting from SD-Card. Add a genimage config that describes this. Signed-off-by: Ahmad Fatoum --- .../platform-v7a/rules/blspec-stm32mp157c-dk2.make | 36 ++++++++++++++++++++ .../platform-v7a/rules/image-stm32mp157c-dk2.make | 38 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 configs/platform-v7a/rules/blspec-stm32mp157c-dk2.make create mode 100644 configs/platform-v7a/rules/image-stm32mp157c-dk2.make (limited to 'configs/platform-v7a/rules') diff --git a/configs/platform-v7a/rules/blspec-stm32mp157c-dk2.make b/configs/platform-v7a/rules/blspec-stm32mp157c-dk2.make new file mode 100644 index 0000000..e057fa9 --- /dev/null +++ b/configs/platform-v7a/rules/blspec-stm32mp157c-dk2.make @@ -0,0 +1,36 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Sascha Hauer +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_BLSPEC_STM32MP157C_DK2) += blspec-stm32mp157c-dk2 + +BLSPEC_STM32MP157C_DK2_VERSION := 4.11 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-stm32mp157c-dk2.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-stm32mp157c-dk2) + @$(call install_fixup,blspec-stm32mp157c-dk2,PRIORITY,optional) + @$(call install_fixup,blspec-stm32mp157c-dk2,SECTION,base) + @$(call install_fixup,blspec-stm32mp157c-dk2,AUTHOR,"Sascha Hauer ") + @$(call install_fixup,blspec-stm32mp157c-dk2,DESCRIPTION,missing) + + @$(call install_alternative, blspec-stm32mp157c-dk2, 0, 0, 0644, \ + /loader/entries/stm32mp157c-dk2.conf) + + @$(call install_finish,blspec-stm32mp157c-dk2) + + @$(call touch) + +# vim: syntax=make diff --git a/configs/platform-v7a/rules/image-stm32mp157c-dk2.make b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make new file mode 100644 index 0000000..d5e5246 --- /dev/null +++ b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Sascha Hauer +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_STM32MP157C_DK2) += image-stm32mp157c-dk2 + +IMAGE_STM32MP157C_DK2_ENV := \ + STM32MP_BOARD=stm32mp157c-dk2 + +# +# Paths and names +# +IMAGE_STM32MP157C_DK2 := image-stm32mp157c-dk2 +IMAGE_STM32MP157C_DK2_DIR := $(BUILDDIR)/$(IMAGE_STM32MP157C_DK2) +IMAGE_STM32MP157C_DK2_IMAGE := $(IMAGEDIR)/stm32mp157c-dk2.hdimg +IMAGE_STM32MP157C_DK2_FILES := $(IMAGEDIR)/root.tgz +IMAGE_STM32MP157C_DK2_CONFIG := stm32mp.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +$(IMAGE_STM32MP157C_DK2_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_STM32MP157C_DK2) + @$(call finish) + +# vim: syntax=make + -- cgit v1.2.3