File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,10 +119,10 @@ CLANG ?= clang
119119
120120# Trick to allow make to be run from this directory
121121all :
122- $(MAKE ) -C ../../ $$ PWD /
122+ $(MAKE ) -C ../../ $( CURDIR ) /
123123
124124clean :
125- $(MAKE ) -C ../../ M=$$ PWD clean
125+ $(MAKE ) -C ../../ M=$( CURDIR ) clean
126126 @rm -f * ~
127127
128128# Verify LLVM compiler tools are available and bpf target is supported by llc
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include
1313all : modules
1414
1515modules clean :
16- $(MAKE ) -C ../.. SUBDIRS=$(PWD ) $@
16+ $(MAKE ) -C ../.. SUBDIRS=$(CURDIR ) $@
Original file line number Diff line number Diff line change 11ifeq ($(srctree ) ,)
2- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
2+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
33srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
44endif
55
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ include ../scripts/Makefile.include
33bindir ?= /usr/bin
44
55ifeq ($(srctree ) ,)
6- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
6+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
77srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
88endif
99
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ include ../../scripts/Makefile.include
22include ../../scripts/utilities.mak # QUIET_CLEAN
33
44ifeq ($(srctree ) ,)
5- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
5+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
66srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
77srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
88# $(info Determined 'srctree' to be $(srctree))
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ BPF_EXTRAVERSION = 1
77MAKEFLAGS += --no-print-directory
88
99ifeq ($(srctree ) ,)
10- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
10+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
1111srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
1212srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
1313# $(info Determined 'srctree' to be $(srctree))
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ ifndef VERBOSE
5050endif
5151
5252ifeq ($(srctree ) ,)
53- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
53+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
5454srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
5555srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
5656# $(info Determined 'srctree' to be $(srctree))
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ include ../../scripts/Makefile.include
22include ../../scripts/utilities.mak # QUIET_CLEAN
33
44ifeq ($(srctree ) ,)
5- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
5+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
66srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
77srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
88# $(info Determined 'srctree' to be $(srctree))
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ ifndef VERBOSE
8686endif
8787
8888ifeq ($(srctree ) ,)
89- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
89+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
9090srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
9191srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
9292# $(info Determined 'srctree' to be $(srctree))
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ LD = ld
1111AR = ar
1212
1313ifeq ($(srctree ) ,)
14- srctree := $(patsubst % /,% ,$(dir $(shell pwd ) ) )
14+ srctree := $(patsubst % /,% ,$(dir $(CURDIR ) ) )
1515srctree := $(patsubst % /,% ,$(dir $(srctree ) ) )
1616endif
1717
1818SUBCMD_SRCDIR = $(srctree ) /tools/lib/subcmd/
19- LIBSUBCMD_OUTPUT = $(if $(OUTPUT ) ,$(OUTPUT ) ,$(PWD ) /)
19+ LIBSUBCMD_OUTPUT = $(if $(OUTPUT ) ,$(OUTPUT ) ,$(CURDIR ) /)
2020LIBSUBCMD = $(LIBSUBCMD_OUTPUT ) libsubcmd.a
2121
2222OBJTOOL := $(OUTPUT ) objtool
You can’t perform that action at this time.
0 commit comments