LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2012, 12:47 PM   #1
netstv
Member
 
Registered: May 2004
Location: Martinez, CA
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
Module *.o and others stored in another directory


I have an external module directory (3rd party module driver).

I build it easy enough but the *.mod.c, modules.order, *.ko and the like are all stored in tree.

I tried the O= parameter but that didn't work.

I tried all sorts of other things that didn't work.

Here is the makefile that I have in the source directory.


EXTRA_CFLAGS += -Wall
EXTRA_LDFLAGS := -s

obj-m := $(OUTPUT_DIR)/test.o
$(OUTPUT_DIR)/test-objs := $(OUTPUT_DIR)/test.o

.PHONY: all
all: ${LINUX_OUTPUT_DIR}
@$(MAKE) -C $(LINUX_OUTPUT_DIR) ARCH=$(ARCH) M=${CURDIR} O=$(OUTPUT_DIR) CROSS_COMPILE=$(CROSS_COMPILE) modules


And the object files are stashed in the CURDIR NOT in the OUTPUT_DIR.

What am I missing??
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab script won't run in stored directory crypted Linux - General 2 09-27-2011 01:42 AM
Which directory are mpc, gmp & mpfr stored in after extraction? sophanox Linux - Newbie 2 02-20-2011 06:14 PM
[SOLVED] OpenLDAP : Where is directory stored on hard disk mattseanbachman Linux - Server 2 02-25-2010 08:38 PM
Guarddog - rc.firewall not stored in rc.d directory studioq Linux - Newbie 5 10-05-2006 09:03 PM
getting current directory where classes are stored linuxmandrake Programming 2 04-14-2006 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:09 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