Question re make
I want to test a fix that I have made to a particular file.
However:
# dell:/usr/src/linux-2.6.13.2-2 # make drivers/telephony/ixj.c make: Nothing to be done for `drivers/telephony/ixj.c'.
and:
# dell:/usr/src/linux-2.6.13.2-2 # make drivers/telephony make: Nothing to be done for `drivers/telephony'.
and
# cc driver/telephony/ixj.cjust gives hundreds of errors.
I have done make clean (and even make mrproper) .
How can I compile just this module?
thanks,
Felix
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 6 lines · Felix Oxley
I want to test a fix that I have made to a particular file.
However:
# dell:/usr/src/linux-2.6.13.2-2 # makedrivers/telephony/ixj.c
make: Nothing to be done for `drivers/telephony/ixj.c'.
You are "make"ing an object file, not a .c file. Makefiles' syntax is for the target, not the source.
make drivers/telephony/ixj.o
Quoted 3 lines
and:
# dell:/usr/src/linux-2.6.13.2-2 # makedrivers/telephony
make: Nothing to be done for `drivers/telephony'.
Please read the Makefile before posting.
make M=drivers/telephony
Quoted 2 lines
and
# cc driver/telephony/ixj.cjust gives hundreds of errors.
This is just plain silly and why we have a Makefile system in the first place.
Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 6 lines
You are "make"ing an object file, not a .c file. Makefiles' syntax is for the target, not the source.
make
drivers/telephony/ixj.o
I had tried this all ready and forgot to mention it, but it didn't work at the time.
Quoted 3 lines
Please read the
Makefilebefore posting.
Which file should I read?
Quoted 2 lines
make M=drivers/telephony
This does the trick!
Quoted 6 lines
Quoted 2 lines
and
# cc driver/telephony/ixj.cjust gives hundreds of errors.This is just plain silly and why we have a
Makefilesystem in the first place.
I know, but I was just trying to exaplan all the methods I had tried. I think I must have cocked something up before but it is better now.
Thanks for your help.
Felix
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 8 lines · Felix Oxley
Quoted 6 lines
You are "make"ing an object file, not a .c file. Makefiles' syntax is for the target, not the source.
make
drivers/telephony/ixj.oI had tried this all ready and forgot to mention it, but it didn't work at the time.
Were you trying to build ixj as a module? You might have needed
make drivers/telephony/ixj.ko
Not sure, though.
Quoted 3 lines
Quoted 2 lines
Please read the
Makefilebefore posting.Which file should I read?
The top-level Makefile gives a good overview of available targets/syntax. The drivers/telephony/Makefile probably has some indication of available targets specific to that directory.
Quoted 4 lines
Quoted 2 lines
make M=drivers/telephony
This does the trick!
Great!
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
and
# cc driver/telephony/ixj.cjust gives hundreds of errors.This is just plain silly and why we have a
Makefilesystem in the first place.I know, but I was just trying to exaplan all the methods I had tried. I think I must have cocked something up before but it is better now.
Glad you got it figured out.
Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
obj-m += ixj.o
all:
make -C /<blah>/<blah>/kernel-2.6.11/linux M=$(PWD)
modules
Try adding this to your standalone make file. I hope this answers your question.
/Lou:-)
-----Original Message-----
From: Nishanth Aravamudan <[email protected]>
To: Felix Oxley <[email protected]>
Cc: [email protected]; [email protected]
Sent: Sat, 8 Oct 2005 22:08:13 -0700
Subject: Re: [KJ] Question re make
Quoted 9 lines · Felix Oxley
Quoted 6 lines
You are "make"ing an object file, not a .c file. Makefiles' syntax is for the target, not the source.
make
drivers/telephony/ixj.oI had tried this all ready and forgot to mention it, but it didn't work at the
time.
Were you trying to build ixj as a module? You might have needed
make drivers/telephony/ixj.ko
Not sure, though.
Quoted 3 lines
Quoted 2 lines
Please read the
Makefilebefore posting.Which file should I read?
The top-level Makefile gives a good overview of available targets/syntax. The drivers/telephony/Makefile probably has some indication of available targets specific to that directory.
Quoted 4 lines
Quoted 2 lines
make M=drivers/telephony
This does the trick!
Great!
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
and
# cc driver/telephony/ixj.cjust gives hundreds of errors.This is just plain silly and why we have a
Makefilesystem in the first place.I know, but I was just trying to exaplan all the methods I had tried. I think I must have cocked something up before but it is better now.
Glad you got it figured out.
Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors