summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configs/platform-v7a/platformconfig1
-rw-r--r--configs/platform-v7a/platforms/blspec-rpi4.in5
-rw-r--r--projectroot/loader/entries/rpi400.conf6
-rw-r--r--projectroot/loader/entries/rpi4b.conf6
-rw-r--r--rules/blspec-rpi4.make38
5 files changed, 56 insertions, 0 deletions
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 645e8e8..93ed5d9 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -229,6 +229,7 @@ PTXCONF_BLSPEC_NITROGEN6X=y
PTXCONF_BLSPEC_RIOTBOARD=y
PTXCONF_BLSPEC_RPI2=y
PTXCONF_BLSPEC_RPI3=y
+PTXCONF_BLSPEC_RPI4=y
PTXCONF_BLSPEC_RPICM3=y
PTXCONF_BLSPEC_SABRELITE=y
PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD=y
diff --git a/configs/platform-v7a/platforms/blspec-rpi4.in b/configs/platform-v7a/platforms/blspec-rpi4.in
new file mode 100644
index 0000000..0c0ce14
--- /dev/null
+++ b/configs/platform-v7a/platforms/blspec-rpi4.in
@@ -0,0 +1,5 @@
+## SECTION=blspec
+
+config BLSPEC_RPI4
+ tristate
+ prompt "/loader/entries/rpi4*.conf bootloader spec entries"
diff --git a/projectroot/loader/entries/rpi400.conf b/projectroot/loader/entries/rpi400.conf
new file mode 100644
index 0000000..4d212c0
--- /dev/null
+++ b/projectroot/loader/entries/rpi400.conf
@@ -0,0 +1,6 @@
+title Raspberry Pi 400 - Pengutronix-DistroKit
+version 4.6
+options rootwait rw
+linux /boot/zImage
+devicetree /boot/bcm2711-rpi-400.dtb
+linux-appendroot true
diff --git a/projectroot/loader/entries/rpi4b.conf b/projectroot/loader/entries/rpi4b.conf
new file mode 100644
index 0000000..c0fd6f1
--- /dev/null
+++ b/projectroot/loader/entries/rpi4b.conf
@@ -0,0 +1,6 @@
+title Raspberry Pi 4b - Pengutronix-DistroKit
+version 4.6
+options rootwait rw
+linux /boot/zImage
+devicetree /boot/bcm2711-rpi-4-b.dtb
+linux-appendroot true
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 <a.fatoum@pengutronix.de>
+#
+# 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 <a.fatoum@pengutronix.de>")
+ @$(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