Commit 663ebb23 authored by Alessandro Rubini's avatar Alessandro Rubini

moved tools to oldtools; tools/ is currently empty

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 071c70f7
...@@ -634,14 +634,18 @@ to access library internals from a user file just define ...@@ -634,14 +634,18 @@ to access library internals from a user file just define
@item The driver header is called @code{fine-delay.h} while the user one @item The driver header is called @code{fine-delay.h} while the user one
is @code{fdelay-lib.h}. The latter includes the former, which user is @code{fdelay-lib.h}. The latter includes the former, which user
programs should not refer to. Both are different from the original programs should not refer to.
implementation (@code{fdelay_lib.h}) to avoid trying to compile older
code with new headers. @item The @i{tools} directory hosts the suggested command-line tools
to use the device for testing and quick access. They demonstrate use
of the library functions.
@item The @i{oldtools} directory includes tools that access @sc{zio} @item The @i{oldtools} directory includes tools that access @sc{zio}
directly. Their name begins with @code{fd-raw-} (but there is a directly; they are not built by default any more because they are now
non-fine-delay tool to generate pulses on the parallel port, which has deprecated; we also removed documentation for them, for the same
a different name pattern). reason. We keep them for our previous users, in case they still want
to run previous scripts the saved in the past. The old tools use
an @code{fd-raw-} name pattern.
@item The @i{lib} directory contains the userspace library, providing a @item The @i{lib} directory contains the userspace library, providing a
simple C API to access the driver. simple C API to access the driver.
......
# older user-space tools for spec-fine-delay
M = $(shell /bin/pwd)/../kernel
HOST_EXTRACFLAGS += -I$(M) -I../zio/include -Wno-trigraphs -Wall -ggdb
HOSTCC ?= gcc
hostprogs-y := fd-raw-input
hostprogs-y += fd-raw-gettime
hostprogs-y += fd-raw-settime
hostprogs-y += parport-burst
hostprogs-y += fd-raw-output
hostprogs-y += fd-raw-perf
# we are not in the kernel, so we need to piggy-back on "make modules"
all modules: $(hostprogs-y)
clean:
rm -f $(hostprogs-y) *.o *~
# make nothing for modules_install, but avoid errors
modules_install install:
# we need this as we are out of the kernel
%: %.c
$(HOSTCC) $(HOST_EXTRACFLAGS) -O2 -Wall $^ -o $@
...@@ -6,12 +6,7 @@ HOST_EXTRACFLAGS += -I$(M) -I../zio/include -Wno-trigraphs -Wall -ggdb ...@@ -6,12 +6,7 @@ HOST_EXTRACFLAGS += -I$(M) -I../zio/include -Wno-trigraphs -Wall -ggdb
HOSTCC ?= gcc HOSTCC ?= gcc
hostprogs-y := fd-raw-input hostprogs-y :=
hostprogs-y += fd-raw-gettime
hostprogs-y += fd-raw-settime
hostprogs-y += parport-burst
hostprogs-y += fd-raw-output
hostprogs-y += fd-raw-perf
# we are not in the kernel, so we need to piggy-back on "make modules" # we are not in the kernel, so we need to piggy-back on "make modules"
all modules: $(hostprogs-y) all modules: $(hostprogs-y)
......
#!/bin/bash
modprobe fmc
modprobe spec
insmod spec-fine-delay.ko wrc=1
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