LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-14-2012, 10:31 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
Getting this when trying to "make bzImage"...


Code:
make[1]: *** No rule to make target `kernel/+', needed by `kernel/built-in.o'.  Stop.
I just downloaded the kernel source from kernel.org. Then I copied my /boot/config to the kernel src tree .config. Then ran make menuconfig, make 2 tweaks. Then ran "make bzImage" and then got that error from make.

What does it mean exactly?

-Tristan
 
Old 10-15-2012, 12:34 AM   #2
Rupadhya
Member
 
Registered: Sep 2012
Location: Hoffman Estates, IL
Distribution: Fedora 20
Posts: 167

Rep: Reputation: Disabled
I haven't worked with Slackware in awhile so I don't know if you will have other issues, but this is what I do on Fedora.
Code:
mkdir ~/build                                # A directory where your build will be built.
make O=/home/name/build/kernel mrproper      #  Replace name with your username.  This will clean up any .o from an old build
copy your config file to .config in your source directory
make O=/home/name/build/kernel oldconfig     # This parses your old config and updates it with new options.
make O=/home/name/build/kernel menuconfig    # Make your 2 tweaks
rm .config in the source directory           # I think your build will sense this and not allow you to build if you don't
make O=/home/name/build/kernel               # This is the build.  It takes awhile to execute
sudo make O=/home/name/build/kernel modules_install install    # This copies your bzImage to the /boot directory
                                                               # Sets up some symbolic links and updates the grub.cfg
Reboot and test.. If you have other problems, please reply to this thread.

- Raj Upadhyaya
 
Old 10-15-2012, 09:51 AM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Nice, I'll try that.

So the "make" will do both make bzImage and modules correct? At least that's what it looks like in the Makefile.


-Tristan

Last edited by trist007; 10-15-2012 at 10:32 AM.
 
1 members found this post helpful.
Old 10-15-2012, 10:40 AM   #4
Rupadhya
Member
 
Registered: Sep 2012
Location: Hoffman Estates, IL
Distribution: Fedora 20
Posts: 167

Rep: Reputation: Disabled
Yes. It takes a while and it compiles and links all the modules necessary to make the kernel, and it links it together to make bzImage.
- Raj
 
Old 10-15-2012, 10:47 AM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Thanks.

-Tristan
 
Old 10-15-2012, 11:03 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,566

Rep: Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862
Just run make. make help if you want to inform yourself.

Be sure to be sitting in the kernel top source. I never bother with a build directory - too much messing, and the kernel keeps the source clean anyhow.
 
  


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
make bzImage failure - "Value too large for defined data type" hce_ Linux - Kernel 2 07-01-2007 03:30 PM
upgrade to kernel 2.6.16.1 : "make bzImage" print "parse error" math_physics Red Hat 2 06-30-2007 12:04 AM
error 1 while ruuning "make bzImage" in RHEL 4 tataiermail Linux - Enterprise 2 04-02-2007 02:25 PM
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 10:16 AM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 08:43 PM

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

All times are GMT -5. The time now is 03:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration