On Tuesday 14 Apr 2009 7:22:38 am Dick Hollenbeck wrote:
> Index: src/helper/CMakeLists.txt
> ===================================================================
> --- src/helper/CMakeLists.txt   (revision 0)
> +++ src/helper/CMakeLists.txt   (revision 0)
> @@ -0,0 +1,27 @@
> +# Copyright 2009  SoftPLC Corporation  http://softplc.com
> +# Dick Hollenbeck <d...@softplc.com>
> +# License: GPL v2
> +
> +
> +set( HELPER_SRCS
> +   binarybuffer.c
> +   command.c
> +   configuration.c
> +   fileio.c
> +   ioutil.c
> +   log.c
> +   replacements.c
> +   startup_tcl.c
> +   time_support.c
> +)

startup_tcl.c is a build time generated file and hence will not work as above. 
Over here you can add the lines:

add_executable(bin2char bin2char.c)
add_custom_command(
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/startup_tcl.c
    COMMAND bin2char startup_tcl < ${CMAKE_CURRENT_SOURCE_DIR}/startup.tcl > 
${CMAKE_CURRENT_BINARY_DIR}/startup_tcl.c
    DEPENDS bin2char ${CMAKE_CURRENT_SOURCE_DIR}/startup.tcl
)

This should generate startup_tcl.c at configure time and remove it with "make 
clean". I am not sure the above 
method redirecting standard output of bin2char will work on windows (without 
cygwin).

> +if(NOT ECOSBOARD)
> +
> +    # omit these srcs if ECOSBOARD
> +    set( HELPER_SRCS ${HELPER_SRCS} options.c jim.c jim-eventloop.c )
> +
> +endif(NOT ECOSBOARD)

I think these should be "BUILD_ECOSBOARD" instead of just "ECOSBOARD". Looking 
at the makefile.am here it 
seems that the following code is needed in addition:

if(BUILD_IOUTIL)

    # add these srcs if BUILD_IOUTIL
    set( HELPER_SRCS ${HELPER_SRCS} ioutil.c )

endif(BUILD_IOUTIL)

I could provide patches for all of this but im using git-svn so the diff 
formatting will be different from yours 
(without the "Property changes on ...")
-- 
Cheers!
Kishore
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to