From: george anzinger <george@mvista.com>
To: Andrew Morton <akpm@zip.com.au>,
kbuild-devel@lists.sourceforge.net, mec@shout.net,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] asm-generic magic
Date: Mon, 05 May 2003 23:41:40 -0700 [thread overview]
Message-ID: <3EB75924.1080304@mvista.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 883 bytes --]
The attached patch changes topdir/Makefile to make the asm-generic
stuff to work the way I assumed it was supposed to work. :)
That is, if the file exists in .../include/asm/ use that one, if not
and it exist in .../include/asm-generic/ use the generic one. This is
compatable with current conventions but also allows asm files that do
nothing but include the asm-generic file with the same name to go
away. The "magic" is to supply both include and include/asm-generic
to CPP. This causes it, when looking for <asm/foo.h> to look first
in ...include/asm/ and then in .../include/asm-generic/asm. To make
the ladder work we put a link (called asm) in asm-generic to point to ".".
Commits?
--
George Anzinger george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml
[-- Attachment #2: asm-generic.patch --]
[-- Type: text/plain, Size: 1096 bytes --]
--- linux-2.5.69-wq/Makefile~ 2003-05-05 15:33:30.000000000 -0700
+++ linux/Makefile 2003-05-05 18:00:42.000000000 -0700
@@ -181,7 +181,7 @@
NOSTDINC_FLAGS = -nostdinc -iwithprefix include
-CPPFLAGS := -D__KERNEL__ -Iinclude
+CPPFLAGS := -D__KERNEL__ -Iinclude -Iinclude/generic-asm
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
-fno-strict-aliasing -fno-common
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
@@ -403,7 +403,7 @@
# module versions are listed in "prepare"
.PHONY: prepare
-prepare: include/linux/version.h include/asm include/config/MARKER
+prepare: include/linux/version.h include/asm include/config/MARKER include/asm-generic/asm
ifdef KBUILD_MODULES
ifeq ($(origin SUBDIRS),file)
$(Q)rm -rf $(MODVERDIR)
@@ -453,6 +453,10 @@
@echo ' Making asm->asm-$(ARCH) symlink'
@ln -s asm-$(ARCH) $@
+include/asm-generic/asm:
+ @echo ' Making asm-generic/asm->. symlink'
+ @ln -s . $@
+
# Split autoconf.h into include/linux/config/*
include/config/MARKER: scripts/split-include include/linux/autoconf.h
child process exited abnormally
next reply other threads:[~2003-05-06 6:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-06 6:41 george anzinger [this message]
2003-05-06 7:26 ` [PATCH] asm-generic magic David S. Miller
2003-05-06 20:15 ` george anzinger
2003-05-07 2:55 ` David S. Miller
2003-05-07 9:35 ` george anzinger
2003-05-07 14:30 ` Sam Ravnborg
2003-05-07 15:08 ` george anzinger
2003-05-07 14:06 ` David S. Miller
2003-05-07 15:33 ` george anzinger
2003-05-07 14:31 ` David S. Miller
2003-05-07 15:24 ` Kbuild newbie/promotional docs needed John van V.
2003-05-07 20:24 ` 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=3EB75924.1080304@mvista.com \
--to=george@mvista.com \
--cc=akpm@zip.com.au \
--cc=kbuild-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mec@shout.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.