On Wed, 22 Jun 2011, Mike Frysinger wrote:

> On Tuesday, June 21, 2011 23:32:59 Mike Frysinger wrote:
>> i dont like having to hand maintain lists.  so this autogenerates
>> cmd_list.h based on the cmd_*.c files.
>
> ive merged this now


After updating, I got a build error related to this:

gmake[3]: Entering directory 
`/home/tell/proj/jtag/urjtag/git/urjtag/urjtag/src/cmd'
   CC     cmd_frequency.lo
In file included from cmd.h:55:0,
                  from cmd_frequency.c:35:
cmd_list.h:41:32: fatal error: generated_cmd_list.h: No such file or directory
compilation terminated.

same after doing "make maintainer-clean; ./autogen.sh"

At first src/cmd/Makefile[.am] looks reasonable, 
and I can work around by doing a manual
"make -C src/cmd generated_cmd_list.h"


Slightly odd is that doing a "gmake -n cmd.h" prints the commands to build 
generated_cmd_list.h:

$ gmake -n cmd_list.h
echo "  GEN   " generated_cmd_list.h;set -e; \
cmds=`/bin/sed -n '/^const urj_cmd_t urj_cmd_/{s:.*urj_cmd_::;s: =.*::;p}' 
cmd_frequency.c cmd_cable.c cmd_reset.c cmd_discovery.c cmd_idcode.c 
cmd_detect.c cmd_detectflash.c cmd_help.c cmd_quit.c cmd_scan.c 
cmd_signal.c cmd_salias.c cmd_bit.c cmd_register.c cmd_initbus.c 
cmd_print.c cmd_part.c cmd_bus.c cmd_instruction.c cmd_shift.c cmd_dr.c 
cmd_get.c cmd_test.c cmd_debug.c cmd_shell.c cmd_set.c cmd_endian.c 
cmd_peekpoke.c cmd_pod.c cmd_readmem.c cmd_writemem.c cmd_flashmem.c 
cmd_eraseflash.c cmd_include.c cmd_addpart.c cmd_cmd.c cmd_usleep.c 
cmd_bfin.c cmd_pld.c cmd_svf.c cmd_bsdl.c`; \
for c in $cmds ; do \
         printf '#ifndef URJ_CMD_SKIP_%s\n_URJ_CMD(%s)\n#endif\n' $c $c; \
done > generated_cmd_list.h.tmp; \
cmp -s generated_cmd_list.h generated_cmd_list.h.tmp && rm -f 
generated_cmd_list.h.tmp || mv generated_cmd_list.h.tmp 
generated_cmd_list.h


I'm not sure this is quite right in Makefile.am:

cmd_list.h: generated_cmd_list.h
generated_cmd_list.h: $(all_cmd_files)

cmd_list.h is not a generated file that depends on generated_cmd_list.h,
cmd_list.h is simply a source file that includes a generated file when 
compiled.
Should generated_cmd_list.h be listed in libcmd_la_SOURCES ?


Steve




------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to