All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Larsson <karl.erik.larsson@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v6 1/4] imx-mkimage: new package
Date: Tue, 10 Apr 2018 07:27:22 +0200	[thread overview]
Message-ID: <CAPP7BN1C+Z-i5Vvv60TwycBL7cn6GMwdR+=vdPY-w6ZevsBpsg@mail.gmail.com> (raw)
In-Reply-To: <20180409220758.5b9b801d@windsurf>

Hi!

2018-04-09 22:07 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@bootlin.com>:
> Hello,
>
> Again, thanks for this contribution!
>
> On Sat, 10 Mar 2018 12:51:39 +0100, Erik Larsson wrote:
>> This package add support for imx-mkimage for iMX8M.
>> Currently the only hardware it's tested for.
>>
>> Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
>> Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com>
>
> Thanks, I've applied to master, after doing a few changes. I also have
> one request. See below.
>
>>  package/Config.in.host                             |  1 +
>>  ...-for-overriding-bl32-and-bl33-not-only-bl.patch | 58 ++++++++++++++++++++++
>>  .../0002-add-ldflags-to-link-step.patch            | 26 ++++++++++
>>  package/imx-mkimage/Config.in.host                 |  7 +++
>>  package/imx-mkimage/imx-mkimage.hash               |  3 ++
>>  package/imx-mkimage/imx-mkimage.mk                 | 24 +++++++++
>>  6 files changed, 119 insertions(+)
>
> You forgot to add an entry in the DEVELOPERS file for this new package,
> so I've done so.
>
>
>> diff --git a/package/imx-mkimage/0002-add-ldflags-to-link-step.patch b/package/imx-mkimage/0002-add-ldflags-to-link-step.patch
>> new file mode 100644
>> index 0000000..22c6a7d
>> --- /dev/null
>> +++ b/package/imx-mkimage/0002-add-ldflags-to-link-step.patch
>> @@ -0,0 +1,26 @@
>> +From a73f20fbe921c7ecff3efda23bc506fdd935ee4d Mon Sep 17 00:00:00 2001
>> +From: Erik Larsson <erik.larsson@combitech.se>
>> +Date: Tue, 6 Mar 2018 12:28:39 +0100
>> +Subject: [PATCH 1/2] Add LDFLAGS to link step
>> +
>> +Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
>
> This commit log really needs to be extended. What was the need to add
> LDFLAGS ? It seems like a very simple program, which could be built
> without special LDFLAGS. What was the issue that lead you to add this
> patch ?

If LDFLAGS is not added it will use the host machine libz, and fail if
not available, but by adding LDFLAGS it will build using Buildroot
compiled libz. Do you want me to update the patch information in a new
patch?

>
>
>> +define HOST_IMX_MKIMAGE_INSTALL_CMDS
>> +     $(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin
>> +     $(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_fit_atf.sh $(HOST_DIR)/bin
>
> We prefer a complete destination path that includes the name of the
> file to install. Indeed, with the way you have written the commands, if
> $(HOST_DIR)/bin doesn't exist as a directory, mkimage_imx8 will be
> installed as a file called "bin" in $(HOST_DIR). I've also fixed this
> when applying.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com

/Erik

  reply	other threads:[~2018-04-10  5:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-10 11:51 [Buildroot] [PATCH v6 0/4] Initial support for NXP iMX8 (imx8mq-evk) Erik Larsson
2018-03-10 11:51 ` [Buildroot] [PATCH v6 1/4] imx-mkimage: new package Erik Larsson
2018-04-09 20:07   ` Thomas Petazzoni
2018-04-10  5:27     ` Erik Larsson [this message]
2018-04-10  6:56       ` Thomas Petazzoni
2018-03-10 11:51 ` [Buildroot] [PATCH v6 2/4] freescale-imx: add config option for i.MX8M Erik Larsson
2018-04-09 20:08   ` Thomas Petazzoni
2018-03-10 11:51 ` [Buildroot] [PATCH v6 3/4] firmware-imx: add support for iMX8M firmware Erik Larsson
2018-04-09 20:38   ` Thomas Petazzoni
2018-03-10 11:51 ` [Buildroot] [PATCH v6 4/4] configs/freescale_imx8mqevk: new defconfig Erik Larsson
2018-04-09 20:42   ` Thomas Petazzoni
2018-04-09 20:46     ` Fabio Estevam
2018-04-10  5:37     ` Erik Larsson
2018-04-10 17:31     ` Erik Larsson
2018-04-10 21:26       ` Thomas Petazzoni
2018-04-11  5:23         ` Erik Larsson
2018-03-28  9:23 ` [Buildroot] [PATCH v6 0/4] Initial support for NXP iMX8 (imx8mq-evk) Erik Larsson

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='CAPP7BN1C+Z-i5Vvv60TwycBL7cn6GMwdR+=vdPY-w6ZevsBpsg@mail.gmail.com' \
    --to=karl.erik.larsson@gmail.com \
    --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.