linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kronos <kronos@people.it>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: kbuild
Date: Fri, 24 Sep 2004 19:03:15 +0200	[thread overview]
Message-ID: <20040924170315.GA11905@dreamland.darkstar.lan> (raw)
In-Reply-To: <4152FE4A.732A42BB@orpatec.ch>

Il Thu, Sep 23, 2004 at 06:48:10PM +0200, Otto Wyss ha scritto: 
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> IMO kbuild makes it easy to test new framebuffer drivers by anyone. So
> I've started to document the tester's part on the web
> "http://linux-fvdev.sourceforge.net/index.php?page=kbuilddocs.html". Now
> it would be nice if someone could create a correct Makefile for a
> framebuffer (preferable radeonfb) and send it to me, so I can put it
> into the linux-fbdev CVS.

It's very simple, a skeleton would be like that:

obj-m += myfb.o

If the object is composed by 2 or more files:

obj-m += myfb.o
myfb-objs := file1.o file2.o file3.o

Note that this will build a module regardless of what the user has in his
.config file. For drivers that has suboptions (like I2C bus for
radeonfb) you can either:
- rely on the .config from user. In this case you can just copy and
  adapt a bit the Makefile from the kernel tree. For radeonfb:

obj-m += radeonfb.o

radeonfb-y                              := radeon_base.o radeon_pm.o radeon_monitor.o radeon_accel.o
radeonfb-$(CONFIG_FB_RADEON_I2C)        += radeon_i2c.o
radeonfb-objs                           := $(radeonfb-y)

- force some options. In this case you may have to define some symbols
  manualy. Like this:

obj-m += radeonfb.o

# Force CONFIG_FB_RADEON_I2C
EXTRA_CFLAGS := -DCONFIG_FB_RADEON_I2C

radeonfb-objs   := radeon_base.o radeon_pm.o radeon_monitor.o radeon_accel.o radeon_i2c.o

Also note that some driver may need some header not present in the build
directory nor in the the standard include path. radeonfb, for example,
include "../edid.h".

HTH,
Luca
-- 
Home: http://kronoz.cjb.net
Se il  destino di un uomo  e` annegare, anneghera` anche  in un bicchier
d'acqua.
Proverbio yddish


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

  reply	other threads:[~2004-09-24 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23 16:48 kbuild Otto Wyss
2004-09-24 17:03 ` Kronos [this message]
2004-09-26  6:52   ` kbuild Otto Wyss

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=20040924170315.GA11905@dreamland.darkstar.lan \
    --to=kronos@people.it \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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;
as well as URLs for NNTP newsgroup(s).