From a89ef6b8379f8bb376bba303d72c8260ba3ecc25 Mon Sep 17 00:00:00 2001 From: Jiri Gaisler <[email protected]> Date: Fri, 25 Sep 2026 09:50:31 +0200 Subject: [PATCH] src/cmd: allow generated_cmd_list.h to be built with VPATH
--- urjtag/ChangeLog | 3 +++ urjtag/src/cmd/Makefile.am | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 89c85216..49e43eb9 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,6 @@ +2026-09-25 Jiri Gaisler <[email protected]> + * src/cmd: allow generated_cmd_list.h to be built with VPATH + 2026-09-23 Jiri Gaisler <[email protected]> * src/pld: Support for Xilinx Artix-7 XC7A100T diff --git a/urjtag/src/cmd/Makefile.am b/urjtag/src/cmd/Makefile.am index c35483eb..fd22125b 100644 --- a/urjtag/src/cmd/Makefile.am +++ b/urjtag/src/cmd/Makefile.am @@ -95,10 +95,13 @@ all_cmd_files = \ cmd_stapl.c \ cmd_svf.c +# need full path for sed +all_cmd_files_path = $(all_cmd_files:%.c=$(srcdir)/%.c) + generated_cmd_list.h: generated_cmd_list.h.stamp ; @true generated_cmd_list.h.stamp: $(all_cmd_files) $(AM_V_GEN)set -e; \ - cmds=`$(SED) -n '/^const urj_cmd_t urj_cmd_/{s:.*urj_cmd_::;s: =.*::;p;}' $(all_cmd_files)`; \ + cmds=`$(SED) -n '/^const urj_cmd_t urj_cmd_/{s:.*urj_cmd_::;s: =.*::;p;}' $(all_cmd_files_path)`; \ 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; \ -- 2.34.1
_______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
