diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2017-06-16 08:58:08 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2017-06-30 21:50:36 +0200 |
commit | 508561817e3c132b94b16e36ba9d1e552a949efc (patch) | |
tree | fcc722a1500893e2de7cf9085da32b2d04d3a485 /configs/platform-v7a/rules | |
parent | 5e4ffe588b621fccbb4de36042b0d4f02915edee (diff) | |
download | DistroKit-508561817e3c132b94b16e36ba9d1e552a949efc.tar.gz DistroKit-508561817e3c132b94b16e36ba9d1e552a949efc.tar.xz |
platform-v7a: riotboard: add board support
Add support for RIoTboard, with the configs+rules for image creation and
bootspec entries.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
[improve commit description, split from vexpress patches]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r-- | configs/platform-v7a/rules/blspec-riotboard.make | 38 | ||||
-rw-r--r-- | configs/platform-v7a/rules/image-riotboard.make | 34 |
2 files changed, 72 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/blspec-riotboard.make b/configs/platform-v7a/rules/blspec-riotboard.make new file mode 100644 index 0000000..bcdbed0 --- /dev/null +++ b/configs/platform-v7a/rules/blspec-riotboard.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Rouven Czerwinski <r.czerwinski@pengutronix.de> +# +# 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_RIOTBOARD) += blspec-riotboard + +BLSPEC_RIOTBOARD_VERSION := 4.11 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-riotboard.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-riotboard) + @$(call install_fixup,blspec-riotboard,PRIORITY,optional) + @$(call install_fixup,blspec-riotboard,SECTION,base) + @$(call install_fixup,blspec-riotboard,AUTHOR,"Rouven Czerwinski <r.czerwinski@pengutronix.de>") + @$(call install_fixup,blspec-riotboard,DESCRIPTION,missing) + + @$(call install_alternative, blspec-riotboard, 0, 0, 0644, \ + /loader/entries/riotboard.conf) + + @$(call install_finish,blspec-riotboard) + + @$(call touch) + +# vim: syntax=make diff --git a/configs/platform-v7a/rules/image-riotboard.make b/configs/platform-v7a/rules/image-riotboard.make new file mode 100644 index 0000000..bc54a09 --- /dev/null +++ b/configs/platform-v7a/rules/image-riotboard.make @@ -0,0 +1,34 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Rouven Czerwinski <r.czerwinski@pengutronix.de> +# +# 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_RIOTBOARD) += image-riotboard + +# +# Paths and names +# +IMAGE_RIOTBOARD := image-riotboard +IMAGE_RIOTBOARD_DIR := $(BUILDDIR)/$(IMAGE_RIOTBOARD) +IMAGE_RIOTBOARD_IMAGE := $(IMAGEDIR)/riotboard.hdimg +IMAGE_RIOTBOARD_FILES := $(IMAGEDIR)/root.tgz +IMAGE_RIOTBOARD_CONFIG := riotboard.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +$(IMAGE_RIOTBOARD_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_RIOTBOARD) + @$(call finish) + +# vim: syntax=make |