Re: Ambiguity in Documentation/kbuild/modules.txt

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

 



On 2016-12-22 20:32, Philip Prindeville wrote:
> but what if we were dealing with someone who had written a 2.4 Makefile, and had named the files:
> 
> 	8123.c                  <= problematic name
> 	8123_if.c
> 	8123_if.h
> 	8123_pci.c
> 	8123_bin.o_shipped
> 
> instead?
> 
> It seems to me that the line:
> 
> 8123-y := 8123.o 8123_if.o 8123_pci.o 8123_bin.o
> 
> would be problematic (i.e. a circular dependency). Yes, the person
> who
> developed the software I’m trying to Build should probably have named
> 8123.c as “8123_main.c” instead, but he didn’t... though arguably it’s
> an unnecessary restriction to not have a source file called
> $(module_name).c in the list of sources for $(module_name).ko ...
> 
> So how does one work around this issue? A possible fix to the Kbuild
> machinery itself would involve linking the $(8123-y) object files into
> 8123_.o instead, and then using that to derive 8123.ko ...

Hi Philip,

scripts/Makefile.build is quite complex already, so I suggest to work
around this by renaming the source file.

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



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

  Powered by Linux