For our project, we have some shell scripts that build all of the components in one shot. The main script traverses directories to get to each component. When it enters the device driver's directory, it calls a small shell script which decides whether we're compiling against a Linux kernel 2.4-based tree or one for Linux kernel 2.6, and then calls "make" in the appropriate manner.

The problem is when this script tries to do a "make clean". For 2.6 (aka, kbuild), this is command that is executed:

        make -C /usr/src/linux SUBDIRS=$PWD clean

When I execute this command, it does the same thing as:

        cd /usr/src/linux
        make clean

Obviously, this is just going to cause havoc! Instead of cleaning my external module, it cleans my Linux source tree!

Is "make clean" supposed to work with external modules and kbuild? I'm using Suse Linux 9.1 Pro. I have a suspicion that Suse's using an old version of kbuild.

--
Timur Tabi
Staff Software Engineer
[EMAIL PROTECTED]


------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to