From 6394dbd497e58599432b739ab29131b3d56165b3 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sun, 31 Mar 2013 01:45:33 +0100 Subject: [PATCH] use BACKPORT_PWD variable in makefiles Signed-off-by: Johannes Berg --- plumbing/Makefile | 6 +++--- plumbing/Makefile.build | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plumbing/Makefile b/plumbing/Makefile index 1d831799ce31..7f8302403c54 100644 --- a/plumbing/Makefile +++ b/plumbing/Makefile @@ -6,13 +6,13 @@ ifeq ($(KERNELRELEASE),) MAKEFLAGS += --no-print-directory SHELL = /bin/bash -PWD := $(shell pwd) +BACKPORT_PWD := $(shell pwd) KLIB_BUILD ?= /lib/modules/$(shell uname -r)/build/ KERNEL_CONFIG := $(KLIB_BUILD)/.config CONFIG_MD5 := $(shell md5sum $(KERNEL_CONFIG) | sed 's/\s.*//') -export KLIB_BUILD PWD +export KLIB_BUILD BACKPORT_PWD # disable built-in rules for this file .SUFFIXES: @@ -67,5 +67,5 @@ default: @$(MAKE) -f Makefile.real "$@" else -include $(PWD)/Makefile.kernel +include $(BACKPORT_PWD)/Makefile.kernel endif diff --git a/plumbing/Makefile.build b/plumbing/Makefile.build index e1b968f66369..b90657471909 100644 --- a/plumbing/Makefile.build +++ b/plumbing/Makefile.build @@ -2,4 +2,4 @@ include .config export modules: - @$(MAKE) -C $(KLIB_BUILD) M=$(PWD) modules + @$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_PWD) modules -- 2.30.2