The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

linux kernel question: are smp kernels 64 bit? by cokish2007-07-03 13:20:10
  smp and 64-bit are independent. by sgrunt2007-07-03 13:23:46
    i686 by cokish2007-07-03 13:54:50
      It's in... by Sharku2007-07-03 14:03:21
        Is it possibly sources-dependant? by romandas2007-07-03 14:19:35
          I think gentoo-sources do that. by Sharku2007-07-03 14:39:23
            Aha! Found it. by Sharku 2007-07-03 14:59:11
It's in /usr/portage/eclass/kernel-2.eclass

detect_arch() {
# This function sets ARCH_URI and ARCH_PATCH
# with the neccessary info for the arch sepecific compatibility
# patchsets.

local ALL_ARCH LOOP_ARCH COMPAT_URI i

# COMPAT_URI is the contents of ${ARCH}_URI
# ARCH_URI is the URI for all the ${ARCH}_URI patches
# ARCH_PATCH is ARCH_URI broken into files for UNIPATCH

ARCH_URI=""
ARCH_PATCH=""
ALL_ARCH="ALPHA AMD64 ARM HPPA IA64 M68K MIPS PPC PPC64 S390 SH SPARC X86"

for LOOP_ARCH in ${ALL_ARCH}; do
COMPAT_URI="${LOOP_ARCH}_URI"
COMPAT_URI="${!COMPAT_URI}"

[[ -n ${COMPAT_URI} ]] && \
ARCH_URI="${ARCH_URI} $(echo ${LOOP_ARCH} | tr '[:upper:]' '[:lower:]')? ( ${COMPAT_URI} )"

if [[ ${LOOP_ARCH} == "$(echo $(tc-arch-kernel) | tr '[:lower:]' '[:upper:]')" ]]; then
for i in ${COMPAT_URI}; do
ARCH_PATCH="${ARCH_PATCH} ${DISTDIR}/${i/*\//}"
done
fi
done
}

What I can make of this is that the function loops over all of the possible archs until it finds your specific arch as set in make.defaults. It then downloads and applies different patchsets according to what it finds, so that would explain why you only have the 64 bit options, whereas I (using vanilla) have a whole lot more.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)