diff options
6 files changed, 115 insertions, 0 deletions
diff --git a/configs/platform-v7a/config/images/riotboard.config b/configs/platform-v7a/config/images/riotboard.config new file mode 100644 index 0000000..d112a1e --- /dev/null +++ b/configs/platform-v7a/config/images/riotboard.config @@ -0,0 +1,22 @@ +image @IMAGE@ { + hdimage { + align = 1M + disk-signature = 0x67bac764 + } + + partition barebox { + in-partition-table = false + image = "barebox-embest-imx6s-riotboard.img" + size = 2M + } + + partition root-A { + image = root.ext2 + partition-type = 0x83 + size = 512M + } + partition data { + partition-type = 0x83 + size = 512M + } +} diff --git a/configs/platform-v7a/platforms/blspec-riotboard.in b/configs/platform-v7a/platforms/blspec-riotboard.in new file mode 100644 index 0000000..6a38c21 --- /dev/null +++ b/configs/platform-v7a/platforms/blspec-riotboard.in @@ -0,0 +1,5 @@ +## SECTION=blspec + +config BLSPEC_RIOTBOARD + tristate + prompt "/loader/entries/riotboard.conf bootloader spec entry" diff --git a/configs/platform-v7a/platforms/image-riotboard.in b/configs/platform-v7a/platforms/image-riotboard.in new file mode 100644 index 0000000..4648b5d --- /dev/null +++ b/configs/platform-v7a/platforms/image-riotboard.in @@ -0,0 +1,10 @@ +## SECTION=image + +config IMAGE_RIOTBOARD + tristate + select HOST_GENIMAGE + select IMAGE_ROOT_EXT + select BAREBOX_MX6 + prompt "Generate images/riotboard.hdimg" + help + FIXME diff --git a/configs/platform-v7a/projectroot/loader/entries/riotboard.conf b/configs/platform-v7a/projectroot/loader/entries/riotboard.conf new file mode 100644 index 0000000..d4bf87a --- /dev/null +++ b/configs/platform-v7a/projectroot/loader/entries/riotboard.conf @@ -0,0 +1,6 @@ +title PTXdist - Pengutronix-DistroKit +version 4.11 +options rootwait +linux /boot/zImage +devicetree /boot/imx6dl-riotboard.dtb +linux-appendroot true 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 |