Searched hist:"028568 d84da3cfca49f5f846eeeef01441d70451" (Results 1 – 3 of 3) sorted by relevance
/linux/tools/power/cpupower/ |
H A D | Makefile | diff 16f8259ca77d04f95e5ca90be1b1894ed45816c0 Sun Nov 05 10:44:16 CET 2017 Bjørn Forsman <bjorn.forsman@gmail.com> kbuild: /bin/pwd -> pwd
Most places use pwd and rely on $PATH lookup. Moving the remaining absolute path /bin/pwd users over for consistency.
Also, a reason for doing /bin/pwd -> pwd instead of the other way around is because I believe build systems should make little assumptions on host filesystem layout. Case in point, we do this kind of patching already in NixOS.
Ref. commit 028568d84da3cfca49f5f846eeeef01441d70451 ("kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)").
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> diff 028568d84da3cfca49f5f846eeeef01441d70451 Mon Oct 02 10:07:28 CEST 2017 Masahiro Yamada <yamada.masahiro@socionext.com> kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)
I thought commit 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") was a safe conversion, but it changed the behavior.
$(abspath ...) / $(realpath ...) does not expand shell special characters, such as '~'.
Here is a simple Makefile example:
---------------->8---------------- $(info /bin/pwd: $(shell cd ~/; /bin/pwd)) $(info abspath: $(abspath ~/)) $(info realpath: $(realpath ~/)) all: @: ---------------->8----------------
$ make /bin/pwd: /home/masahiro abspath: /home/masahiro/workspace/~ realpath:
This can be a real problem if 'make O=~/foo' is invoked from another Makefile or primitive shell like dash.
This commit partially reverts 8e9b46679923.
Fixes: 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") Reported-by: Julien Grall <julien.grall@arm.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Julien Grall <julien.grall@arm.com>
|
/linux/tools/scripts/ |
H A D | Makefile.include | diff 16f8259ca77d04f95e5ca90be1b1894ed45816c0 Sun Nov 05 10:44:16 CET 2017 Bjørn Forsman <bjorn.forsman@gmail.com> kbuild: /bin/pwd -> pwd
Most places use pwd and rely on $PATH lookup. Moving the remaining absolute path /bin/pwd users over for consistency.
Also, a reason for doing /bin/pwd -> pwd instead of the other way around is because I believe build systems should make little assumptions on host filesystem layout. Case in point, we do this kind of patching already in NixOS.
Ref. commit 028568d84da3cfca49f5f846eeeef01441d70451 ("kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)").
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> diff 028568d84da3cfca49f5f846eeeef01441d70451 Mon Oct 02 10:07:28 CEST 2017 Masahiro Yamada <yamada.masahiro@socionext.com> kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)
I thought commit 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") was a safe conversion, but it changed the behavior.
$(abspath ...) / $(realpath ...) does not expand shell special characters, such as '~'.
Here is a simple Makefile example:
---------------->8---------------- $(info /bin/pwd: $(shell cd ~/; /bin/pwd)) $(info abspath: $(abspath ~/)) $(info realpath: $(realpath ~/)) all: @: ---------------->8----------------
$ make /bin/pwd: /home/masahiro abspath: /home/masahiro/workspace/~ realpath:
This can be a real problem if 'make O=~/foo' is invoked from another Makefile or primitive shell like dash.
This commit partially reverts 8e9b46679923.
Fixes: 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") Reported-by: Julien Grall <julien.grall@arm.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Julien Grall <julien.grall@arm.com>
|
/linux/ |
H A D | Makefile | diff 16f8259ca77d04f95e5ca90be1b1894ed45816c0 Sun Nov 05 10:44:16 CET 2017 Bjørn Forsman <bjorn.forsman@gmail.com> kbuild: /bin/pwd -> pwd
Most places use pwd and rely on $PATH lookup. Moving the remaining absolute path /bin/pwd users over for consistency.
Also, a reason for doing /bin/pwd -> pwd instead of the other way around is because I believe build systems should make little assumptions on host filesystem layout. Case in point, we do this kind of patching already in NixOS.
Ref. commit 028568d84da3cfca49f5f846eeeef01441d70451 ("kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)").
Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> diff 028568d84da3cfca49f5f846eeeef01441d70451 Mon Oct 02 10:07:28 CEST 2017 Masahiro Yamada <yamada.masahiro@socionext.com> kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)
I thought commit 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") was a safe conversion, but it changed the behavior.
$(abspath ...) / $(realpath ...) does not expand shell special characters, such as '~'.
Here is a simple Makefile example:
---------------->8---------------- $(info /bin/pwd: $(shell cd ~/; /bin/pwd)) $(info abspath: $(abspath ~/)) $(info realpath: $(realpath ~/)) all: @: ---------------->8----------------
$ make /bin/pwd: /home/masahiro abspath: /home/masahiro/workspace/~ realpath:
This can be a real problem if 'make O=~/foo' is invoked from another Makefile or primitive shell like dash.
This commit partially reverts 8e9b46679923.
Fixes: 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") Reported-by: Julien Grall <julien.grall@arm.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Julien Grall <julien.grall@arm.com>
|