Commit 52fb757e authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

w1: build sdbfs if gensdbfs is available

parent 8e0370f1
...@@ -5,3 +5,4 @@ wrpc-uart-sw ...@@ -5,3 +5,4 @@ wrpc-uart-sw
wrpc-w1-read wrpc-w1-read
wrpc-w1-write wrpc-w1-write
eb-w1-write eb-w1-write
sdb-wrpc.bin
EB ?= no EB ?= no
SDBFS ?= no
CFLAGS = -Wall -ggdb -DEXTERNAL_W1 -I../include CFLAGS = -Wall -ggdb -DEXTERNAL_W1 -I../include
LDFLAGS = -lutil LDFLAGS = -lutil
...@@ -8,6 +9,9 @@ ALL += wrpc-w1-read wrpc-w1-write ...@@ -8,6 +9,9 @@ ALL += wrpc-w1-read wrpc-w1-write
ifneq ($(EB),no) ifneq ($(EB),no)
ALL += eb-w1-write ALL += eb-w1-write
endif endif
ifneq ($(SDBFS),no)
ALL += sdb-wrpc.bin
endif
AS = as AS = as
LD = ld LD = ld
...@@ -33,5 +37,8 @@ wrpc-w1-write: wrpc-w1-write.c ../dev/w1.c ../dev/w1-eeprom.c ../dev/w1-hw.c ...@@ -33,5 +37,8 @@ wrpc-w1-write: wrpc-w1-write.c ../dev/w1.c ../dev/w1-eeprom.c ../dev/w1-hw.c
eb-w1-write: eb-w1-write.c ../dev/w1.c ../dev/w1-eeprom.c eb-w1.c eb-w1-write: eb-w1-write.c ../dev/w1.c ../dev/w1-eeprom.c eb-w1.c
$(CC) $(CFLAGS) -I $(EB) $^ $(LDFLAGS) -o $@ -L $(EB) -letherbone $(CC) $(CFLAGS) -I $(EB) $^ $(LDFLAGS) -o $@ -L $(EB) -letherbone
sdb-wrpc.bin: sdbfs
$(SDBFS)/gensdbfs $< $@
clean: clean:
rm -f $(ALL) *.o *~ rm -f $(ALL) *.o *~
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