From: Darcy Watkins <dwatkins@tranzeo.com>
To: paul@mad-scientist.us
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: 2.6.25: include/asm-ppc vs. include/asm-powerpc
Date: Thu, 28 Aug 2008 06:56:44 -0700 [thread overview]
Message-ID: <1219931804.21952.15.camel@localhost> (raw)
In-Reply-To: <1219928864.16802.69.camel@homebase.localnet>
Hi Paul,
A hack we did when building a ported WiMax driver against 2.6.19 was to
merge the two asm-p.*pc directories.
Below is a snippet from one of our build scripts that does this.
Assuming KERNEL_SRC_PATH is set to point to your kernel source...
#------------------
if [ ! -d $KERNEL_SRC_PATH/include/asm-ppc-merged ]; then
echo "Creating a merged include/asm for arch/ppc and arch/powerpc"
mkdir $KERNEL_SRC_PATH/include/asm-ppc-merged
cp -r $KERNEL_SRC_PATH/include/asm-powerpc/* $KERNEL_SRC_PATH/include/asm-ppc-merged
cp -r $KERNEL_SRC_PATH/include/asm-ppc/* $KERNEL_SRC_PATH/include/asm-ppc-merged
fi
echo "Symlinking the merged include/asm"
cd $KERNEL_SRC_PATH/include
rm asm
ln -s asm-ppc-merged asm
#------------------
Based on this order, files from arch/ppc win but missing files will come
from arch/powerpc.
You could try it out. Mileage may vary, especially newer than 2.6.23
since there may be device tree dependent stuff that gets into the merged
directory. We stopped using this hack for kernel 2.6.23 and newer since
we migrated to arch/powerpc for 2.6.23 and later (presently using
2.6.25) so I really don't know whether or not it will work for you.
If you use the symlinked shadow source tree facility of the Xenomai
build with your kernel, then use "-rs" instead of "-r" in the "cp"'s
above. Otherwise just use "-r" as shown above.
Regards,
Darcy
On Thu, 2008-08-28 at 06:07 -0700, Paul Smith wrote:
--snip!--
> In general it seems like lots of headers that used to be in both asm
> directories now appear in only asm-powerpc; I don't really see how
> this
> is supposed to work. Any tips on this would be most welcome.
--snip!--
--
Regards,
Darcy
--------------
Darcy L. Watkins - Senior Software Developer
Tranzeo Wireless Technologies, Inc.
19273 Fraser Way, Pitt Meadows, BC, Canada V3Y 2V4
T:604-460-6002 ext:410
http://www.tranzeo.com
prev parent reply other threads:[~2008-08-28 13:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 13:07 2.6.25: include/asm-ppc vs. include/asm-powerpc Paul Smith
2008-08-28 13:53 ` Arnd Bergmann
2008-08-28 14:30 ` Paul Smith
2008-08-28 14:38 ` Josh Boyer
2008-08-28 14:42 ` Arnd Bergmann
2008-08-28 16:01 ` Paul Smith
2008-08-28 18:07 ` Paul Smith
2008-08-28 14:48 ` Roland Dreier
2008-08-28 13:56 ` Darcy Watkins [this message]
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=1219931804.21952.15.camel@localhost \
--to=dwatkins@tranzeo.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=paul@mad-scientist.us \
/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).