LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-04-2012, 07:53 AM   #1
ellonde
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
Problems with make


Hello there!

First post, so bare with me

Im trying to build the classic "hello world" for my kernel.

My makefile looks like this:

Code:
ifeq ($KERNELRELASE),)
   KERNELDIR = ~/sources/linux-3.2.6
   PWD:= $(shell pwd)

default:
[TAB] $(MAKE) ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -C $(KERNELDIR) M=$(PWD) modules

else

   obj-m := hello_world.o

endif
When trying to make this i get the error:
make[1]: Entering directory `/home/stud/sources/linux-3.2.6'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/home/stud/sources/linux-3.2.6'
make: *** [default] Error 2

Anyone care to help out ? Exercise is due tomorrow :/
 
Old 10-05-2012, 06:25 PM   #2
sackboy
LQ Newbie
 
Registered: Sep 2012
Posts: 20

Rep: Reputation: Disabled
Have the appropriate linux headers installed?

linux-headers-$(uname -r)
 
  


Reply



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 problems BlindFate Slackware 16 03-28-2008 01:17 PM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
make and make install problems jabird Red Hat 1 10-11-2004 09:05 PM
make-problems stalemate Mandriva 10 09-20-2003 10:49 AM
make problems jayakrishnan Linux - General 1 09-13-2003 05:13 AM

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

All times are GMT -5. The time now is 09:25 AM.

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