public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Carlos Munoz <carlos@kenati.com>
To: linux-kernel@vger.kernel.org
Subject: Can't build loadable module for 2.6.kernel
Date: Mon, 12 Dec 2005 11:52:24 -0800	[thread overview]
Message-ID: <439DD4F8.3040709@kenati.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

Hi all,

I hope this is the right forum for this question.

I'm trying to build a loadable module for a telephony card that includes 
several files. Some of the files are source files (written by me) and 
some are object files (provided by the chip vendor). I'm unable to link 
the vendor object files with the target.

Make displays the following error:
make[4]: *** No rule to make target 
`drivers/telephony/mrvphone/apicnt.s', needed by 
`drivers/telephony/mrvphone/apicnt.o'.  Stop.

The makefile has the following rule to build apicnt.o:
apicnt.o: apicnt.o.shipped
    cp apicnt.o.shipped apicnt.o

I have also included the whole Makefile with this email.

Thanks in advance,


Carlos Munoz


[-- Attachment #2: Makefile --]
[-- Type: text/plain, Size: 832 bytes --]

#
# Makefile for the phone_mrvl driver loadable module
#
TARGET = phone_mrvl.o

obj-$(CONFIG_PHONE_MARVELL) = phone_mrvl.o

ifeq ($(CONFIG_PHONE_LEGERITY),y)
phone_mrvl-objs = mrvphone.o slic.o legerity.o vp_hal.o sys_service.o apicnt.o apiinit.o apiquery.o vp_api.o vp_api_common.o mvutils.o
endif

ifeq ($(CONFIG_PHONE_PROSLIC),y)
phone_mrvl-objs = mrvphone.o proslic.o
endif

CFLAGS += -D__linux__
EXTRA_CFLAGS += -Idrivers/telephony/mrvphone
EXTRA_CFLAGS += -DNDEBUG -Dlinux -D__linux__ -Dunix -DEMBED -DLINUX -DHOST_LE

ifeq ($(CONFIG_PHONE_LEGERITY),y)
EXTRA_CFLAGS += -D__LEGERITY__
endif
ifeq ($(CONFIG_PHONE_PROSLIC),y)
EXTRA_CFLAGS += -D__PROSLIC__
endif

all: $(TARGET)

$(TARGET): $(OBJS)
	$(LD) -r $(OBJS) -o $(TARGET)

clean:
	-rm -f $(TARGET) *.elf *.gdb *.o

apicnt.o: apicnt.o.shipped
	cp apicnt.o.shipped apicnt.o

             reply	other threads:[~2005-12-12 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12 19:52 Carlos Munoz [this message]
2005-12-12 20:50 ` Can't build loadable module for 2.6.kernel Sam Ravnborg
2005-12-12 23:57   ` Carlos Munoz
2005-12-13  8:05 ` Arjan van de Ven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=439DD4F8.3040709@kenati.com \
    --to=carlos@kenati.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox