Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218984 - installkernel not compatible with make install for ppc[64]
Summary: installkernel not compatible with make install for ppc[64]
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: High enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-23 06:04 UTC by Garrett Cooper
Modified: 2008-04-24 19:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix for install.sh kernel (install_sh.ppc.patch,653 bytes, patch)
2008-04-23 06:07 UTC, Garrett Cooper
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Garrett Cooper 2008-04-23 06:04:11 UTC
The arguments going into installkernel from make install for PPC are:

sh -x /usr/src/linux-2.6.24.4/arch/powerpc/boot/install.sh "2.6.24.4" vmlinux System.map "/boot" arch/powerpc/boot/zImage.chrp

instead of something like (from x86):

exec /usr/src/linux-2.6.24.4/arch/x86/boot/install.sh 2.6.24.4 arch/x86/boot/bzImage System.map "/boot"

I read the directions and realized that make install is broken on ppc[64]. I'm going to include minimal changes for fixing this issue.

Reproducible: Always

Steps to Reproduce:
(cd /usr/src/linux && make && make install)
Actual Results:  
A make install error :(.

Expected Results:  
An [semi-vanilla named] installed kernel and crew :).

livecd linux # emerge -qp gentoo-sources vanilla-sources
[ebuild   R   ] sys-kernel/gentoo-sources-2.6.24-r3  
[ebuild   R   ] sys-kernel/vanilla-sources-2.6.24.4
livecd linux # emerge --info          
Portage 2.1.4.4 (default-linux/ppc/ppc64/2007.0/32bit-userland/970, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8-G5 ppc64)
=================================================================
System uname: 2.6.23-gentoo-r8-G5 ppc64 PPC970, altivec supported
Timestamp of tree: Tue, 22 Apr 2008 07:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.6.3, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl altivec berkdb cli cracklib crypt dri fortran gcc64 gdbm gpm iconv ipv6 mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppc python session spl ssl unicode zlib" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="dummy fbdev mach64 mga nv r128 radeon sisusb v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Garrett Cooper 2008-04-23 06:07:24 UTC
Created attachment 150679 [details, diff]
Fix for install.sh kernel

Intended to fix install.sh for PPC[64].
Comment 2 Christian Heim (RETIRED) gentoo-dev 2008-04-23 08:40:45 UTC
We don't patch vanilla-sources. Either the included target is gentoo-sources, or push it upstream.
Comment 3 Garrett Cooper 2008-04-24 19:31:41 UTC
I'll bring this up with the kernel.org guys then..