Commit e9ab8ca8 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

software/lib: fixed Makefiles/includes to support SPEC's firmware loader

parent 29f35be5
OBJS = fdelay_lib.o i2c_master.o onewire.o spec_common.o spec/speclib.o fdelay_dmtd_calibration.o OBJS = fdelay_lib.o i2c_master.o onewire.o spec_common.o spec/tools/speclib.o spec/kernel/loader-ll.o fdelay_dmtd_calibration.o
CFLAGS = -I../include -g -Imini_bone CFLAGS = -I../include -g -Imini_bone -Ispec/tools
ifeq ($(SPEC_SW),) ifeq ($(SPEC_SW),)
throw_error: throw_error:
...@@ -11,7 +11,7 @@ endif ...@@ -11,7 +11,7 @@ endif
all: spec lib all: spec lib
spec: spec:
ln -s $(SPEC_SW)/tools spec ln -s $(SPEC_SW) spec
lib: $(OBJS) lib: $(OBJS)
gcc -shared -o libfinedelay.so $(OBJS) gcc -shared -o libfinedelay.so $(OBJS)
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "fdelay_lib.h" #include "fdelay_lib.h"
#include "fdelay_private.h" #include "fdelay_private.h"
#include "spec/speclib.h"
extern void dbg(const char *fmt, ...); extern void dbg(const char *fmt, ...);
extern int64_t get_tics(); extern int64_t get_tics();
......
...@@ -2,11 +2,9 @@ ...@@ -2,11 +2,9 @@
#include <stdint.h> #include <stdint.h>
#include <getopt.h> #include <getopt.h>
#include "spec/speclib.h" #include "spec/tools/speclib.h"
#include "fdelay_lib.h" #include "fdelay_lib.h"
void loader_low_level(){}; /* fixme: include the kernel file */
static void fd_spec_writel(void *priv, uint32_t data, uint32_t addr) static void fd_spec_writel(void *priv, uint32_t data, uint32_t addr)
{ {
spec_writel(priv, data, addr); spec_writel(priv, data, addr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment