mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v2 2/4] add basic ELF parser
Date: Mon, 4 Jun 2018 09:07:53 +0200	[thread overview]
Message-ID: <20180604070753.p2xohnnl5ygd36jw@pengutronix.de> (raw)
In-Reply-To: <20180603062314.26960-3-o.rempel@pengutronix.de>

On Sun, Jun 03, 2018 at 08:23:12AM +0200, Oleksij Rempel wrote:
> This parser is needed for kernel boot support on MIPS
> and can potentially reused on other platforms.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  common/Kconfig  |   5 ++
>  common/Makefile |   1 +
>  common/elf.c    | 145 ++++++++++++++++++++++++++++++++++++++++++++++++
>  include/elf.h   |  10 ++++
>  4 files changed, 161 insertions(+)
>  create mode 100644 common/elf.c
> 
> diff --git a/common/Kconfig b/common/Kconfig
> index b7000c4d7..b9adc4c39 100644
> --- a/common/Kconfig
> +++ b/common/Kconfig
> @@ -46,6 +46,10 @@ config BLOCK
>  config BLOCK_WRITE
>  	bool
>  
> +config ELF
> +	bool
> +	depends on MIPS

The ELF parser itself has nothing MIPS specific in it, so drop this
dependency here.

> +
>  config FILETYPE
>  	bool
>  
> @@ -548,6 +552,7 @@ config TIMESTAMP
>  	  automatically enabled when you select CFG_CMD_DATE .
>  
>  menuconfig BOOTM
> +	select ELF

The bootm code doesn't need ELF, only the MIPS specific bootm code does,
so this should be selected somewhere in arch/mips/

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2018-06-04  7:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-03  6:23 [PATCH v2 0/4] MIPS: provide basic ELF support Oleksij Rempel
2018-06-03  6:23 ` [PATCH v2 1/4] filetype: add ELF type Oleksij Rempel
2018-06-03  6:23 ` [PATCH v2 2/4] add basic ELF parser Oleksij Rempel
2018-06-04  7:07   ` Sascha Hauer [this message]
2018-06-03  6:23 ` [PATCH v2 3/4] bootm: split split bootm_load_devicetree function Oleksij Rempel
2018-06-03  6:23 ` [PATCH v2 4/4] MIPS: bootm: add ELF handler Oleksij Rempel

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=20180604070753.p2xohnnl5ygd36jw@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=o.rempel@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