Skip to contentSkip to conversation

Possible Makefile minor glitch

DISCUSSION Ed W 1 participant 1 message Aug 18, 2011

lore
Share & tools
lore

Ed W

author
#0 lore raw

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