OpenAT sdk and Linux


#1

Hi

It looks the sdk is a Linux stuff. So how can I use it under Linux, or Can I get a lib for Linux? I have an arm7 cross compiler (gcc) I have the .a files (from the .lib) but it doesn’t work I have compiler error about the lib. Which compiler was used when this wmlib and adllib had compiled?


#2

Exactly what error is that? :unamused:


#3

I lookd the .mak files and search the gcc switches.

I create my own makefile for Linux make

OPENATHOME="/cygdrive/c/OpenAT"
LINK_SCRIPT="$(OPENATHOME)/V302/TgtGen/WmGen/mak/openatlinkscript_32"
CFLAGS=-Os -O2 -fshort-enums -nostartfiles -mapcs -mthumb -mthumb-interwork -mno-apcs-stack-check -msoft-float -mcpu=arm7tdmi -march=armv4t -fomit-frame-pointer -ggdb3 -W -Wall
LDFLAGS=-T $(LINK_SCRIPT) -I./inc -L./lib -lwmadl -lwmopenat -led 
CC=$(OPENATHOME)/Tools/Gcc/bin/arm-elf-gcc
CFILES=main.c

program:
	$(CC) $(CFLAGS) $(LDFLAGS) -o pgcore.elf $(CFILES)

I rename the .lib files to .a beceuse these files are .o file compress with ar. And when I use make the error is

As I know it means the linker does’nt use the libs. So I don’t understand.


#4

Ok I found :slight_smile: The $LDFLAGS was at the wrong place.

the right is the end of the row.

So I have a binary and I strip it. How can I compress it? Because it is too large.


#5

Hi ybdragon, which version ot ARM compiler for Linux you are using ? Can You share a litle info with us ? I’ve tryed a several ones with your Makefile , with my own and with wmmake and Wacecom’s *.mak files. Every time compilation fail on linking stage.