public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] make env
Date: Thu, 20 Mar 2008 21:11:56 +0100	[thread overview]
Message-ID: <20080320201156.GA22544@michl.2n.cz> (raw)
In-Reply-To: <20080320200258.9DFE324A87@gemini.denx.de>

On Thu, Mar 20, 2008 at 09:02:58PM +0100, Wolfgang Denk wrote:
> Yes, and actually I think this is correct. What we're building is a
> target Linux application, so the U-Boto specific CFLAG settings have
> no meaning for this (or rather would be just dangerous).
> 
> Example:
> 
> -> make env
> make -C tools/env all MTD_VERSION= || exit 1
> make[1]: Entering directory `/home/wd/git/u-boot/work/tools/env'
> ln -s ../../lib_generic/crc32.c crc32.c
> make[1]: Leaving directory `/home/wd/git/u-boot/work/tools/env'
> make[1]: Entering directory `/home/wd/git/u-boot/work/tools/env'
> arm-linux-gcc -Wall -DUSE_HOSTCC crc32.c  fw_env.c  fw_env_main.c -o
> fw_printenv
> make[1]: Leaving directory `/home/wd/git/u-boot/work/tools/env'
> -> file tools/env/fw_printenv
> tools/env/fw_printenv: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), for GNU/Linux 2.4.3, not stripped
> 
> I'm not sure what you wanted to express with your comment?

Well, it seems you have "properly" configured toolchain - you installed
proper kernel headers. In my case it ends with:

-> make env CROSS_COMPILE=arm-C411_L24-linux-gnu-
make -C tools/env all MTD_VERSION= || exit 1
make[1]: Entering directory `/home/ladis/src/u-boot/tools/env'
arm-C411_L24-linux-gnu-gcc -Wall -DUSE_HOSTCC crc32.c  fw_env.c
fw_env_main.c -o fw_printenv
fw_env.c:39:27: error: mtd/mtd-user.h: No such file or directory

Here I have no opportunity to tell compiler where to find that header.
I'd have to put them on some "standard" place, which could conflict with
2.4 headers. I do not want to pass U-Boot specific flags, just fw_setenv
specific.

Best regards,
	ladis

  reply	other threads:[~2008-03-20 20:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-20 15:57 [U-Boot-Users] make env Manuel Sahm
2008-03-20 16:04 ` Wolfgang Denk
2008-03-20 17:56   ` Ladislav Michl
2008-03-20 20:02     ` Wolfgang Denk
2008-03-20 20:11       ` Ladislav Michl [this message]
2008-03-20 21:27         ` Wolfgang Denk
2008-03-20 21:33           ` Ladislav Michl
2008-03-25 12:56             ` Manuel Sahm
2008-03-25 13:36               ` Markus Klotzbücher
2008-03-25 16:19                 ` Manuel Sahm
2008-03-25 17:04                   ` Markus Klotzbücher
2008-03-25 20:11               ` Wolfgang Denk
2008-04-02  9:31                 ` Manuel Sahm
2008-04-02 10:39                   ` Wolfgang Denk
2008-04-02 11:18                     ` Manuel Sahm
2008-04-02 14:33                       ` Wolfgang Denk
2008-04-06 17:37                       ` Markus Klotzbücher

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=20080320201156.GA22544@michl.2n.cz \
    --to=ladis@linux-mips.org \
    --cc=u-boot@lists.denx.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