Re: Makefile?
Makefile Description: Binary data - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
Re: Makefile?
On 8/4/07, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > > On Aug 4 2007 11:56, Russell Harmon wrote: > >Hmm, that's really weird, the only thing that command does is call the > >kernel's Makefile, and when I do that with "make -f local.mk > >KDIR=/usr/src/linux", I get > > To note that the aufs I was talking about is dated 20070729, e.g. > cvs up -D 2007-07-29 > > >What exactly is /usr/src/linux-obj/%_target_cpu/$flavor ? Is that the > >base of your kernel sources? > > It is the base of the object dir, which is what you ought to specify. > > > Jan > -- > My kernel sources seem to have a different layout, as I have no linux-obj directory. I'm using gentoo. Nevertheless, I made the changes you suggested (even though I can't fully test it). Makefile is attached. ~Russ Makefile Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
On Aug 4 2007 11:56, Russell Harmon wrote: >Hmm, that's really weird, the only thing that command does is call the >kernel's Makefile, and when I do that with "make -f local.mk >KDIR=/usr/src/linux", I get To note that the aufs I was talking about is dated 20070729, e.g. cvs up -D 2007-07-29 >What exactly is /usr/src/linux-obj/%_target_cpu/$flavor ? Is that the >base of your kernel sources? It is the base of the object dir, which is what you ought to specify. Jan -- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
On 8/4/07, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > > On Aug 4 2007 11:34, Russell Harmon wrote: > >> > >> Speaking of which, the modules_install target is not right. It should > >> (ideally) be something like > >> > >> make -C ${yourkerneldir} M=$$PWD modules_install; > >> > >> > >> Jan > >> -- > >> > >Hmm, I never noticed it because I patch my kernel, but for me, the > >makefile (local.mk, not mine) is not building the module correctly. It > >leaves me with a dead aufs.ko symlink and nothing else =(. Trying to > >figure that out before I make the (correct) changes you suggested. > > I've got this in my rpm specfile: > > make -f local.mk KDIR=/usr/src/linux-obj/%_target_cpu/$flavor > modules_install > > that seems to work too > > Jan > -- > Hmm, that's really weird, the only thing that command does is call the kernel's Makefile, and when I do that with "make -f local.mk KDIR=/usr/src/linux", I get kiki aufs # make -f local.mk KDIR=/usr/src/linux /usr/bin/make -C /usr/src/linux M=/root/src/kernel/aufs/fs/aufs modules make[1]: Entering directory `/usr/src/linux-2.6.22-kamikaze5' Building modules, stage 2. MODPOST 0 modules make[1]: Leaving directory `/usr/src/linux-2.6.22-kamikaze5' test ! -e aufs.ko && ln -s fs/aufs/aufs.ko aufs.ko || : ln: creating symbolic link `aufs.ko': File exists Then if I call the kernel's Makefile directory directly with V=1, I don't get any more useful info =( kiki aufs # /usr/bin/make -C /lib/modules/2.6.22-kamikaze5/build M=/root/src/kernel/aufs/fs/aufs V=1 modules make: Entering directory `/usr/src/linux-2.6.22-kamikaze5' test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false) mkdir -p /root/src/kernel/aufs/fs/aufs/.tmp_versions rm -f /root/src/kernel/aufs/fs/aufs/.tmp_versions/* /usr/bin/make -f scripts/Makefile.build obj=/root/src/kernel/aufs/fs/aufs Building modules, stage 2. /usr/bin/make -f /usr/src/linux-2.6.22-kamikaze5/scripts/Makefile.modpost scripts/mod/modpost -m -i /usr/src/linux-2.6.22-kamikaze5/Module.symvers -I /root/src/kernel/aufs/fs/aufs/Module.symvers -o /root/src/kernel/aufs/fs/aufs/Module.symvers -w make: Leaving directory `/usr/src/linux-2.6.22-kamikaze5' What exactly is /usr/src/linux-obj/%_target_cpu/$flavor ? Is that the base of your kernel sources? ~Russ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
On Aug 4 2007 11:34, Russell Harmon wrote: >> >> Speaking of which, the modules_install target is not right. It should >> (ideally) be something like >> >> make -C ${yourkerneldir} M=$$PWD modules_install; >> >> >> Jan >> -- >> >Hmm, I never noticed it because I patch my kernel, but for me, the >makefile (local.mk, not mine) is not building the module correctly. It >leaves me with a dead aufs.ko symlink and nothing else =(. Trying to >figure that out before I make the (correct) changes you suggested. I've got this in my rpm specfile: make -f local.mk KDIR=/usr/src/linux-obj/%_target_cpu/$flavor modules_install that seems to work too Jan -- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
On 8/4/07, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > > On Aug 4 2007 10:44, Russell Harmon wrote: > >Changed some things so that if you do multiple "make patch" without > >the files having been changed, it won't install the files, and so make > >won't have to rebuild aufs. > > > >Also changed the conditionals to if statements. I find it more > >readable, and prevents make from saying "error 1 (ignored)" all the > >time =). > > > >Makefile is attached. > > Speaking of which, the modules_install target is not right. It should > (ideally) be something like > > make -C ${yourkerneldir} M=$$PWD modules_install; > > > Jan > -- > Hmm, I never noticed it because I patch my kernel, but for me, the makefile (local.mk, not mine) is not building the module correctly. It leaves me with a dead aufs.ko symlink and nothing else =(. Trying to figure that out before I make the (correct) changes you suggested. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
On Aug 4 2007 10:44, Russell Harmon wrote: >Changed some things so that if you do multiple "make patch" without >the files having been changed, it won't install the files, and so make >won't have to rebuild aufs. > >Also changed the conditionals to if statements. I find it more >readable, and prevents make from saying "error 1 (ignored)" all the >time =). > >Makefile is attached. Speaking of which, the modules_install target is not right. It should (ideally) be something like make -C ${yourkerneldir} M=$$PWD modules_install; Jan -- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
Changed some things so that if you do multiple "make patch" without the files having been changed, it won't install the files, and so make won't have to rebuild aufs. Also changed the conditionals to if statements. I find it more readable, and prevents make from saying "error 1 (ignored)" all the time =). Makefile is attached. ~Russ Makefile Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
> It is better to post it to the ML since I think who needs this makefile > is aufs users instead of me. Oh, I didn't realize that his mail was sent to the ML. Sorry. Junjiro Okajima - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
"Russell Harmon": > I looked at it one last time and found some things that needed > touching up. I think i've got everything now however. My apologies for > the rapid patches. Thanks. It is better to post it to the ML since I think who needs this makefile is aufs users instead of me. Junjiro Okajima - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
I looked at it one last time and found some things that needed touching up. I think i've got everything now however. My apologies for the rapid patches. Makefile Description: Binary data makefile.patch Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
ugh... since I noticed that one error, i took a closer look and noticed more... a patch and the full makefile is attached. ~Russ makefile.patch Description: Binary data Makefile Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
I noticed a small error in my makefile. A patch and a complete copy of it is attached makefile.patch Description: Binary data Makefile Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
Hello Russell, "Russell Harmon": > If interest exists, I rewrote the Makefile to properly use make's > features. This is now much less of a hack. I think it is good. I will describe about this Makefile in aufs README. Thank you. Junjiro Okajima - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Re: Makefile?
If interest exists, I rewrote the Makefile to properly use make's features. This is now much less of a hack. File is attached. Makefile Description: Binary data - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/