2011-08-18 10:24:17

by Ed W

[permalink] [raw]
Subject: Possible Makefile minor glitch

Hi, in compat-wireless (bleeding edge) ./net/wireless/Makefile I see the
following:

$(obj)/regdb.c: $(src)/db.txt $(src)/genregdb.awk
@$(AWK) -f $(srctree)/$(src)/genregdb.awk < $< > $@

My guess is that the "$(srctree)/" should not be there?

For me at least it causes problems when building against a non-installed
kernel tree like this:

make KLIB=/usr/src/linux KLIB_BUILD=/usr/src/linux

End result is:

awk: fatal: can't open source file
`/usr/src/linux-2.6.38.4-2.2.2-201105021909-aufs-ipset//usr/src/compat-wireless-2011-08-08/net/wireless/genregdb.awk'
for reading (No such file or directory)

Deleting the additional patch works for me, but not sure of the wider
implications?

Many thanks

Ed W