mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software: merge libextra into libbase
This commit is contained in:
parent
2823034a7b
commit
2500e71cb7
9 changed files with 7 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <uart.h>
|
||||
#include <system.h>
|
||||
#include <board.h>
|
||||
#include <extra/crc.h>
|
||||
#include <crc.h>
|
||||
#include <sfl.h>
|
||||
#include <string.h>
|
||||
#include <irq.h>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <board.h>
|
||||
#include <irq.h>
|
||||
#include <version.h>
|
||||
#include <extra/crc.h>
|
||||
#include <crc.h>
|
||||
#include <timer.h>
|
||||
|
||||
#include <hw/flash.h>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <system.h>
|
||||
#include <extra/crc.h>
|
||||
#include <crc.h>
|
||||
#include <hw/minimac.h>
|
||||
|
||||
#include "microudp.h"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <extra/crc.h>
|
||||
#include <crc.h>
|
||||
|
||||
static const unsigned int crc16_table[256] = {
|
||||
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,
|
|
@ -3,7 +3,7 @@
|
|||
* For conditions of distribution and use, see copyright notice in zlib.h
|
||||
*/
|
||||
|
||||
#include <extra/crc.h>
|
||||
#include <crc.h>
|
||||
|
||||
static const unsigned int crc_table[256] = {
|
||||
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
|
|
@ -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 .*~ *~
|
Loading…
Reference in a new issue