From 2b72a17712b4faaae2d8b47b3762ada28ed507b7 Mon Sep 17 00:00:00 2001 From: Michael Grzeschik Date: Wed, 8 Jun 2016 17:10:07 +0200 Subject: platform beaglebone: add bootspec entries for bone and boneblack Signed-off-by: Michael Grzeschik --- configs/platform-beaglebone/platformconfig | 2 ++ .../platforms/blspec-boneblack.in | 5 +++ .../platforms/blspec-bonewhite.in | 5 +++ .../projectroot/loader/entries/boneblack.conf | 5 +++ .../projectroot/loader/entries/bonewhite.conf | 5 +++ .../rules/blspec-boneblack.make | 38 ++++++++++++++++++++++ .../rules/blspec-bonewhite.make | 38 ++++++++++++++++++++++ 7 files changed, 98 insertions(+) create mode 100644 configs/platform-beaglebone/platforms/blspec-boneblack.in create mode 100644 configs/platform-beaglebone/platforms/blspec-bonewhite.in create mode 100644 configs/platform-beaglebone/projectroot/loader/entries/boneblack.conf create mode 100644 configs/platform-beaglebone/projectroot/loader/entries/bonewhite.conf create mode 100644 configs/platform-beaglebone/rules/blspec-boneblack.make create mode 100644 configs/platform-beaglebone/rules/blspec-bonewhite.make (limited to 'configs/platform-beaglebone') diff --git a/configs/platform-beaglebone/platformconfig b/configs/platform-beaglebone/platformconfig index aa8f7f8..326d3a9 100644 --- a/configs/platform-beaglebone/platformconfig +++ b/configs/platform-beaglebone/platformconfig @@ -186,6 +186,8 @@ PTXCONF_BOOTLOADER=y # # bootloader spec entries # +PTXCONF_BLSPEC_BONEBLACK=y +PTXCONF_BLSPEC_BONEWHITE=y # PTXCONF_BLSPEC_ENTRY is not set # diff --git a/configs/platform-beaglebone/platforms/blspec-boneblack.in b/configs/platform-beaglebone/platforms/blspec-boneblack.in new file mode 100644 index 0000000..a4eda10 --- /dev/null +++ b/configs/platform-beaglebone/platforms/blspec-boneblack.in @@ -0,0 +1,5 @@ +## SECTION=blspec + +config BLSPEC_BONEBLACK + tristate + prompt "/loader/entries/boneblack.conf bootloader spec entry" diff --git a/configs/platform-beaglebone/platforms/blspec-bonewhite.in b/configs/platform-beaglebone/platforms/blspec-bonewhite.in new file mode 100644 index 0000000..8408cd8 --- /dev/null +++ b/configs/platform-beaglebone/platforms/blspec-bonewhite.in @@ -0,0 +1,5 @@ +## SECTION=blspec + +config BLSPEC_BONEWHITE + tristate + prompt "/loader/entries/bonewhite.conf bootloader spec entry" diff --git a/configs/platform-beaglebone/projectroot/loader/entries/boneblack.conf b/configs/platform-beaglebone/projectroot/loader/entries/boneblack.conf new file mode 100644 index 0000000..028184f --- /dev/null +++ b/configs/platform-beaglebone/projectroot/loader/entries/boneblack.conf @@ -0,0 +1,5 @@ +title BeagleBone Black - Pengutronix-DistroKit +version 4.6 +options root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw +linux /boot/zImage +devicetree /boot/am335x-boneblack.dtb diff --git a/configs/platform-beaglebone/projectroot/loader/entries/bonewhite.conf b/configs/platform-beaglebone/projectroot/loader/entries/bonewhite.conf new file mode 100644 index 0000000..727a263 --- /dev/null +++ b/configs/platform-beaglebone/projectroot/loader/entries/bonewhite.conf @@ -0,0 +1,5 @@ +title BeagleBone White - Pengutronix-DistroKit +version 4.6 +options root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw +linux /boot/zImage +devicetree /boot/am335x-bone.dtb diff --git a/configs/platform-beaglebone/rules/blspec-boneblack.make b/configs/platform-beaglebone/rules/blspec-boneblack.make new file mode 100644 index 0000000..841b13a --- /dev/null +++ b/configs/platform-beaglebone/rules/blspec-boneblack.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Michael Grzeschik +# +# 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 +# +PACKAGES-$(PTXCONF_BLSPEC_BONEBLACK) += blspec-boneblack + +BLSPEC_BONEBLACK_VERSION := 4.6 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-boneblack.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-boneblack) + @$(call install_fixup,blspec-boneblack,PRIORITY,optional) + @$(call install_fixup,blspec-boneblack,SECTION,base) + @$(call install_fixup,blspec-boneblack,AUTHOR,"Michael Grzeschik ") + @$(call install_fixup,blspec-boneblack,DESCRIPTION,missing) + + @$(call install_alternative, blspec-boneblack, 0, 0, 0644, \ + /loader/entries/boneblack.conf) + + @$(call install_finish,blspec-boneblack) + + @$(call touch) + +# vim: syntax=make diff --git a/configs/platform-beaglebone/rules/blspec-bonewhite.make b/configs/platform-beaglebone/rules/blspec-bonewhite.make new file mode 100644 index 0000000..1d7cbea --- /dev/null +++ b/configs/platform-beaglebone/rules/blspec-bonewhite.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Michael Grzeschik +# +# 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 +# +PACKAGES-$(PTXCONF_BLSPEC_BONEWHITE) += blspec-bonewhite + +BLSPEC_BONEWHITE_VERSION := 4.6 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-bonewhite.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-bonewhite) + @$(call install_fixup,blspec-bonewhite,PRIORITY,optional) + @$(call install_fixup,blspec-bonewhite,SECTION,base) + @$(call install_fixup,blspec-bonewhite,AUTHOR,"Michael Grzeschik ") + @$(call install_fixup,blspec-bonewhite,DESCRIPTION,missing) + + @$(call install_alternative, blspec-bonewhite, 0, 0, 0644, \ + /loader/entries/bonewhite.conf) + + @$(call install_finish,blspec-bonewhite) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3