From 52fb757e0e86d8381c7a30df50a8b90d1066e51d Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" <w.terpstra@gsi.de> Date: Fri, 25 Oct 2013 16:47:29 +0200 Subject: [PATCH] w1: build sdbfs if gensdbfs is available --- tools/.gitignore | 1 + tools/Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/.gitignore b/tools/.gitignore index 993efc0..7e4b0e0 100644 --- a/tools/.gitignore +++ b/tools/.gitignore @@ -5,3 +5,4 @@ wrpc-uart-sw wrpc-w1-read wrpc-w1-write eb-w1-write +sdb-wrpc.bin diff --git a/tools/Makefile b/tools/Makefile index 132b465..a3d7750 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,4 +1,5 @@ -EB ?= no +EB ?= no +SDBFS ?= no CFLAGS = -Wall -ggdb -DEXTERNAL_W1 -I../include LDFLAGS = -lutil @@ -8,6 +9,9 @@ ALL += wrpc-w1-read wrpc-w1-write ifneq ($(EB),no) ALL += eb-w1-write endif +ifneq ($(SDBFS),no) +ALL += sdb-wrpc.bin +endif AS = as LD = ld @@ -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 $(CC) $(CFLAGS) -I $(EB) $^ $(LDFLAGS) -o $@ -L $(EB) -letherbone +sdb-wrpc.bin: sdbfs + $(SDBFS)/gensdbfs $< $@ + clean: rm -f $(ALL) *.o *~ -- GitLab