CrossCompiler – Programm für die Frtiz Box erstellen

mastertester

Mitglied
Mitglied seit
26 Sep 2004
Beiträge
498
Punkte für Reaktionen
0
Punkte
0
Wer kann mir mal im Schnelldurchlauf erklären, wie ich unter Knoppix 5 mit nem Crosscompiler ein Programm für die FritzBox erstelle?

Ich hatte mir jetzt ivcall zum probieren besorgt, und folgenden Code versucht:


./configure --target=mipsel-linux --host=mipsel-linux
make
make install

habe es dann auch geschafft, dass er ivcall erstellt, allerdings läuft das nicht auf der Fritz Box.


File ivcall liefert folgendes:

ELF 32-bit LSB executable, Intel 80386, version 1 .........

Und es müsste heißen:
ELF 32-bit LSB executable, MIPS, version 1 .........


Wer kann mir hier helfen???


Gruß
mastertester
 
pass mal das makefile an:
im stil:
# programs
CC = mipsel-linux-gcc
STRIP = mipsel-linux-strip
BISON = bison
FLEX = flex
TAGCMD = etags

# add gcc warnings and optimizations if CFLAGS not set
ifndef CFLAGS
CFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes \
-Wmissing-declarations -Wsign-compare
CFLAGS += -Os -W -pipe -march=4kc -Wa,--trap

pfad anpassen...
export PATH=/path/to/ds-0.2.2/toolchain/target/bin:$PATH
 
Kostenlos!

Statistik des Forums

Themen
248,871
Beiträge
2,303,450
Mitglieder
378,532
Neuestes Mitglied
Nik320