Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
some patch fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inxi-svn committed Feb 22, 2013
1 parent 5acbc95 commit 69c98dd
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion patches/NVIDIA-uapi-313.18_kernel-3.7-8.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# patch source: https://bugs.gentoo.org/show_bug.cgi?id=447566
# patch two from:
##https://bugs.gentoo.org/447566

--- kernel/conftest.sh
+++ kernel/conftest.sh
Expand All @@ -25,4 +27,21 @@
+ if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE -o -f $OUTPUT/include/generated/uapi/$FILE ]; then
#
# We are either looking at a configured kernel source
# tree or at headers shipped for a specific kernel.
# tree or at headers shipped for a specific kernel.
@@ -1697,13 +1697,15 @@
# kernel older than 2.6.6, that's all we require to
# build the module.
#
+ VERSION=$(grep "^VERSION =" $MAKEFILE | cut -d " " -f 3)
PATCHLEVEL=$(grep "^PATCHLEVEL =" $MAKEFILE | cut -d " " -f 3)
SUBLEVEL=$(grep "^SUBLEVEL =" $MAKEFILE | cut -d " " -f 3)

- if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
+ if [ -n "$VERSION" -a $VERSION -ge 3 ] || \
+ [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
-a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
SELECTED_MAKEFILE=Makefile.kbuild
RET=0
fi
fi
fi

0 comments on commit 69c98dd

Please sign in to comment.