Re: [PATCH] .gitignore: ignore Module.symvers in all directories

From: Zhao\, Gang
Date: Thu Apr 17 2014 - 05:18:15 EST


On Wed, 2014-04-16 at 23:08:26 +0200, Michal Marek wrote:
> On Mon, Apr 14, 2014 at 02:56:15PM +0800, Zhao, Gang wrote:
>> When using `make M=/path/to/driver modules` to build a module, file
>> Module.symvers will be created in that directory, so it's better to
>> ignore it in all directories.
>>
>> Slightly reordered, let specific file names behind general ones.
>>
>> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>> Cc: Kyungsik Lee <kyungsik.lee@xxxxxxx>
>> Cc: Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx>
>> Signed-off-by: Zhao, Gang <gamerh2o@xxxxxxxxx>
>
> Note that the easier way to build a subtree of the kernel source is
>
> make path/to/driver/
>
Thanks for pointing out this.

> including the trailing /. But the M=... syntax seems so widespread that
> I have to apply this.
>
The M=... syntax is the first I learned to build a module. I think it's
popular because one can build out of tree drivers by using it(adding
C=...). As you said, it's better to use `make path/to/driver/` to build
in-tree drivers.

> BTW: there is really no need to CC the last N people who touched
> such a trivial file :).
>
./scripts/get_maintainer.pl doesn't return the maintainer of this
file. Maybe you can add this file to MAINTAINERS(telling you are the
maintainer), but it's really so trivial. :-)

> Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/