Makefiles: If both KDIR and KVER have been set, preserve KDIR

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9052 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-07-19 00:00:49 +00:00
parent 52ee6089f5
commit cf909e3e16
10 changed files with 30 additions and 10 deletions

View File

@@ -46,7 +46,9 @@ ifeq ($(KVER),)
make -s -C $(KDIR) kernelversion))
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -34,7 +34,9 @@ ifeq ($(KVER),)
endif
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -35,7 +35,9 @@ ifeq ($(KVER),)
make -s -C $(KDIR) kernelversion))
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -44,7 +44,9 @@ ifeq ($(KVER),)
endif
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -34,7 +34,9 @@ ifeq ($(KVER),)
make -s -C $(KDIR) kernelversion))
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -43,7 +43,9 @@ ifeq ($(KVER),)
endif
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -45,7 +45,9 @@ ifeq ($(KVER),)
make -s -C $(KDIR) kernelversion))
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -39,7 +39,9 @@ ifeq ($(KVER),)
make -s -C $(KDIR) kernelversion))
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -20,7 +20,9 @@ ifeq ($(KVER),)
make -s -C $(KDIR) kernelversion))
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)

View File

@@ -22,7 +22,9 @@ ifeq ($(KVER),)
endif
endif
else
KDIR := /lib/modules/$(KVER)/build
ifeq ($(KDIR),)
KDIR := /lib/modules/$(KVER)/build
endif
endif
ifeq ($(INSTALL_MOD_PATH),)