[opensuse-packaging] Kbuild w/ configure... Chicken and egg problem?
Hi, I have a KMP build structure as follows: sample.spec sample/ Kbuild samplemod1 configure *.c and *.h files samplemod2 configure *.c and *.h files My problem is that my Kbuild file has to specify the object files to use, but I don't know the object files until I run the configure command. And I want to run the configure command as part of %build. Any thoughts on how to do this? Note: it seems to work if I am willing to have my samplemod1.ko and samplemod2.ko files wind up in samplemod1/ and samplemod2/, respectively. For that I can just have my Kbuild file look like this: obj-m += samplemod1/ samplemod2/ But I want samplemod1.ko and samplemod2.ko to wind up in /sample. So I do the following: obj-m += samplemod1.o samplemod2.o samplemod1-objs := samplemod1/ samplemod2-objs := samplemod2/ This does not work... it seems that the *-objs lines will not accept a directory but instead require an explicit list of object files to be linked. Hence my problem. TIA for any ideas. Ann --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (1)
-
Ann Davis