From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 28 Jul 2023 18:49:44 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPQev-00Dm0K-Vn for lore@lore.pengutronix.de; Fri, 28 Jul 2023 18:49:44 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qPQet-0001Xf-6q; Fri, 28 Jul 2023 18:49:43 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qPQem-0001UP-O3; Fri, 28 Jul 2023 18:49:36 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qPQem-002kWM-1u; Fri, 28 Jul 2023 18:49:36 +0200 Received: from afa by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qPQel-001R4h-0d; Fri, 28 Jul 2023 18:49:35 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Fri, 28 Jul 2023 18:49:33 +0200 Message-Id: <20230728164933.342061-8-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230728164933.342061-1-a.fatoum@pengutronix.de> References: <20230728164933.342061-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 7/7] v8a: imx8m: genimage: build i.MX8M Nano SD/eMMC image X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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 --- 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 +# +# 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