Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 102911 Details for
Bug 64009
kernel-2 eclass could incorporate space saving USE flag for specific arch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Removes unneeded architecture specific code from kernel
kernel-2.eclass-remove_other_archs.diff (text/plain), 2.02 KB, created by
Tom Fredrik Blenning Klaussen
on 2006-11-28 05:52:05 UTC
(
hide
)
Description:
Removes unneeded architecture specific code from kernel
Filename:
MIME Type:
Creator:
Tom Fredrik Blenning Klaussen
Created:
2006-11-28 05:52:05 UTC
Size:
2.02 KB
patch
obsolete
>--- /usr/portage/eclass/kernel-2.eclass 2006-10-26 09:05:59.000000000 +0200 >+++ kernel-2.eclass 2006-11-28 14:02:50.000000000 +0100 >@@ -294,7 +294,7 @@ > > SLOT="${PVR}" > DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" >- IUSE="symlink build" >+ IUSE="symlink build no_other_archs" > elif [[ ${ETYPE} == headers ]]; then > DESCRIPTION="Linux system headers" > >@@ -991,6 +991,54 @@ > "$@" > } > >+#This function removes the arch specific stuff >+remove_other_archs() { >+ >+ #The arch should include all the available architectures >+ cd ${S}/arch >+ >+ #The sources are not completely separated, so we would need to make >+ case "${ARCH}" in >+ "x86") >+ KEEP="i386 x86_64" >+ ;; >+ *) >+ ;; >+ esac >+ >+ #If no KEEP is defined, no one has taken time to consider what to remove. >+ #Better safe than sorry, do nothing >+ if [ -n "${KEEP}" ] >+ then >+ >+ #Double loop, remove every directory, except if they are in $KEEP >+ for dir in * >+ do >+ #Check if we have this directory in $KEEP >+ for keep in ${KEEP} >+ do >+ k=1 >+ if [ "${dir}" = "${keep}" ] >+ then >+ k=0 >+ break >+ fi >+ done >+ >+ #If not in $KEEP, remove >+ if [ ${k} -ne 0 ] >+ then >+ #We remove 'arch/*', 'include/asm-*' >+ #and relevant 'Documentation' >+ rm -rf ${dir} >+ rm -rf ../include/asm-${dir} >+ rm -rf ../Documentation/${dir} >+ fi >+ done >+ fi >+} >+ >+ > # common functions > #============================================================== > kernel-2_src_unpack() { >@@ -1023,6 +1071,8 @@ > kernel_is 2 4 && unpack_2_4 > kernel_is 2 6 && unpack_2_6 > fi >+ >+ use no_other_archs && remove_other_archs > } > > kernel-2_src_compile() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 64009
: 102911 |
102917