This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: MIPS: getpagesize, PAGE_SHIFT, and PAGE_SIZE
"Maciej W. Rozycki" <macro@linux-mips.org> writes:
> At the point I was fiddling with this code it did not rely on the kernel
> macros; in fact I built the library with the macros deliberately
> undefined, i.e. using unconfigured kernel headers by means of a recipe
> like this:
>
> $ make -C linux distclean include/linux/version.h
> $ ln -s asm-mips linux/include/asm
> $ echo "#define AUTOCONF_INCLUDED" > linux/include/linux/autoconf.h
>
> during the build and then installed in $includedir for further use -- that
> leaves all the kernel's CONFIG_PAGE_SIZE_* macros undefined and hence
> there's no PAGE_SHIFT definition to catch buggy software.
Noadays the correct way to install the kernel headers is to run "make
headers_install" and use the cleaned up headers it generates.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."