[Comm] Перекомпиляция ядра

Shrek =?iso-8859-1?q?shrek_=CE=C1_progroup=2Eru?=
Пт Июн 27 23:28:24 MSD 2003


Makefile
---------------------------------------------------------
KERNELDIR = /usr/src/RPM/BUILD/linux-2.4.20
include $(KERNELDIR)/.config
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O2 -Wall
CC = gcc-2.96
ifdef CONFIG_SMP
   CFLAGS += -D__SMP__ -DSMP
endif
all: pwc.o
clean:
	rm -f *.o *~ core

pwc-uncompress.o: pwc-uncompress.c pwc-ioctl.h pwc_nala.h \
   pwc-uncompress.h pwc.h pwc_kiara.h pwc_timon.h
	$(CC) -c $(CFLAGS) pwc-uncompress.c

pwc-ctrl.o: pwc-ctrl.c pwc-ioctl.h pwc_nala.h \
   pwc-uncompress.h pwc.h pwc_kiara.h pwc_timon.h
	$(CC) -c $(CFLAGS) pwc-ctrl.c

pwc-if.o: pwc-if.c pwc-ioctl.h pwc_nala.h \
   pwc-uncompress.h pwc.h pwc_kiara.h pwc_timon.h
	$(CC) -c $(CFLAGS) pwc-if.c

pwc-misc.o: pwc-misc.c pwc-ioctl.h pwc_nala.h \
   pwc-uncompress.h pwc.h pwc_kiara.h pwc_timon.h
	$(CC) -c $(CFLAGS) pwc-misc.c

pwc.o: pwc-ctrl.o pwc-if.o pwc-misc.o pwc-uncompress.o
	$(LD) -r $^ -o $@
--------------------------------------------------------------------------------------

мммм... чё то не срослось

$ make
gcc-2.96 -c -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.20/include -O2 
-Wall pwc-ctrl.c
gcc-2.96 -c -D__KERNEL__ -DMODULE 
-I/usr/src/RPM/BUILD/linux-2.4.20/include -O2 -Wall pwc-if.c
pwc-if.c: In function `pwc_isoc_init':
pwc-if.c:850: warning: assignment from incompatible pointer type
gcc-2.96 -c -D__KERNEL__ -DMODULE 
-I/usr/src/RPM/BUILD/linux-2.4.20/include -O2 -Wall pwc-misc.c
gcc-2.96 -c -D__KERNEL__ -DMODULE 
-I/usr/src/RPM/BUILD/linux-2.4.20/include -O2 -Wall pwc-uncompress.c
pwc-uncompress.c:178: parse error before 
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
pwc-uncompress.c:178: warning: type defaults to `int' in declaration of 
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
pwc-uncompress.c:178: warning: data definition has no type or storage class
pwc-uncompress.c:179: parse error before 
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
pwc-uncompress.c:179: warning: type defaults to `int' in declaration of 
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
pwc-uncompress.c:179: warning: data definition has no type or storage class
pwc-uncompress.c:180: parse error before 
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
pwc-uncompress.c:180: warning: type defaults to `int' in declaration of 
`this_object_must_be_defined_as_export_objs_in_the_Makefile'
pwc-uncompress.c:180: warning: data definition has no type or storage class
make: *** [pwc-uncompress.o] Ошибка 1



Подробная информация о списке рассылки community