Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-15-2006, 02:41 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Can kbuild execute non-kbuild makefiles?

I'm trying to learn the gentle art of building a system on this suse 9.1 rig, which employs a 2.6.4-52-default kernel. The modem for this rig is a (soft) Modem Blaster USB variety, based on an ST7554 chip. The modem is working, but I have to install the drivers from package sources manually after every kernel build. I've created a symbol called CONFIG_USB_SMARTMODEM, which seems to be defined in '.config' as expected after 'make menuconfig'.
I added subdirectories "modem/slmodem-2.9.6" under "drivers/usb", which contains the subdirctories and files needed to get the modem working. The modem driver files are built using conventional sources and Makefiles and not the kbuild "obj-$(CONFIG_XXX) += xxx.o" conventions. The modem Makefiles are written to generate modules which are copied to the standard "lib/modules/<kernel-version>" directory. The Makefiles also generate a daemon which is copied to "usr/sbin", copies a script to the "etc/init.d" directory, and does a few other things.
I added "obj-$(CONFIG_USB_SMARTMODEM) += modem/slmodem-2.9.6/" to the (kbuild) Makefile in the "drivers/usb" directory, to give kbuild a way to get to "modem/slmodem-2.9.6" where, I hoped, kbuild would execute the Makefile. No luck there. Adding "obj-$(CONFIG_XXX) += xxx.o" in the Makefiles in the subdirectories will build and install modules OK, but the daemon, scripts, and other item operations are apparently ignored.

Is there a way for kbuild to install the modem components by executing the unmodified Makefiles that came with the modem? Would it be more appropriate to use a shell script to install the modem after kbuild has run?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.17 fails to compile, kbuild.include not found rhauff Linux - Server 1 09-13-2006 06:28 AM
linux-kbuild-2.6.17 davcefai Debian 3 06-27-2006 03:28 PM
Any tools to help trace kbuild makefile?? knightk Linux - Software 0 10-19-2005 07:20 AM
kbuild error Barakanooz Linux - Hardware 0 10-04-2005 06:19 PM
Makefiles and Me dpottinger Linux - Newbie 5 07-24-2004 11:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration