From 20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 16 Jun 2017 08:58:08 +0200 Subject: 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 [improve commit description] Signed-off-by: Robert Schwebel --- .../platform-v7a/config/images/sabrelite.config | 22 +++++++++++++ configs/platform-v7a/platforms/blspec-sabrelite.in | 5 +++ configs/platform-v7a/platforms/image-sabrelite.in | 10 ++++++ .../projectroot/loader/entries/sabrelite.conf | 5 +++ configs/platform-v7a/rules/blspec-sabrelite.make | 38 ++++++++++++++++++++++ configs/platform-v7a/rules/image-sabrelite.make | 34 +++++++++++++++++++ 6 files changed, 114 insertions(+) create mode 100644 configs/platform-v7a/config/images/sabrelite.config create mode 100644 configs/platform-v7a/platforms/blspec-sabrelite.in create mode 100644 configs/platform-v7a/platforms/image-sabrelite.in create mode 100644 configs/platform-v7a/projectroot/loader/entries/sabrelite.conf create mode 100644 configs/platform-v7a/rules/blspec-sabrelite.make create mode 100644 configs/platform-v7a/rules/image-sabrelite.make 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 +# +# 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 ") + @$(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 +# +# 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 -- cgit v1.2.3