LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-15-2006, 03:41 AM   #1
xuanadoo
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?
 
  


Reply


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 07:28 AM
linux-kbuild-2.6.17 davcefai Debian 3 06-27-2006 04:28 PM
Any tools to help trace kbuild makefile?? knightk Linux - Software 0 10-19-2005 08:20 AM
kbuild error Barakanooz Linux - Hardware 0 10-04-2005 07:19 PM
Makefiles and Me dpottinger Linux - Newbie 5 07-25-2004 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:50 PM.

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