From bf4557cfd4a9c298e0b85bdfa845b5fdd667b4aa Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Fri, 30 Sep 2022 18:21:57 +0200 Subject: v7a: rpi4: add boot loader spec support We now build device trees and have a kernel capable of booting on the Raspberry Pi 4b, so generate bootloader spec entries as well. We add an entry for the Raspberry Pi 400 as well. This is untested, but isn't costly to enable. Signed-off-by: Ahmad Fatoum Link: https://lore.pengutronix.de/20220930162159.814389-9-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel --- rules/blspec-rpi4.make | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 rules/blspec-rpi4.make (limited to 'rules') diff --git a/rules/blspec-rpi4.make b/rules/blspec-rpi4.make new file mode 100644 index 0000000..50a5f88 --- /dev/null +++ b/rules/blspec-rpi4.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2022 by Ahmad Fatoum +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_BLSPEC_RPI4) += blspec-rpi4 + +BLSPEC_RPI4_VERSION := 4.6 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-rpi4.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-rpi4) + @$(call install_fixup,blspec-rpi4,PRIORITY,optional) + @$(call install_fixup,blspec-rpi4,SECTION,base) + @$(call install_fixup,blspec-rpi4,AUTHOR,"Ahmad Fatoum ") + @$(call install_fixup,blspec-rpi4,DESCRIPTION,missing) + + @$(call install_alternative, blspec-rpi4, 0, 0, 0644, \ + /loader/entries/rpi4b.conf) + @$(call install_alternative, blspec-rpi4, 0, 0, 0644, \ + /loader/entries/rpi400.conf) + + @$(call install_finish,blspec-rpi4) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3