error adding new drivers to an exist bsp
sun yongbing
bradon_syb at hotmail.com
Wed Dec 1 01:17:12 UTC 2004
hi,all
i want to add a device driver for my bsp and works that have been done
are :
1. i create a subdir named 'fb' under my bsp
dir(c/src/lib/libbsp/m68k/mcf5307).
2. In the subdir i write the source file fb.c and makefile.am (copied
from console.am, just modified "console" to "framebuffer" ).
3. i modified my bsp's configure.ac by adding 'fb/Makefile' to the
makefile list.
4. i modified my bsp's makefile.am by adding 'fb' to the subdir list.
5. i also modified wrapup/Makefile.am by adding the fb.pel to build lib.
then in my bsp dir i run '../../../../../../bootstrap -c', it is ok. But
when i run '../../../../../../bootstrap',error occurs and error
information:
./c/src/lib/libbsp
./c/src/lib/libbsp/m68k/mcf5307buaa
aclocal: couldn't open directory `../../../../../../aclocal
': No such file or directory
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./AUTHORS' not found
../../bsp.am:14: `bsplib_DATA' is used but `bsplibdir' is undefined
../../../../../../automake/compile.am:43: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:113: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:145: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:196: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:43: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:113: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:145: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:196: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
fb/Makefile.am:26: HAS_NETWORKING does not appear in AM_CONDITIONAL
../../../../../../automake/compile.am:43: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:113: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:145: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:196: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
ne2000/Makefile.am:26: HAS_NETWORKING does not appear in AM_CONDITIONAL
../../../../../../automake/compile.am:43: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:113: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:145: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:196: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:43: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:113: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:145: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:196: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
startup/Makefile.am:32: `bsplib_DATA' is used but `bsplibdir' is undefined
../../../../../../automake/compile.am:43: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:113: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:145: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
../../../../../../automake/compile.am:196: RTEMS_USE_GCC does not appear in
AM_CONDITIONAL
configure.ac:16: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:24: error: possibly undefined macro: AM_CONDITIONAL
i cann't find why and i really need suggestions.
thanks for any help!
BTW: the versions of autoconf and automake that i use are: autoconf
---2.57; automake---1.7.5
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
More information about the users
mailing list