summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/platform-v7a/config/images/gf.config29
-rw-r--r--configs/platform-v7a/platforms/image-gf.in13
-rw-r--r--configs/platform-v7a/projectroot/loader/entries/gf.conf3
-rw-r--r--configs/platform-v7a/rules/image-gf.make33
4 files changed, 77 insertions, 1 deletions
diff --git a/configs/platform-v7a/config/images/gf.config b/configs/platform-v7a/config/images/gf.config
new file mode 100644
index 0000000..0b78226
--- /dev/null
+++ b/configs/platform-v7a/config/images/gf.config
@@ -0,0 +1,29 @@
+image gf-boot.vfat {
+ vfat {
+ file MLO { image = "barebox-am33xx-afi-gf-mlo.img"}
+ file barebox.bin { image = "barebox-am33xx-afi-gf.img" }
+ }
+ size = 32M
+}
+
+image @IMAGE@ {
+ hdimage {
+ align = 1M
+ disk-signature = 0x74823abf
+ }
+ partition boot {
+ image = gf-boot.vfat
+ size = 32M
+ partition-type = 0xc
+ bootable = true
+ }
+ 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/image-gf.in b/configs/platform-v7a/platforms/image-gf.in
new file mode 100644
index 0000000..37095be
--- /dev/null
+++ b/configs/platform-v7a/platforms/image-gf.in
@@ -0,0 +1,13 @@
+## SECTION=image
+
+config IMAGE_GF
+ tristate
+ select HOST_GENIMAGE
+ select HOST_DOSFSTOOLS
+ select HOST_MTOOLS
+ select IMAGE_ROOT_EXT
+ select BAREBOX_AM335X
+ select BAREBOX_AM335X_MLO
+ prompt "Generate images/gf.hdimg"
+ help
+ FIXME
diff --git a/configs/platform-v7a/projectroot/loader/entries/gf.conf b/configs/platform-v7a/projectroot/loader/entries/gf.conf
index 620835b..7c5fbb2 100644
--- a/configs/platform-v7a/projectroot/loader/entries/gf.conf
+++ b/configs/platform-v7a/projectroot/loader/entries/gf.conf
@@ -1,5 +1,6 @@
title Gute Fee - Pengutronix-DistroKit
version 4.6
-options loglevel=5 systemd.log_level=warning systemd.show_status=auto root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw
+options loglevel=5 systemd.log_level=warning systemd.show_status=auto rootwait rw
linux /boot/zImage
devicetree /boot/am335x-afi-gf.dtb
+linux-appendroot true
diff --git a/configs/platform-v7a/rules/image-gf.make b/configs/platform-v7a/rules/image-gf.make
new file mode 100644
index 0000000..d918ae7
--- /dev/null
+++ b/configs/platform-v7a/rules/image-gf.make
@@ -0,0 +1,33 @@
+# -*-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_GF) += image-gf
+
+#
+# Paths and names
+#
+IMAGE_GF := image-gf
+IMAGE_GF_DIR := $(BUILDDIR)/$(IMAGE_GF)
+IMAGE_GF_IMAGE := $(IMAGEDIR)/gf.hdimg
+IMAGE_GF_CONFIG := gf.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_GF_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_GF)
+ @$(call finish)
+
+# vim: syntax=make