diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -97,18 +97,17 @@ else # BUILDVER == linux24 endif endif -ifeq (${BUILDVER},linux24) -#We only support DEVFS in linux 2.4 kernels, since its considered obsolete post 2.4 -DYNFS:=$(shell ps ax | grep -v grep | grep -q devfsd && echo "yes") -endif - -ifeq (${BUILDVER},linux26) - ifneq (,$(wildcard $(ROOT_PREFIX)/etc/udev/rules.d)) - DYNFS=yes - UDEVRULES=yes - ifneq (,$(wildcard $(ROOT_PREFIX)/etc/udev/permissions.d)) - UDEVPERMISSIONS=yes - endif +# This is not related to the version that we build. Rather, to the +# version that we runs. If we build for 2.4 using 2.4 headers on a 2.6 +# system with udev mounted on /dev , no point in installing files to /dev +# because they'll be wiped at next reboot. +DYNFS=$(shell ps ax | grep -v grep | grep -qw 'devfsd\|udevd' && echo "yes") + +# Check for udev permissions directories +ifneq (,$(wildcard $(ROOT_PREFIX)/etc/udev/rules.d)) + UDEVRULES=yes + ifneq (,$(wildcard $(ROOT_PREFIX)/etc/udev/permissions.d)) + UDEVPERMISSIONS=yes endif endif |