From: Michael Moedt <xemc@yahoo.com>
To: linux-mtd@lists.infradead.org
Subject: Building MTD utils w/ arm-linux- cross
Date: Fri, 2 May 2003 12:05:16 -0700 (PDT) [thread overview]
Message-ID: <20030502190516.98480.qmail@web13905.mail.yahoo.com> (raw)
Hi.
I ran into a little bit of trouble compiling the MTD
utilities for an ARM-based system. I'm using
2.4.19-rmk7 for an EP7312. I executed the
'patchin.sh' to this kernel directory, and copied the
'util' directory over. It compiles fine for the host
system (x86), but when I uncommented the
"CROSS=arm-linux-", it didn't compile correctly.
Anyways, the trouble was in the form of:
-----
arm-linux-gcc -I../include -O2 -Wall
-Wstrict-prototypes -Wshadow -c -o eraseall.o
eraseall.c
eraseall.c:40: zlib.h: No such file or directory
make: *** [eraseall.o] Error 1
mmoedt@reptar:~/gonzo/linux-2.4.19-rmk7/util$
-----
Well, I installed zlib-1.1.4 into
/usr/local/arm/2.95.3 , but I needed to add -I and -L
flags to the Makefile in order for it to find it. It
seems to work, but I didn't find this anywhere when I
searched the mailing list. Is this the standard
procedure, or am I doing something wrong?
Anyways, I also wanted to let someone with CVS access
know that there's a typo in the Makefile. In
eraseall's build rule, it uses $(LDLAGS) instead of
$(LDFLAGS). I guess no one needs to add the '-L'
LDFLAG other than me?
Mike
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
next reply other threads:[~2003-05-02 19:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-02 19:05 Michael Moedt [this message]
2003-05-02 20:29 ` Building MTD utils w/ arm-linux- cross Thomas Gleixner
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=20030502190516.98480.qmail@web13905.mail.yahoo.com \
--to=xemc@yahoo.com \
--cc=linux-mtd@lists.infradead.org \
/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