mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brice Goglin <bgoglin@ens-lyon.fr>
To: linux-kernel@vger.kernel.org
Cc: john stultz <johnstul@us.ibm.com>
Subject: Dealing with 2.5.x subarch headers
Date: Wed, 15 Jan 2003 11:48:14 +0100	[thread overview]
Message-ID: <20030115104814.GA4734@ens-lyon.fr> (raw)
In-Reply-To: <1042139980.1050.182.camel@w-jstultz2.beaverton.ibm.com>

Hi,

I am working on a module for 2.5.x. My module requires
something like irq_vectors.h.
Due do previous messages about this and John Stultz'
subarch cleanup patch (merged in 2.5.53), I finally
added "-Iinclude/asm/mach-default" to gcc options.

Talking to John about a way to find an easy solution
for module developers to get the good -I options, he
proposed to add something like this to the Makefile.

#Subarch selection
mflags-$(CONFIG_X86_VOYAGER)    := -Iinclude/asm-i386/mach-voyager
mflags-$(CONFIG_X86_VISWS)      := -Iinclude/asm-i386/mach-visws
mflags-$(CONFIG_X86_NUMAQ)      := -Iinclude/asm-i386/mach-numaq
# default subarch .h files
mflags-y += -Iinclude/asm-i386/mach-default
CFLAGS += $(mflags-y)
AFLAGS += $(mflags-y)

I was wondering if a easiest way could be found.
Forcing module developers to add something like this looks
to much complicated for me.

The way the "asm" symbolic link hides kernel arch config
looks pretty.
Maybe we could hide subarch config with a symbolic link
pointing to the good asm/mach-xyz.

But the current i386 subarch organization requires to include
both the generic asm-i386/mach-default and a specific
asm-i386/mach-xyz (voyager or ...).

A solution could be to create a symbolic link "mach-specific"
pointing the specific "mach-xyz" and then include both
asm/mach-default and asm/mach-specific.
(Yes, it would require a few updates in all other archs
which do not have any subarch).

Any simple idea ?
Maybe the subarch organization needs some more cleanups ?

Regards

Brice Goglin
==============================================
Ph.D Student
Laboratoire de l'Informatique du Parallélisme
ENS Lyon - France

       reply	other threads:[~2003-01-15 10:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030109163208.GG30490@ens-lyon.fr>
     [not found] ` <1042139980.1050.182.camel@w-jstultz2.beaverton.ibm.com>
2003-01-15 10:48   ` Brice Goglin [this message]
2003-01-15 16:15     ` Sam Ravnborg

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=20030115104814.GA4734@ens-lyon.fr \
    --to=bgoglin@ens-lyon.fr \
    --cc=johnstul@us.ibm.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

all inboxes | Powered by JetHome®