[d-kernel] q: kernel-source-2.6.x howto
Michael Shigorin
mike на osdn.org.ua
Пн Дек 21 20:49:35 UTC 2009
On Sat, Dec 19, 2009 at 11:40:47PM +0200, I wrote:
> Кто возьмётся документировать создание новых kernel-source-2.6.x?
Понял, приступаю.
> Ну или хотя бы подтолкнуть насчёт того, fix-core--init
> и fix-core-syslog туда должны входить или куда.
Судя по имеющимся -- не должны.
PS: вдруг кто пояснит -- с этим самосборным 2.6.32 повзрывалась
сборка модулей (как минимум nvidia, fglrx, subfs) таким образом:
make -f scripts/Makefile.build obj=/usr/src/RPM/BUILD/kernel-source-subfs-0.9
gcc-4.4
-Wp,-MD,/usr/src/RPM/BUILD/kernel-source-subfs-0.9/.subfs.o.d
-nostdinc -isystem /usr/lib/gcc/i586-alt-linux/4.4.2/include
-Iinclude
-I/usr/src/linux-2.6.32-lame-noob-alt1/arch/x86/include
-include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Werror-implicit-function-declaration
-Wno-format-security -fno-delete-null-pointer-checks -O2 -m32
-msoft-float -mregparm=3 -freg-struct-return
-mpreferred-stack-boundary=2 -march=i586 -mtune=generic
-Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2
-mno-3dnow -Wframe-larger-than=1024 -fno-stack-protector
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-Wdeclaration-after-statement -Wno-pointer-sign
-fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack
-DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(subfs)"
-D"KBUILD_MODNAME=KBUILD_STR(subfs)" -c -o
/usr/src/RPM/BUILD/kernel-source-subfs-0.9/.tmp_subfs.o
/usr/src/RPM/BUILD/kernel-source-subfs-0.9/subfs.c
In file included from include/linux/prefetch.h:13,
from include/linux/list.h:6,
from include/linux/module.h:9,
from /usr/src/RPM/BUILD/kernel-source-subfs-0.9/subfs.c:11:
include/linux/types.h:4:23: error: asm/types.h: No such file or directory
In file included from include/linux/types.h:14,
from include/linux/prefetch.h:13,
from include/linux/list.h:6,
from include/linux/module.h:9,
from /usr/src/RPM/BUILD/kernel-source-subfs-0.9/subfs.c:11:
include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or directory
In file included from include/linux/prefetch.h:13,
from include/linux/list.h:6,
from include/linux/module.h:9,
from /usr/src/RPM/BUILD/kernel-source-subfs-0.9/subfs.c:11:
include/linux/types.h:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__kernel_dev_t'
include/linux/types.h:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dev_t'
include/linux/types.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ino_t'
include/linux/types.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mode_t'
[...]
--
---- WBR, Michael Shigorin <mike на altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
Подробная информация о списке рассылки devel-kernel