All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Hentschel" <nerv@dawncrow.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/next v3 4/6] package/imx-mkimage: Add support for both other SOC families (i.MX8 and i.MX8X)
Date: Mon, 18 Feb 2019 21:48:05 +0100	[thread overview]
Message-ID: <20190218204807.16815-5-nerv@dawncrow.de> (raw)
In-Reply-To: <20190218204807.16815-1-nerv@dawncrow.de>

From: Andr? Hentschel <andre.hentschel@zf.com>

Signed-off-by: Andr? Hentschel <andre.hentschel@zf.com>
---
 package/imx-mkimage/imx-mkimage.mk | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/package/imx-mkimage/imx-mkimage.mk b/package/imx-mkimage/imx-mkimage.mk
index ac22c974ac..06d3157dc1 100644
--- a/package/imx-mkimage/imx-mkimage.mk
+++ b/package/imx-mkimage/imx-mkimage.mk
@@ -11,15 +11,23 @@ IMX_MKIMAGE_LICENSE = GPL-2.0+
 IMX_MKIMAGE_LICENSE_FILES = iMX8dv/COPYING
 HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
 
+ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M),y)
+# i.MX8M needs a different binary
 define HOST_IMX_MKIMAGE_BUILD_CMDS
-	# Currently this only supports iMX8M. When more hardware is available
-	# this needs to be selectable based on iMX8-version (iMX8M,iMXQ etc).
 	$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)/iMX8M -f soc.mak mkimage_imx8
 endef
-
 define HOST_IMX_MKIMAGE_INSTALL_CMDS
 	$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
 	$(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_fit_atf.sh $(HOST_DIR)/bin/mkimage_fit_atf.sh
 endef
+else
+# i.MX8 and i.MX8X
+define HOST_IMX_MKIMAGE_BUILD_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
+endef
+define HOST_IMX_MKIMAGE_INSTALL_CMDS
+	$(INSTALL) -D -m 755 $(@D)/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
+endef
+endif
 
 $(eval $(host-generic-package))
-- 
2.17.1

  parent reply	other threads:[~2019-02-18 20:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18 20:48 [Buildroot] [PATCH/next v3 0/6] Adding support for i.MX8QXP MEK board André Hentschel
2019-02-18 20:48 ` [Buildroot] [PATCH/next v3 1/6] package/freescale-imx: Add support for i.MX8X André Hentschel
2019-02-23 15:34   ` Thomas Petazzoni
2019-02-18 20:48 ` [Buildroot] [PATCH/next v3 2/6] package/freescale-imx: Add imx-sc-firmware package André Hentschel
2019-02-23 15:35   ` Thomas Petazzoni
2019-02-18 20:48 ` [Buildroot] [PATCH/next v3 3/6] package/imx-mkimage: Bump to rel_imx_4.14.78_1.0.0_ga André Hentschel
2019-02-23 15:35   ` Thomas Petazzoni
2019-02-18 20:48 ` André Hentschel [this message]
2019-02-23 15:35   ` [Buildroot] [PATCH/next v3 4/6] package/imx-mkimage: Add support for both other SOC families (i.MX8 and i.MX8X) Thomas Petazzoni
2019-02-18 20:48 ` [Buildroot] [PATCH/next v3 5/6] board/freescale/common/imx: Add support for i.MX8X André Hentschel
2019-02-23 15:36   ` Thomas Petazzoni
2019-02-18 20:48 ` [Buildroot] [PATCH/next v3 6/6] configs/freescale_imx8qxpmek: New defconfig André Hentschel
2019-02-23 15:36   ` Thomas Petazzoni

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=20190218204807.16815-5-nerv@dawncrow.de \
    --to=nerv@dawncrow.de \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.