Browse Source

Move TCL script files -- Step 1 of 2:

- Move src/target/{interface,target,board,test}/ into src/tcl/
- Remove existing rules in src/Makefile.am and src/target/Makefile.am.
- Add Makefile.am handling of *.cfg and *.tcl files in top Makefile.am:
  - Add dist-hook to include such files under src/tcl in the distribution.
  - Add install-data-hook to install contents of '$(top_srcdir)/src/tcl/'.
  - Add uninstall-hook to remove the installed script files.
- Change paths to (un)install script files in '$(pkgdatadir)/scripts'.


git-svn-id: svn://svn.berlios.de/openocd/trunk@1918 b42882b7-edfa-0310-969c-e2dbd0fdcd60
tags/v0.2.0
zwelch 13 years ago
parent
commit
140d6c8e79
100 changed files with 24 additions and 29 deletions
  1. +23
    -0
      Makefile.am
  2. +1
    -0
      configure.in
  3. +0
    -20
      src/Makefile.am
  4. +0
    -9
      src/target/Makefile.am
  5. +0
    -0
      src/tcl/board/arm_evaluator7t.cfg
  6. +0
    -0
      src/tcl/board/at91rm9200-dk.cfg
  7. +0
    -0
      src/tcl/board/crossbow_tech_imote2.cfg
  8. +0
    -0
      src/tcl/board/digi_connectcore_wi-9c.cfg
  9. +0
    -0
      src/tcl/board/dm355evm.cfg
  10. +0
    -0
      src/tcl/board/eir.cfg
  11. +0
    -0
      src/tcl/board/hammer.cfg
  12. +0
    -0
      src/tcl/board/hitex_stm32-performancestick.cfg
  13. +0
    -0
      src/tcl/board/hitex_str9-comstick.cfg
  14. +0
    -0
      src/tcl/board/iar_str912_sk.cfg
  15. +0
    -0
      src/tcl/board/imx27ads.cfg
  16. +0
    -0
      src/tcl/board/imx27lnst.cfg
  17. +0
    -0
      src/tcl/board/imx31pdk.cfg
  18. +0
    -0
      src/tcl/board/keil_mcb2140.cfg
  19. +0
    -0
      src/tcl/board/linksys_nslu2.cfg
  20. +0
    -0
      src/tcl/board/logicpd_imx27.cfg
  21. +0
    -0
      src/tcl/board/olimex_LPC2378STK.cfg
  22. +0
    -0
      src/tcl/board/olimex_lpc_h2148.cfg
  23. +0
    -0
      src/tcl/board/olimex_sam7_ex256.cfg
  24. +0
    -0
      src/tcl/board/olimex_sam9_l9260.cfg
  25. +0
    -0
      src/tcl/board/olimex_stm32_h103.cfg
  26. +0
    -0
      src/tcl/board/pic-p32mx.cfg
  27. +0
    -0
      src/tcl/board/pxa255_sst.cfg
  28. +0
    -0
      src/tcl/board/sheevaplug.cfg
  29. +0
    -0
      src/tcl/board/stm3210e_eval.cfg
  30. +0
    -0
      src/tcl/board/stm32f10x_128k_eval.cfg
  31. +0
    -0
      src/tcl/board/str910-eval.cfg
  32. +0
    -0
      src/tcl/board/ti_beagleboard.cfg
  33. +0
    -0
      src/tcl/board/unknown-board-atmel-at91sam9260.cfg
  34. +0
    -0
      src/tcl/board/x300t.cfg
  35. +0
    -0
      src/tcl/board/zy1000.cfg
  36. +0
    -0
      src/tcl/interface/arm-jtag-ew.cfg
  37. +0
    -0
      src/tcl/interface/arm-usb-ocd.cfg
  38. +0
    -0
      src/tcl/interface/at91rm9200.cfg
  39. +0
    -0
      src/tcl/interface/axm0432.cfg
  40. +0
    -0
      src/tcl/interface/calao-usb-a9260-c01.cfg
  41. +0
    -0
      src/tcl/interface/calao-usb-a9260-c02.cfg
  42. +0
    -0
      src/tcl/interface/calao-usb-a9260.cfg
  43. +0
    -0
      src/tcl/interface/chameleon.cfg
  44. +0
    -0
      src/tcl/interface/dummy.cfg
  45. +0
    -0
      src/tcl/interface/flyswatter.cfg
  46. +0
    -0
      src/tcl/interface/hitex_str9-comstick.cfg
  47. +0
    -0
      src/tcl/interface/icebear.cfg
  48. +0
    -0
      src/tcl/interface/jlink.cfg
  49. +0
    -0
      src/tcl/interface/jtagkey-tiny.cfg
  50. +0
    -0
      src/tcl/interface/jtagkey.cfg
  51. +0
    -0
      src/tcl/interface/luminary-lm3s811.cfg
  52. +0
    -0
      src/tcl/interface/luminary.cfg
  53. +0
    -0
      src/tcl/interface/olimex-arm-usb-ocd.cfg
  54. +0
    -0
      src/tcl/interface/olimex-jtag-tiny.cfg
  55. +0
    -0
      src/tcl/interface/oocdlink.cfg
  56. +0
    -0
      src/tcl/interface/openocd-usb.cfg
  57. +0
    -0
      src/tcl/interface/parport.cfg
  58. +0
    -0
      src/tcl/interface/parport_dlc5.cfg
  59. +0
    -0
      src/tcl/interface/rlink.cfg
  60. +0
    -0
      src/tcl/interface/sheevaplug.cfg
  61. +0
    -0
      src/tcl/interface/signalyzer.cfg
  62. +0
    -0
      src/tcl/interface/stm32-stick.cfg
  63. +0
    -0
      src/tcl/interface/turtelizer2.cfg
  64. +0
    -0
      src/tcl/interface/usbprog.cfg
  65. +0
    -0
      src/tcl/interface/vsllink.cfg
  66. +0
    -0
      src/tcl/target/aduc702x.cfg
  67. +0
    -0
      src/tcl/target/at91eb40a.cfg
  68. +0
    -0
      src/tcl/target/at91r40008.cfg
  69. +0
    -0
      src/tcl/target/at91rm9200.cfg
  70. +0
    -0
      src/tcl/target/at91sam9260.cfg
  71. +0
    -0
      src/tcl/target/at91sam9260_ext_RAM_ext_flash.cfg
  72. +0
    -0
      src/tcl/target/davinci.cfg
  73. +0
    -0
      src/tcl/target/epc9301.cfg
  74. +0
    -0
      src/tcl/target/feroceon.cfg
  75. +0
    -0
      src/tcl/target/imx21.cfg
  76. +0
    -0
      src/tcl/target/imx27.cfg
  77. +0
    -0
      src/tcl/target/imx31.cfg
  78. +0
    -0
      src/tcl/target/imx35.cfg
  79. +0
    -0
      src/tcl/target/is5114.cfg
  80. +0
    -0
      src/tcl/target/ixp42x.cfg
  81. +0
    -0
      src/tcl/target/lm3s3748.cfg
  82. +0
    -0
      src/tcl/target/lm3s6965.cfg
  83. +0
    -0
      src/tcl/target/lm3s811.cfg
  84. +0
    -0
      src/tcl/target/lpc2103.cfg
  85. +0
    -0
      src/tcl/target/lpc2124.cfg
  86. +0
    -0
      src/tcl/target/lpc2129.cfg
  87. +0
    -0
      src/tcl/target/lpc2148.cfg
  88. +0
    -0
      src/tcl/target/lpc2294.cfg
  89. +0
    -0
      src/tcl/target/lpc2378.cfg
  90. +0
    -0
      src/tcl/target/lpc2478.cfg
  91. +0
    -0
      src/tcl/target/mega128.cfg
  92. +0
    -0
      src/tcl/target/netx500.cfg
  93. +0
    -0
      src/tcl/target/omap3530.cfg
  94. +0
    -0
      src/tcl/target/omap5912.cfg
  95. +0
    -0
      src/tcl/target/pic32mx.cfg
  96. +0
    -0
      src/tcl/target/pxa255.cfg
  97. +0
    -0
      src/tcl/target/pxa270.cfg
  98. +0
    -0
      src/tcl/target/readme.txt
  99. +0
    -0
      src/tcl/target/sam7se512.cfg
  100. +0
    -0
      src/tcl/target/sam7x256.cfg

