Re: [PATCH] header install: cosmetic cleanups to kbuildinfrastructure

From: David Woodhouse
Date: Sun Jun 11 2006 - 08:47:37 EST


On Sun, 2006-06-11 at 14:10 +0200, Sam Ravnborg wrote:
> -headers_install: include/linux/version.h
> +headers_install: prepare

That breaks cross-export of headers when we don't have a cross-compiler.

I care about this case because it's how we do glibc-kernheaders for
Fedora at the moment -- we build a tarball containing _all_ the headers,
and that tarball is used as source for a separate glibc-kernheaders
package, after reviewing the changes in it.

for a in x86_64 s390 ia64 powerpc sparc64; do
make ARCH=$a INSTALL_HDR_PATH=/tmp/fish/$a headers_install
done
cd /tmp/fish
mv usr usr.$$
mv x86_64 usr
mv usr/include/asm usr/include/asm-bix86
mv sparc64/include/asm usr/include/asm-bisparc
mv sparc64/include/asm-sparc{,64} usr/include
for a in s390 ia64 powerpc; do
mv -v $a/include/asm usr/include/asm-$a
rm -rf $a
done


--
dwmw2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/