diff options
author | wdenk <wdenk> | 2003-08-29 20:57:53 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-08-29 20:57:53 +0000 |
commit | c29fdfc1d8cbefd2d85a354b95486a6d2b3f4a88 (patch) | |
tree | efce72aecde2b26e3e7be7e3ef550b022732f705 /examples | |
parent | ca75added10524a1f8e439e904ba72cb74c917a4 (diff) | |
download | u-boot-c29fdfc1d8cbefd2d85a354b95486a6d2b3f4a88.tar.gz |
Patch by Yuli Barcohen, 14 Aug 2003:
add support for bzip2 uncompression
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index 7975df55ca..febc501e9f 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -79,6 +79,8 @@ endif LIBCOBJS= stubs.o LIBOBJS = $(LIBAOBJS) $(LIBCOBJS) +gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`) + CPPFLAGS += -I.. all: .depend $(LIB) $(SREC) $(BIN) @@ -88,7 +90,8 @@ $(LIB): .depend $(LIBOBJS) $(AR) crv $@ $(LIBOBJS) %.srec: %.o $(LIB) - $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $< $(LIB) + $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $< $(LIB) \ + -L$(gcclibdir) -lgcc $(OBJCOPY) -O srec $(<:.o=) $@ %.bin: %.srec |