Google
  Web www.spinics.net

Re: API's for I2C driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


1st : this question is not kernel related so you should post on linux-arm mailing list (discussion followed there).

Stage Iup - Fabrice & Frederic wrote:
Is anyone succed in compiling eeprog for arm?
i've tried with the compiler 2.95.3, 3.0 and nothings working, i've
got problem with "ld"


can somebody explain me how to get it working?

$ more Makefile
CC=arm-linux-gcc
CFLAGS=-msoft-float -g -I. -Wall -O2

all: eeprog

clean:
        rm -f eeprog 24cXX.o

eeprog: eeprog.o 24cXX.o

eeprog-static: eeprog.o 24cXX.o
        $(CC) -o $@ $?
$ make
arm-linux-gcc -msoft-float -g -I. -Wall -O2      -c -o 24cXX.o 24cXX.c
arm-linux-gcc   eeprog.o 24cXX.o   -o eeprog
$ file eeprog
eeprog: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, dynamically linked (uses shared libs), not stripped

arm-linux-gcc : gcc version 3.4.3

Eric

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Site Home]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux ARM Kernel]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Powered by Linux