+ 23
- 0
Makefile.am View File

@@ -29,6 +29,29 @@ doxygen::
$(MAKE) Doxyfile
doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log

TCL_PATH = src/tcl
# command to find paths of script files, relative to TCL_PATH
TCL_FILES := find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
sed -e 's,^$(srcdir)/$(TCL_PATH),,'

dist-hook:
for i in $$($(TCL_FILES)); do \
j="$(distdir)/$(TCL_PATH)/$$i" && \
mkdir -p "$$(dirname $$j)" && \
$(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
done

install-data-hook:
for i in $$($(TCL_FILES)); do \
j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
mkdir -p "$$(dirname $$j)" && \
$(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
done

uninstall-hook:
rm -rf $(DESTDIR)$(pkgdatadir)/scripts


distclean-local:
rm -rf Doxyfile doxygen



+ 1
- 0
configure.in View File

@@ -834,6 +834,7 @@ AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_PROG_INSTALL

dnl configure checks required for Jim files (these are obsolete w/ C99)
AC_C_CONST


+ 0
- 20
src/Makefile.am View File

@@ -92,24 +92,4 @@ if HTTPD
libopenocd_la_LIBADD += -lmicrohttpd
endif

nobase_dist_pkglib_DATA = \
tcl/bitsbytes.tcl \
tcl/chip/atmel/at91/aic.tcl \
tcl/chip/atmel/at91/at91sam7x128.tcl \
tcl/chip/atmel/at91/at91sam7x256.tcl \
tcl/chip/atmel/at91/pmc.tcl \
tcl/chip/atmel/at91/rtt.tcl \
tcl/chip/atmel/at91/usarts.tcl \
tcl/chip/st/stm32/stm32.tcl \
tcl/chip/st/stm32/stm32_rcc.tcl \
tcl/chip/st/stm32/stm32_regs.tcl \
tcl/cpu/arm/arm7tdmi.tcl \
tcl/cpu/arm/arm920.tcl \
tcl/cpu/arm/arm946.tcl \
tcl/cpu/arm/arm966.tcl \
tcl/cpu/arm/cortex_m3.tcl \
tcl/memory.tcl \
tcl/mmr_helpers.tcl \
tcl/readable.tcl

MAINTAINERCLEANFILES = Makefile.in

+ 0
- 9
src/target/Makefile.am View File

@@ -26,14 +26,5 @@ noinst_HEADERS = target.h trace.h register.h armv4_5.h embeddedice.h etm.h arm7t
nobase_dist_pkglib_DATA =
nobase_dist_pkglib_DATA += xscale/debug_handler.bin
nobase_dist_pkglib_DATA += ecos/at91eb40a.elf
# Various chip targets
nobase_dist_pkglib_DATA += $(wildcard $(srcdir)/target/*.cfg)
# Various jtag interfaces
nobase_dist_pkglib_DATA += $(wildcard $(srcdir)/interface/*.cfg)
# Various preconfigured boards
nobase_dist_pkglib_DATA += $(wildcard $(srcdir)/board/*.cfg)

# test files
nobase_dist_pkglib_DATA += $(wildcard $(srcdir)/test/*.cfg)

MAINTAINERCLEANFILES = Makefile.in

src/target/board/arm_evaluator7t.cfg → src/tcl/board/arm_evaluator7t.cfg View File


src/target/board/at91rm9200-dk.cfg → src/tcl/board/at91rm9200-dk.cfg View File


src/target/board/crossbow_tech_imote2.cfg → src/tcl/board/crossbow_tech_imote2.cfg View File


src/target/board/digi_connectcore_wi-9c.cfg → src/tcl/board/digi_connectcore_wi-9c.cfg View File


src/target/board/dm355evm.cfg → src/tcl/board/dm355evm.cfg View File


src/target/board/eir.cfg → src/tcl/board/eir.cfg View File


src/target/board/hammer.cfg → src/tcl/board/hammer.cfg View File


src/target/board/hitex_stm32-performancestick.cfg → src/tcl/board/hitex_stm32-performancestick.cfg View File


src/target/board/hitex_str9-comstick.cfg → src/tcl/board/hitex_str9-comstick.cfg View File


src/target/board/iar_str912_sk.cfg → src/tcl/board/iar_str912_sk.cfg View File


src/target/board/imx27ads.cfg → src/tcl/board/imx27ads.cfg View File


src/target/board/imx27lnst.cfg → src/tcl/board/imx27lnst.cfg View File


src/target/board/imx31pdk.cfg → src/tcl/board/imx31pdk.cfg View File


src/target/board/keil_mcb2140.cfg → src/tcl/board/keil_mcb2140.cfg View File


src/target/board/linksys_nslu2.cfg → src/tcl/board/linksys_nslu2.cfg View File


src/target/board/logicpd_imx27.cfg → src/tcl/board/logicpd_imx27.cfg View File


src/target/board/olimex_LPC2378STK.cfg → src/tcl/board/olimex_LPC2378STK.cfg View File


src/target/board/olimex_lpc_h2148.cfg → src/tcl/board/olimex_lpc_h2148.cfg View File


src/target/board/olimex_sam7_ex256.cfg → src/tcl/board/olimex_sam7_ex256.cfg View File


src/target/board/olimex_sam9_l9260.cfg → src/tcl/board/olimex_sam9_l9260.cfg View File


src/target/board/olimex_stm32_h103.cfg → src/tcl/board/olimex_stm32_h103.cfg View File


src/target/board/pic-p32mx.cfg → src/tcl/board/pic-p32mx.cfg View File


src/target/board/pxa255_sst.cfg → src/tcl/board/pxa255_sst.cfg View File


src/target/board/sheevaplug.cfg → src/tcl/board/sheevaplug.cfg View File


src/target/board/stm3210e_eval.cfg → src/tcl/board/stm3210e_eval.cfg View File


src/target/board/stm32f10x_128k_eval.cfg → src/tcl/board/stm32f10x_128k_eval.cfg View File


src/target/board/str910-eval.cfg → src/tcl/board/str910-eval.cfg View File


src/target/board/ti_beagleboard.cfg → src/tcl/board/ti_beagleboard.cfg View File


src/target/board/unknown-board-atmel-at91sam9260.cfg → src/tcl/board/unknown-board-atmel-at91sam9260.cfg View File


src/target/board/x300t.cfg → src/tcl/board/x300t.cfg View File


src/target/board/zy1000.cfg → src/tcl/board/zy1000.cfg View File


src/target/interface/arm-jtag-ew.cfg → src/tcl/interface/arm-jtag-ew.cfg View File


src/target/interface/arm-usb-ocd.cfg → src/tcl/interface/arm-usb-ocd.cfg View File


src/target/interface/at91rm9200.cfg → src/tcl/interface/at91rm9200.cfg View File


src/target/interface/axm0432.cfg → src/tcl/interface/axm0432.cfg View File


src/target/interface/calao-usb-a9260-c01.cfg → src/tcl/interface/calao-usb-a9260-c01.cfg View File


src/target/interface/calao-usb-a9260-c02.cfg → src/tcl/interface/calao-usb-a9260-c02.cfg View File


src/target/interface/calao-usb-a9260.cfg → src/tcl/interface/calao-usb-a9260.cfg View File


src/target/interface/chameleon.cfg → src/tcl/interface/chameleon.cfg View File


src/target/interface/dummy.cfg → src/tcl/interface/dummy.cfg View File


src/target/interface/flyswatter.cfg → src/tcl/interface/flyswatter.cfg View File


src/target/interface/hitex_str9-comstick.cfg → src/tcl/interface/hitex_str9-comstick.cfg View File


src/target/interface/icebear.cfg → src/tcl/interface/icebear.cfg View File


src/target/interface/jlink.cfg → src/tcl/interface/jlink.cfg View File


src/target/interface/jtagkey-tiny.cfg → src/tcl/interface/jtagkey-tiny.cfg View File


src/target/interface/jtagkey.cfg → src/tcl/interface/jtagkey.cfg View File


src/target/interface/luminary-lm3s811.cfg → src/tcl/interface/luminary-lm3s811.cfg View File


src/target/interface/luminary.cfg → src/tcl/interface/luminary.cfg View File


src/target/interface/olimex-arm-usb-ocd.cfg → src/tcl/interface/olimex-arm-usb-ocd.cfg View File


src/target/interface/olimex-jtag-tiny.cfg → src/tcl/interface/olimex-jtag-tiny.cfg View File


src/target/interface/oocdlink.cfg → src/tcl/interface/oocdlink.cfg View File


src/target/interface/openocd-usb.cfg → src/tcl/interface/openocd-usb.cfg View File


src/target/interface/parport.cfg → src/tcl/interface/parport.cfg View File


src/target/interface/parport_dlc5.cfg → src/tcl/interface/parport_dlc5.cfg View File


src/target/interface/rlink.cfg → src/tcl/interface/rlink.cfg View File


src/target/interface/sheevaplug.cfg → src/tcl/interface/sheevaplug.cfg View File


src/target/interface/signalyzer.cfg → src/tcl/interface/signalyzer.cfg View File


src/target/interface/stm32-stick.cfg → src/tcl/interface/stm32-stick.cfg View File


src/target/interface/turtelizer2.cfg → src/tcl/interface/turtelizer2.cfg View File


src/target/interface/usbprog.cfg → src/tcl/interface/usbprog.cfg View File


src/target/interface/vsllink.cfg → src/tcl/interface/vsllink.cfg View File


src/target/target/aduc702x.cfg → src/tcl/target/aduc702x.cfg View File


src/target/target/at91eb40a.cfg → src/tcl/target/at91eb40a.cfg View File


src/target/target/at91r40008.cfg → src/tcl/target/at91r40008.cfg View File


src/target/target/at91rm9200.cfg → src/tcl/target/at91rm9200.cfg View File


src/target/target/at91sam9260.cfg → src/tcl/target/at91sam9260.cfg View File


src/target/target/at91sam9260_ext_RAM_ext_flash.cfg → src/tcl/target/at91sam9260_ext_RAM_ext_flash.cfg View File


src/target/target/davinci.cfg → src/tcl/target/davinci.cfg View File


src/target/target/epc9301.cfg → src/tcl/target/epc9301.cfg View File


src/target/target/feroceon.cfg → src/tcl/target/feroceon.cfg View File


src/target/target/imx21.cfg → src/tcl/target/imx21.cfg View File


src/target/target/imx27.cfg → src/tcl/target/imx27.cfg View File


src/target/target/imx31.cfg → src/tcl/target/imx31.cfg View File


src/target/target/imx35.cfg → src/tcl/target/imx35.cfg View File


src/target/target/is5114.cfg → src/tcl/target/is5114.cfg View File


src/target/target/ixp42x.cfg → src/tcl/target/ixp42x.cfg View File


src/target/target/lm3s3748.cfg → src/tcl/target/lm3s3748.cfg View File


src/target/target/lm3s6965.cfg → src/tcl/target/lm3s6965.cfg View File


src/target/target/lm3s811.cfg → src/tcl/target/lm3s811.cfg View File


src/target/target/lpc2103.cfg → src/tcl/target/lpc2103.cfg View File


src/target/target/lpc2124.cfg → src/tcl/target/lpc2124.cfg View File


src/target/target/lpc2129.cfg → src/tcl/target/lpc2129.cfg View File


src/target/target/lpc2148.cfg → src/tcl/target/lpc2148.cfg View File


src/target/target/lpc2294.cfg → src/tcl/target/lpc2294.cfg View File


src/target/target/lpc2378.cfg → src/tcl/target/lpc2378.cfg View File


src/target/target/lpc2478.cfg → src/tcl/target/lpc2478.cfg View File


src/target/target/mega128.cfg → src/tcl/target/mega128.cfg View File


src/target/target/netx500.cfg → src/tcl/target/netx500.cfg View File


src/target/target/omap3530.cfg → src/tcl/target/omap3530.cfg View File


src/target/target/omap5912.cfg → src/tcl/target/omap5912.cfg View File


src/target/target/pic32mx.cfg → src/tcl/target/pic32mx.cfg View File


src/target/target/pxa255.cfg → src/tcl/target/pxa255.cfg View File


src/target/target/pxa270.cfg → src/tcl/target/pxa270.cfg View File


src/target/target/readme.txt → src/tcl/target/readme.txt View File


src/target/target/sam7se512.cfg → src/tcl/target/sam7se512.cfg View File


src/target/target/sam7x256.cfg → src/tcl/target/sam7x256.cfg View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save