[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Rebuilding the linux kernel quickly


I am starring at the documentation for rebuilding the Debian kernel.
I'd like to test a change in a non-module section of the kernel code
(CONFIG_FB_OF=y), to resolve #825840. So I thought I could simply
follows the steps from:


# apt-get install build-essential fakeroot
# apt-get build-dep linux
$ mkdir tmp && cd tmp
$ apt-get source linux-image-$(uname -r)
$ cd linux-*
$ fakeroot debian/rules source
$ fakeroot make -f debian/rules.gen binary-arch_powerpc_none_powerpc
Can't exec "-objcopy": No such file or directory at
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 243.
dh_strip: -objcopy --only-keep-debug --compress-debug-sections
failed to to execute: No such file or directory
debian/rules.real:194: recipe for target 'install-base' failed
make[2]: *** [install-base] Error 2
make[2]: Leaving directory '/home/mathieu/tmp/linux-4.5.4'
debian/rules.real:376: recipe for target
'install-image_powerpc_none_powerpc' failed
make[1]: *** [install-image_powerpc_none_powerpc] Error 2
make[1]: Leaving directory '/home/mathieu/tmp/linux-4.5.4'
debian/rules.gen:204: recipe for target
'binary-arch_powerpc_none_powerpc_real' failed
make: *** [binary-arch_powerpc_none_powerpc_real] Error 2

I can see objcopy right here:

mathieu@debian:~/tmp/linux-4.5.4$ ls -al /usr/bin/*objcopy
lrwxrwxrwx 1 root root     25 May 12 16:59 /usr/bin/objcopy ->
-rwxr-xr-x 1 root root 266200 May 12 16:59 /usr/bin/powerpc-linux-gnu-objcopy

And I am using:

mathieu@debian:~/tmp/linux-4.5.4$ uname -a
Linux debian 4.5.0-2-powerpc #1 Debian 4.5.4-1 (2016-05-16) ppc GNU/Linux

Does anyone know how to build only the powperpc flavor from a powerpc system ?

Thanks much.

Reply to: