* external modules make clean doesn't do much
@ 2004-08-31 11:47 Duncan Sands
2004-08-31 17:01 ` Sam Ravnborg
0 siblings, 1 reply; 7+ messages in thread
From: Duncan Sands @ 2004-08-31 11:47 UTC (permalink / raw)
To: linux-kernel; +Cc: sam
make clean for an external module only seems to clean
.tmp_versions:
$ make clean
make -C /lib/modules/2.6.9-rc1/build M=`pwd` clean
make[1]: Entering directory `/home/duncan/Linux/linux-2.5'
CLEAN /home/duncan/SpeedTouch/.tmp_versions
make[1]: Leaving directory `/home/duncan/Linux/linux-2.5'
$
This leaves all the .o etc files which doesn't sound right...
All the best,
Duncan.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: external modules make clean doesn't do much
2004-08-31 11:47 external modules make clean doesn't do much Duncan Sands
@ 2004-08-31 17:01 ` Sam Ravnborg
2004-08-31 20:07 ` Duncan Sands
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Sam Ravnborg @ 2004-08-31 17:01 UTC (permalink / raw)
To: Duncan Sands; +Cc: linux-kernel, sam
On Tue, Aug 31, 2004 at 01:47:52PM +0200, Duncan Sands wrote:
> make clean for an external module only seems to clean
> .tmp_versions:
>
> $ make clean
> make -C /lib/modules/2.6.9-rc1/build M=`pwd` clean
> make[1]: Entering directory `/home/duncan/Linux/linux-2.5'
> CLEAN /home/duncan/SpeedTouch/.tmp_versions
> make[1]: Leaving directory `/home/duncan/Linux/linux-2.5'
> $
>
> This leaves all the .o etc files which doesn't sound right...
Nope - let me try.
sam@mars rtl8180 $ ls *o
built-in.o r8180_if.o rtl8180.ko rtl8180.o
priv_part.o r8180_pci_init.o rtl8180.mod.o usercopy.o
sam@mars rtl8180 $ make -C ~/bk/kbuild M=$PWD clean
make: Entering directory `/home/sam/bk/kbuild'
CLEAN /home/sam/bk/external/rtl8180/.tmp_versions
make: Leaving directory `/home/sam/bk/kbuild'
sam@mars rtl8180 $ ls *o
ls: *o: No such file or directory
sam@mars rtl8180 $ cat Makefile
obj-m := rtl8180.o
rtl8180-y += r8180_if.o r8180_pci_init.o usercopy.o
rtl8180-y += priv_part.o
Looks to be OK here.
Please let me see the Makefile you use for SpeedTouch
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: external modules make clean doesn't do much
2004-08-31 17:01 ` Sam Ravnborg
@ 2004-08-31 20:07 ` Duncan Sands
2004-09-02 11:42 ` Duncan Sands
2004-09-23 13:26 ` Duncan Sands
2 siblings, 0 replies; 7+ messages in thread
From: Duncan Sands @ 2004-08-31 20:07 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
On Tuesday 31 August 2004 19:01, Sam Ravnborg wrote:
> On Tue, Aug 31, 2004 at 01:47:52PM +0200, Duncan Sands wrote:
> > make clean for an external module only seems to clean
> > .tmp_versions:
> >
> > $ make clean
> > make -C /lib/modules/2.6.9-rc1/build M=`pwd` clean
> > make[1]: Entering directory `/home/duncan/Linux/linux-2.5'
> > CLEAN /home/duncan/SpeedTouch/.tmp_versions
> > make[1]: Leaving directory `/home/duncan/Linux/linux-2.5'
> > $
> >
> > This leaves all the .o etc files which doesn't sound right...
> Nope - let me try.
>
> sam@mars rtl8180 $ ls *o
> built-in.o r8180_if.o rtl8180.ko rtl8180.o
> priv_part.o r8180_pci_init.o rtl8180.mod.o usercopy.o
> sam@mars rtl8180 $ make -C ~/bk/kbuild M=$PWD clean
> make: Entering directory `/home/sam/bk/kbuild'
> CLEAN /home/sam/bk/external/rtl8180/.tmp_versions
> make: Leaving directory `/home/sam/bk/kbuild'
> sam@mars rtl8180 $ ls *o
> ls: *o: No such file or directory
> sam@mars rtl8180 $ cat Makefile
> obj-m := rtl8180.o
> rtl8180-y += r8180_if.o r8180_pci_init.o usercopy.o
> rtl8180-y += priv_part.o
>
>
> Looks to be OK here.
> Please let me see the Makefile you use for SpeedTouch
Hi Sam, thanks for looking into this. Here it is:
KERNELDIR := /lib/modules/$(shell uname -r)/build
obj-m := speedtch.o
all clean help modules modules_install:
$(MAKE) -C $(KERNELDIR) M=$(PWD) $(filter-out all,$(MAKECMDGOALS))
install:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: external modules make clean doesn't do much
2004-08-31 17:01 ` Sam Ravnborg
2004-08-31 20:07 ` Duncan Sands
@ 2004-09-02 11:42 ` Duncan Sands
2004-09-23 13:26 ` Duncan Sands
2 siblings, 0 replies; 7+ messages in thread
From: Duncan Sands @ 2004-09-02 11:42 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
Hi Sam, I found out what was triggering the problem: symbolic links.
The setup was like this:
directory A contains Makefile, source code etc.
B is a symbolic link to A.
If I change directory into A, then "make clean" works fine.
If I change directory into B, then "make clean" only cleans .tmp_versions.
Strange but true...
All the best,
Duncan.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: external modules make clean doesn't do much
2004-08-31 17:01 ` Sam Ravnborg
2004-08-31 20:07 ` Duncan Sands
2004-09-02 11:42 ` Duncan Sands
@ 2004-09-23 13:26 ` Duncan Sands
2004-09-23 16:56 ` Sam Ravnborg
2 siblings, 1 reply; 7+ messages in thread
From: Duncan Sands @ 2004-09-23 13:26 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
On Tuesday 31 August 2004 19:01, Sam Ravnborg wrote:
> On Tue, Aug 31, 2004 at 01:47:52PM +0200, Duncan Sands wrote:
> > make clean for an external module only seems to clean
> > .tmp_versions:
> >
> > $ make clean
> > make -C /lib/modules/2.6.9-rc1/build M=`pwd` clean
> > make[1]: Entering directory `/home/duncan/Linux/linux-2.5'
> > CLEAN /home/duncan/SpeedTouch/.tmp_versions
> > make[1]: Leaving directory `/home/duncan/Linux/linux-2.5'
> > $
> >
> > This leaves all the .o etc files which doesn't sound right...
> Nope - let me try.
>
> sam@mars rtl8180 $ ls *o
> built-in.o r8180_if.o rtl8180.ko rtl8180.o
> priv_part.o r8180_pci_init.o rtl8180.mod.o usercopy.o
> sam@mars rtl8180 $ make -C ~/bk/kbuild M=$PWD clean
> make: Entering directory `/home/sam/bk/kbuild'
> CLEAN /home/sam/bk/external/rtl8180/.tmp_versions
> make: Leaving directory `/home/sam/bk/kbuild'
> sam@mars rtl8180 $ ls *o
> ls: *o: No such file or directory
> sam@mars rtl8180 $ cat Makefile
> obj-m := rtl8180.o
> rtl8180-y += r8180_if.o r8180_pci_init.o usercopy.o
> rtl8180-y += priv_part.o
>
>
> Looks to be OK here.
> Please let me see the Makefile you use for SpeedTouch
Hi Sam, as I mentioned in another mail, if you get to your
current working directory via a symlink, then clean doesn't
work properly (this was the problem I hit). Did you work out
what's going on?
Thanks for your help,
Duncan.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: external modules make clean doesn't do much
2004-09-23 13:26 ` Duncan Sands
@ 2004-09-23 16:56 ` Sam Ravnborg
2004-09-23 23:22 ` Duncan Sands
0 siblings, 1 reply; 7+ messages in thread
From: Sam Ravnborg @ 2004-09-23 16:56 UTC (permalink / raw)
To: Duncan Sands; +Cc: Sam Ravnborg, linux-kernel
>
> Hi Sam, as I mentioned in another mail, if you get to your
> current working directory via a symlink, then clean doesn't
> work properly (this was the problem I hit). Did you work out
> what's going on?
Hi Duncan.
I have not looked into this yet, but your response is saved in my
todo list.
Being overloaded (read: no time for Linux matters) for now it will
take a while before I get to this.
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: external modules make clean doesn't do much
2004-09-23 16:56 ` Sam Ravnborg
@ 2004-09-23 23:22 ` Duncan Sands
0 siblings, 0 replies; 7+ messages in thread
From: Duncan Sands @ 2004-09-23 23:22 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
> Being overloaded (read: no time for Linux matters) for now it will
> take a while before I get to this.
I know that feeling too well... :) Anyway, there's no hurry as far
as I'm concerned.
All the best,
Duncan.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-24 0:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31 11:47 external modules make clean doesn't do much Duncan Sands
2004-08-31 17:01 ` Sam Ravnborg
2004-08-31 20:07 ` Duncan Sands
2004-09-02 11:42 ` Duncan Sands
2004-09-23 13:26 ` Duncan Sands
2004-09-23 16:56 ` Sam Ravnborg
2004-09-23 23:22 ` Duncan Sands
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®