summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5378596..c748e70 100755
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,13 @@ MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modprobe.d ]; then echo "$(INSTALL
ifeq (${BUILDVER},linux24)
#We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4
-DEVFS=$(shell ps ax | grep -v grep | grep devfsd)
+DYNFS=$(shell ps ax | grep -v grep | grep devfsd)
endif
+ifeq (${BUILDVER},linux26)
+#Tests for newer linux-2.6 udev support
+DYNFS=$(shell ps ax | grep -v grep | grep udevd)
+endif
+
TZOBJS=zonedata.lo tonezone.lo
LIBTONEZONE=libtonezone.so.1.0
@@ -213,7 +218,7 @@ fxsdump: fxsdump.o
$(CC) -o fxsdump fxsdump.o -lm
devices:
-ifeq ($(DEVFS),)
+ifeq ($(DYNFS),)
mkdir -p $(INSTALL_PREFIX)/dev/zap
rm -f $(INSTALL_PREFIX)/dev/zap/ctl
rm -f $(INSTALL_PREFIX)/dev/zap/channel
@@ -234,7 +239,8 @@ ifeq ($(DEVFS),)
N=$$[$$N+1]; \
done
else
- @echo "**** devfs detected -- not making device nodes"
+ @echo "**** Dynamic filesystem detected -- not creating device nodes"
+ @echo "**** If you are running udev, read README.udev"
endif
install: all devices $(LIBTONEZONE)