diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-06-16 08:58:08 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2017-06-30 21:50:36 +0200 |
commit | 20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02 (patch) | |
tree | ebea2eb3d0f699c457f6df898bdb595230351ce9 | |
parent | cb608a9d8c1b96eed87d8f52a459773cb8405525 (diff) | |
download | DistroKit-20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02.tar.gz DistroKit-20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02.tar.xz |
platform-v7a: sabrelite: add board support
Add support for SabreLite, with the configs+rules for image creation and
bootspec entries.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
[improve commit description]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
6 files changed, 114 insertions, 0 deletions
diff --git a/configs/platform-v7a/config/images/sabrelite.config b/configs/platform-v7a/config/images/sabrelite.config new file mode 100644 index 0000000..6f68f9d --- /dev/null +++ b/configs/platform-v7a/config/images/sabrelite.config @@ -0,0 +1,22 @@ +image @IMAGE@ { + hdimage { + align = 1M + disk-signature = 0x67bac764 + } + + partition barebox { + in-partition-table = false + image = "barebox-freescale-imx6q-sabrelite.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-sabrelite.in b/configs/platform-v7a/platforms/blspec-sabrelite.in new file mode 100644 index 0000000..ccf1b39 --- /dev/null +++ b/configs/platform-v7a/platforms/blspec-sabrelite.in @@ -0,0 +1,5 @@ +## SECTION=blspec + +config BLSPEC_SABRELITE + tristate + prompt "/loader/entries/sabrelite.conf bootloader spec entry" diff --git a/configs/platform-v7a/platforms/image-sabrelite.in b/configs/platform-v7a/platforms/image-sabrelite.in new file mode 100644 index 0000000..88afced --- /dev/null +++ b/configs/platform-v7a/platforms/image-sabrelite.in @@ -0,0 +1,10 @@ +## SECTION=image + +config IMAGE_SABRELITE + tristate + select HOST_GENIMAGE + select IMAGE_ROOT_EXT + select BAREBOX_MX6 + prompt "Generate images/sabrelite.hdimg" + help + FIXME diff --git a/configs/platform-v7a/projectroot/loader/entries/sabrelite.conf b/configs/platform-v7a/projectroot/loader/entries/sabrelite.conf new file mode 100644 index 0000000..af942bf --- /dev/null +++ b/configs/platform-v7a/projectroot/loader/entries/sabrelite.conf @@ -0,0 +1,5 @@ +title PTXdist - Pengutronix-DistroKit +version 4.11 +options rootwait +linux /boot/zImage +devicetree /boot/imx6q-sabrelite.dtb diff --git a/configs/platform-v7a/rules/blspec-sabrelite.make b/configs/platform-v7a/rules/blspec-sabrelite.make new file mode 100644 index 0000000..47b2607 --- /dev/null +++ b/configs/platform-v7a/rules/blspec-sabrelite.make @@ -0,0 +1,38 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Sascha Hauer <s.hauer@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_SABRELITE) += blspec-sabrelite + +BLSPEC_SABRELITE_VERSION := 4.11 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/blspec-sabrelite.targetinstall: + @$(call targetinfo) + + @$(call install_init, blspec-sabrelite) + @$(call install_fixup,blspec-sabrelite,PRIORITY,optional) + @$(call install_fixup,blspec-sabrelite,SECTION,base) + @$(call install_fixup,blspec-sabrelite,AUTHOR,"Sascha Hauer <s.hauer@pengutronix.de>") + @$(call install_fixup,blspec-sabrelite,DESCRIPTION,missing) + + @$(call install_alternative, blspec-sabrelite, 0, 0, 0644, \ + /loader/entries/sabrelite.conf) + + @$(call install_finish,blspec-sabrelite) + + @$(call touch) + +# vim: syntax=make diff --git a/configs/platform-v7a/rules/image-sabrelite.make b/configs/platform-v7a/rules/image-sabrelite.make new file mode 100644 index 0000000..406d325 --- /dev/null +++ b/configs/platform-v7a/rules/image-sabrelite.make @@ -0,0 +1,34 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Sascha Hauer <s.hauer@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_SABRELITE) += image-sabrelite + +# +# Paths and names +# +IMAGE_SABRELITE := image-sabrelite +IMAGE_SABRELITE_DIR := $(BUILDDIR)/$(IMAGE_SABRELITE) +IMAGE_SABRELITE_IMAGE := $(IMAGEDIR)/sabrelite.hdimg +IMAGE_SABRELITE_FILES := $(IMAGEDIR)/root.tgz +IMAGE_SABRELITE_CONFIG := sabrelite.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +$(IMAGE_SABRELITE_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_SABRELITE) + @$(call finish) + +# vim: syntax=make |