DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 7/7] v8a: imx8m: genimage: build i.MX8M Nano SD/eMMC image
Date: Fri, 28 Jul 2023 18:49:33 +0200	[thread overview]
Message-ID: <20230728164933.342061-8-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20230728164933.342061-1-a.fatoum@pengutronix.de>

Everything is in place now to actually generate an image capable of
booting the i.MX8MN, so let's do it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/platform-v8a/platformconfig           |  1 +
 .../platforms/image-imx8mn-evk.in             | 10 ++++++
 .../platform-v8a/rules/image-imx8mn-evk.make  | 35 +++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 configs/platform-v8a/platforms/image-imx8mn-evk.in
 create mode 100644 configs/platform-v8a/rules/image-imx8mn-evk.make

diff --git a/configs/platform-v8a/platformconfig b/configs/platform-v8a/platformconfig
index 8486a1325d02..c0158f0b8369 100644
--- a/configs/platform-v8a/platformconfig
+++ b/configs/platform-v8a/platformconfig
@@ -245,6 +245,7 @@ PTXCONF_IMAGE_ESPRESSOBIN=y
 # PTXCONF_IMAGE_HD_VDI is not set
 # PTXCONF_IMAGE_HDIMG is not set
 PTXCONF_IMAGE_IMX8MM_EVK=y
+PTXCONF_IMAGE_IMX8MN_EVK=y
 PTXCONF_IMAGE_IMX8MP_EVK=y
 PTXCONF_IMAGE_IMX8MQ_EVK=y
 PTXCONF_IMAGE_KERNEL=y
diff --git a/configs/platform-v8a/platforms/image-imx8mn-evk.in b/configs/platform-v8a/platforms/image-imx8mn-evk.in
new file mode 100644
index 000000000000..4c242f0802ca
--- /dev/null
+++ b/configs/platform-v8a/platforms/image-imx8mn-evk.in
@@ -0,0 +1,10 @@
+## SECTION=image
+
+config IMAGE_IMX8MN_EVK
+	tristate
+	select HOST_GENIMAGE
+	select IMAGE_ROOT_EXT
+	select BAREBOX
+	prompt "Generate images/imx8mn-evk.img"
+	help
+	  Generate a bootable SD card image to deploy a NXP i.MX8MN-EVK board.
diff --git a/configs/platform-v8a/rules/image-imx8mn-evk.make b/configs/platform-v8a/rules/image-imx8mn-evk.make
new file mode 100644
index 000000000000..0d4edd56623a
--- /dev/null
+++ b/configs/platform-v8a/rules/image-imx8mn-evk.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_IMX8MN_EVK) += image-imx8mn-evk
+
+#
+# Paths and names
+#
+IMAGE_IMX8MN_EVK		:= image-imx8mn-evk
+IMAGE_IMX8MN_EVK_DIR	:= $(BUILDDIR)/$(IMAGE_IMX8MN_EVK)
+IMAGE_IMX8MN_EVK_IMAGE	:= $(IMAGEDIR)/imx8mn-evk.img
+IMAGE_IMX8MN_EVK_FILES	:= $(IMAGEDIR)/root.tgz
+IMAGE_IMX8MN_EVK_CONFIG	:= imx8m.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+IMAGE_IMX8MN_EVK_ENV := \
+        BAREBOX_IMAGE=barebox-nxp-imx8mn-evk.img
+
+$(IMAGE_IMX8MN_EVK_IMAGE):
+	@$(call targetinfo)
+	@$(call image/genimage, IMAGE_IMX8MN_EVK)
+	@$(call finish)
+
+# vim: syntax=make
-- 
2.39.2




  parent reply	other threads:[~2023-07-28 16:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-28 16:49 [DistroKit] [PATCH 0/7] v8a: imx8m: build image for i.MX8M Nano Ahmad Fatoum
2023-07-28 16:49 ` [DistroKit] [PATCH 1/7] v8a: imx8m: tf-a: build for i.MX8M Nano as well Ahmad Fatoum
2023-07-28 16:49 ` [DistroKit] [PATCH 2/7] v8a: imx8m: imx-firmware: install DDR4 PHY firmware Ahmad Fatoum
2023-07-28 16:49 ` [DistroKit] [PATCH 3/7] v8a: barebox: enable i.MX8M Nano EVK support Ahmad Fatoum
2023-07-28 16:49 ` [DistroKit] [PATCH 4/7] v8a: imx8m: use common genimage configuration Ahmad Fatoum
2023-07-28 16:49 ` [DistroKit] [PATCH 5/7] v8a: imx8m: genimage: switch from MBR to GPT images Ahmad Fatoum
2023-07-28 16:49 ` [DistroKit] [PATCH 6/7] v8a: imx8m: include i.MX8MN DDR4 and LPDDR4 EVK DT in rootfs Ahmad Fatoum
2023-07-28 16:49 ` Ahmad Fatoum [this message]
2023-08-13 19:39 ` [DistroKit] [PATCH 0/7] v8a: imx8m: build image for i.MX8M Nano Roland Hieber
2023-08-15  9:51 ` Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230728164933.342061-8-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox