Re: [PATCH] Documentation: kbuild: modules.rst: Edit '$$' typo, avoid make error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 20, 2020 at 7:00 AM Graeme Hayes <hayes.graeme.p@xxxxxxxxx> wrote:
>
> Typo '$$' generates make error when run, and was pasted twice more.


Are you sure?

$$PWD is the correct escape sequence
to expand $PWD in the shell instead of Make.





> Signed-off-by: Graeme Hayes <hayes.graeme.p@xxxxxxxxx>
>
> ---
>  linux-kbuild/Documentation/kbuild/modules.rst | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/linux-kbuild/Documentation/kbuild/modules.rst b/linux-kbuild/Documentation/kbuild/modules.rst
> index 85ccc87..c7837a5 100644
> --- a/linux-kbuild/Documentation/kbuild/modules.rst
> +++ b/linux-kbuild/Documentation/kbuild/modules.rst
> @@ -205,7 +205,7 @@ module 8123.ko, which is built from the following files::
>                 KDIR ?= /lib/modules/`uname -r`/build
>
>                 default:
> -                       $(MAKE) -C $(KDIR) M=$$PWD
> +                       $(MAKE) -C $(KDIR) M=$PWD
>
>                 # Module specific targets
>                 genbin:
> @@ -239,7 +239,7 @@ module 8123.ko, which is built from the following files::
>                 KDIR ?= /lib/modules/`uname -r`/build
>
>                 default:
> -                       $(MAKE) -C $(KDIR) M=$$PWD
> +                       $(MAKE) -C $(KDIR) M=$PWD
>
>                 # Module specific targets
>                 genbin:
> @@ -268,7 +268,7 @@ module 8123.ko, which is built from the following files::
>                 KDIR ?= /lib/modules/`uname -r`/build
>
>                 default:
> -                       $(MAKE) -C $(KDIR) M=$$PWD
> +                       $(MAKE) -C $(KDIR) M=$PWD
>
>                 # Module specific targets
>                 genbin:
> --
> 2.17.1
>


-- 
Best Regards
Masahiro Yamada



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux