On Tue, 2009-06-02 at 14:52 -0700, Zach Welch wrote:
> On Tue, 2009-06-02 at 22:45 +0200, Øyvind Harboe wrote:
> > On Tue, Jun 2, 2009 at 9:31 PM, Gene Smith <g...@chartertn.net> wrote:
> > > I see in r2003 that stm32.cfg is now in tcl/ which caused an error for cfg
> > > files that attempt to point to it. Attached is patch to fix these pointer
> > > files.
> > 
> > I'm wondering if the bug isn't elsewhere.
> > 
> > Was it intentional to add the "tcl/" prefix? Perhaps the directory
> > search path just
> > needs to be updated?
> 
> Whoops!  This actually appears to be something that I missed.
> When I moved everything around, I changed the installed heirarchy! NUTS!
> 
> AFAICT, the tcl/ path should no longer be required in any script. If it
> does work for you, I would bet that you have leftover files from a
> previous installation, and you are using those files.
> 
> Assuming that my assessment is correct, I can produce a patch to remove
> all of these prefixes from the tree.  I am surprised that no one has
> noticed this before today.

While it appears I made this realization erroneously with regard to the
original thread, I believe the attached patch fixes the real problem
that it made me spot.  Are these files being used?

Cheers,

Zach
Index: tcl/chip/atmel/at91/at91sam7x128.tcl
===================================================================
--- tcl/chip/atmel/at91/at91sam7x128.tcl	(revision 2003)
+++ tcl/chip/atmel/at91/at91sam7x128.tcl	(working copy)
@@ -1,7 +1,7 @@
-source [find tcl/bitsbytes.tcl]
-source [find tcl/cpu/arm/arm7tdmi.tcl]
-source [find tcl/memory.tcl]
-source [find tcl/mmr_helpers.tcl]
+source [find bitsbytes.tcl]
+source [find cpu/arm/arm7tdmi.tcl]
+source [find memory.tcl]
+source [find mmr_helpers.tcl]
 
 set CHIP_MAKER  atmel
 set CHIP_FAMILY at91sam7
@@ -122,7 +122,7 @@
 set AT91C_ID(30) IRQ0
 set AT91C_ID(31) IRQ1
 
-source [find tcl/chip/atmel/at91/aic.tcl]
-source [find tcl/chip/atmel/at91/usarts.tcl]
-source [find tcl/chip/atmel/at91/pmc.tcl]
-source [find tcl/chip/atmel/at91/rtt.tcl]
+source [find chip/atmel/at91/aic.tcl]
+source [find chip/atmel/at91/usarts.tcl]
+source [find chip/atmel/at91/pmc.tcl]
+source [find chip/atmel/at91/rtt.tcl]
Index: tcl/chip/atmel/at91/at91sam7x256.tcl
===================================================================
--- tcl/chip/atmel/at91/at91sam7x256.tcl	(revision 2003)
+++ tcl/chip/atmel/at91/at91sam7x256.tcl	(working copy)
@@ -1,7 +1,7 @@
-source [find tcl/bitsbytes.tcl]
-source [find tcl/cpu/arm/arm7tdmi.tcl]
-source [find tcl/memory.tcl]
-source [find tcl/mmr_helpers.tcl]
+source [find bitsbytes.tcl]
+source [find cpu/arm/arm7tdmi.tcl]
+source [find memory.tcl]
+source [find mmr_helpers.tcl]
 
 set CHIP_MAKER  atmel
 set CHIP_FAMILY at91sam7
@@ -120,7 +120,7 @@
 set AT91C_ID(31)   "IRQ1"
 
 
-source [find tcl/chip/atmel/at91/aic.tcl]
-source [find tcl/chip/atmel/at91/usarts.tcl]
-source [find tcl/chip/atmel/at91/pmc.tcl]
-source [find tcl/chip/atmel/at91/rtt.tcl]
+source [find chip/atmel/at91/aic.tcl]
+source [find chip/atmel/at91/usarts.tcl]
+source [find chip/atmel/at91/pmc.tcl]
+source [find chip/atmel/at91/rtt.tcl]
Index: tcl/chip/st/stm32/stm32.tcl
===================================================================
--- tcl/chip/st/stm32/stm32.tcl	(revision 2003)
+++ tcl/chip/st/stm32/stm32.tcl	(working copy)
@@ -1,7 +1,7 @@
-source [find tcl/bitsbytes.tcl]
-source [find tcl/cpu/arm/cortex_m3.tcl]
-source [find tcl/memory.tcl]
-source [find tcl/mmr_helpers.tcl]
+source [find bitsbytes.tcl]
+source [find cpu/arm/cortex_m3.tcl]
+source [find memory.tcl]
+source [find mmr_helpers.tcl]
 
-source [find tcl/chip/st/stm32/stm32_regs.tcl]
-source [find tcl/chip/st/stm32/stm32_rcc.tcl]
+source [find chip/st/stm32/stm32_regs.tcl]
+source [find chip/st/stm32/stm32_rcc.tcl]
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to