]> git.openfabrics.org - ~aditr/compat.git/commit
compat: explicitly define paths for local configs
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 27 Feb 2012 21:41:57 +0000 (13:41 -0800)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 27 Feb 2012 21:41:57 +0000 (13:41 -0800)
commit1c2ed6f7d157f0cc2f9ca1dcf07723ee06f726fb
treed915ff40d9c55ed2ab3e22a00a3b0a0fe5098b20
parent407a6a023f7cb135f491ece44a63496029b8301a
compat: explicitly define paths for local configs

As noted in the previous commit a Linux kernel module's
Makefile will be read twice, during initial GNU make run,
and later for when the kernel will build the external module.
Variables that require path consideration must address in
which context it needs to be defined and do so by detecting
at which run time case it wants to instantiate variables. In
our case we want to ensure that both COMPAT_CONFIG and
COMPAT_AUTOCONF are defined within the context of the
directory of the external module we are building as otherwise
GNU Make will try to treat it as part of the kernel's build
directory's files.

We already have COMPAT_CONFIG and COMPAT_AUTOCONF defined
under a ifeq ($(KERNELRELEASE),) check, we now just need
to add the directory context and then remove the other
now superfluous uses of the $(PWD).

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Makefile