|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Mikkle V. Sokolov 2:5030/1069.1069 05 Nov 2003 01:48:48 To : All Subject : myson driver my & 5.1 --------------------------------------------------------------------------------
Попало мне тут чудо от малазийского myson на чипе MTD803, нашел их сайт (на
freebsd.org ссылки нет), скачал тарболльчик. скопировал if_my.c и if_myreg.h в
/usr/src/sys/pci, в /usr/src/sys/conf/files в раздельчик, где pci/ добавил
pci/if_my.c optional (или как там оно в документации сказано). Добавил в ядро
device my. В результате make выпадает вот так:
MVS# make
"Makefile", line 1505: warning: duplicate script for target "if_my.o" ignored
cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../..
-I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter
-D_KERNEL -include opt_global.h -fno-common -mno-align-long-strings
-mpreferred-stack-boundary=2 -ffreestanding -Werror ../../../dev/my/if_my.c
touch hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../../conf/newvers.sh NNL
cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../..
-I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter
-D_KERNEL -include opt_global.h -fno-common -mno-align-long-strings
-mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c
linking kernel
if_my.o(.bss+0x0): multiple definition of `my_info_tmp'
if_my.o(.bss+0x0): first defined here
*** Error code 1
Stop in /usr/src/sys/i386/compile/NNL.
В Makefile есть такие строки:
487: if_my.o: $S/dev/my/if_my.c
${NORMAL_C}
1504: if_my.o: $S/pci/if_my.c
${NORMAL_C}
Вопрос. что это за дублирующийся сценарий, почему он взялся и как все это дело
таки собрать?
See you in Never-Never Land, All.
--- Don't be afraid to try compiling the kernel. It's fun and profitable.
* Origin: Never-Never Land (2:5030/1069.1069)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/61463fa81ed1.html, оценка из 5, голосов 10
|