Remove -g from build Fix lost code from tdfx-1-1 merge in tdfx_priv.c Lower
the minimum required fifo size Fix the kernel tree detection in the Makefilemain
parent
9a838857e1
commit
fb0ace84a9
|
@ -70,12 +70,20 @@ VERSION := $(shell uname -r)
|
||||||
A := /usr/src/linux-$(VERSION)/include
|
A := /usr/src/linux-$(VERSION)/include
|
||||||
B := /usr/src/linux/include
|
B := /usr/src/linux/include
|
||||||
C := /usr/include
|
C := /usr/include
|
||||||
|
# This detection seems to be broken.
|
||||||
|
#TREE := $(shell \
|
||||||
|
# if grep -q $(VERSION) $A/linux/version.h; then echo $A; \
|
||||||
|
# elif grep -q $(VERSION) $B/linux/version.h; then echo $B; \
|
||||||
|
# elif grep -q $(VERSION) $C/linux/version.h; then echo $C; \
|
||||||
|
# else echo 0; fi)
|
||||||
|
# I'm simplifying it
|
||||||
TREE := $(shell \
|
TREE := $(shell \
|
||||||
if grep -q $(VERSION) $A/linux/version.h; then echo $A; \
|
if [ -d $A ] ; then echo $A; \
|
||||||
elif grep -q $(VERSION) $B/linux/version.h; then echo $B; \
|
elif [ -d $B ] ; then echo $B; \
|
||||||
elif grep -q $(VERSION) $C/linux/version.h; then echo $C; \
|
elif [ -d $C ] ; then echo $C; \
|
||||||
else echo 0; fi)
|
else echo 0; fi)
|
||||||
|
|
||||||
|
|
||||||
ifeq "$TREE" "0"
|
ifeq "$TREE" "0"
|
||||||
all:; echo Error: Could not locate kernel tree
|
all:; echo Error: Could not locate kernel tree
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue