From 2500e71cb72de3555a3f0536fc59694fa0db82f7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 24 May 2012 19:01:47 +0200 Subject: [PATCH] software: merge libextra into libbase --- software/bios/Makefile | 3 +-- software/bios/boot.c | 2 +- software/bios/main.c | 2 +- software/bios/microudp.c | 2 +- software/include/{extra => base}/crc.h | 0 software/libbase/Makefile | 2 +- software/{libextra => libbase}/crc16.c | 2 +- software/{libextra => libbase}/crc32.c | 2 +- software/libextra/Makefile | 18 ------------------ 9 files changed, 7 insertions(+), 26 deletions(-) rename software/include/{extra => base}/crc.h (100%) rename software/{libextra => libbase}/crc16.c (99%) rename software/{libextra => libbase}/crc32.c (99%) delete mode 100644 software/libextra/Makefile diff --git a/software/bios/Makefile b/software/bios/Makefile index e96ef446..128bc17e 100644 --- a/software/bios/Makefile +++ b/software/bios/Makefile @@ -18,12 +18,11 @@ bios.elf: linker.ld $(OBJECTS) libs bios-rescue.elf: linker-rescue.ld $(OBJECTS) libs %.elf: - $(LD) $(LDFLAGS) -T $< -N -o $@ $(OBJECTS) -L$(M2DIR)/software/libbase -L$(M2DIR)/software/libextra -lbase -lextra + $(LD) $(LDFLAGS) -T $< -N -o $@ $(OBJECTS) -L$(M2DIR)/software/libbase -lbase chmod -x $@ libs: make -C $(M2DIR)/software/libbase - make -C $(M2DIR)/software/libextra flash: bios.bin m1nor bios.bin diff --git a/software/bios/boot.c b/software/bios/boot.c index 3ea515fd..74b0f558 100644 --- a/software/bios/boot.c +++ b/software/bios/boot.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/software/bios/main.c b/software/bios/main.c index 1aeb4c65..21b6aee9 100644 --- a/software/bios/main.c +++ b/software/bios/main.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include diff --git a/software/bios/microudp.c b/software/bios/microudp.c index c80c60ba..44d58a62 100644 --- a/software/bios/microudp.c +++ b/software/bios/microudp.c @@ -17,7 +17,7 @@ #include #include -#include +#include #include #include "microudp.h" diff --git a/software/include/extra/crc.h b/software/include/base/crc.h similarity index 100% rename from software/include/extra/crc.h rename to software/include/base/crc.h diff --git a/software/libbase/Makefile b/software/libbase/Makefile index e3ddbfb8..2ea9e1ef 100644 --- a/software/libbase/Makefile +++ b/software/libbase/Makefile @@ -1,7 +1,7 @@ M2DIR=../.. include $(M2DIR)/software/include.mak -OBJECTS=divsi3.o libc.o console.o timer.o system.o board.o uart.o softfloat.o softfloat-glue.o vsnprintf.o atof.o +OBJECTS=divsi3.o libc.o crc16.o crc32.o console.o timer.o system.o board.o uart.o softfloat.o softfloat-glue.o vsnprintf.o atof.o all: libbase.a diff --git a/software/libextra/crc16.c b/software/libbase/crc16.c similarity index 99% rename from software/libextra/crc16.c rename to software/libbase/crc16.c index afd848c6..a1222e86 100644 --- a/software/libextra/crc16.c +++ b/software/libbase/crc16.c @@ -1,4 +1,4 @@ -#include +#include static const unsigned int crc16_table[256] = { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7, diff --git a/software/libextra/crc32.c b/software/libbase/crc32.c similarity index 99% rename from software/libextra/crc32.c rename to software/libbase/crc32.c index f9438227..29b9b994 100644 --- a/software/libextra/crc32.c +++ b/software/libbase/crc32.c @@ -3,7 +3,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ -#include +#include static const unsigned int crc_table[256] = { 0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L, diff --git a/software/libextra/Makefile b/software/libextra/Makefile deleted file mode 100644 index 34747a65..00000000 --- a/software/libextra/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -M2DIR=../.. -include $(M2DIR)/software/include.mak - -OBJECTS=crc16.o crc32.o - -all: libextra.a - -# pull in dependency info for *existing* .o files --include $(OBJECTS:.o=.d) - -libextra.a: $(OBJECTS) - $(AR) clr libextra.a $(OBJECTS) - $(RANLIB) libextra.a - -.PHONY: clean - -clean: - rm -f $(OBJECTS) $(OBJECTS:.o=.d) libextra.a .*~ *~ -- 2.30.2