aboutsummaryrefslogtreecommitdiffstats
path: root/copy-to-ide
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-04-25 17:42:34 -0400
committerbnewbold <bnewbold@robocracy.org>2010-05-20 22:09:16 -0400
commitba9ff3861bbcc17c78086b1887691c324f13ba0e (patch)
tree15e3203954cc568065b219a576a344ebbeaeefdd /copy-to-ide
parentfc4b9b386a80d06c73e03d70767643aae3961e2a (diff)
downloadlibrambutan-ba9ff3861bbcc17c78086b1887691c324f13ba0e.tar.gz
librambutan-ba9ff3861bbcc17c78086b1887691c324f13ba0e.zip
added a delay to the resrt slide to allow enough time for graceul closures of the serial port
Diffstat (limited to 'copy-to-ide')
-rwxr-xr-xcopy-to-ide35
1 files changed, 35 insertions, 0 deletions
diff --git a/copy-to-ide b/copy-to-ide
index b14b8bd..e4d5bd0 100755
--- a/copy-to-ide
+++ b/copy-to-ide
@@ -5,6 +5,7 @@
# Change this
DEST=`pwd`/../maple-ide/hardware/leaflabs/cores/maple/
+WORK_DEST=`pwd`/../maple-ide/build/linux/work/hardware/leaflabs/cores/maple/
ARCH=`uname -a`
@@ -39,6 +40,28 @@ FILES="LICENSE
./libmaple/adc.c
./libmaple/flash.c
./libmaple/gpio.c
+ ./wirish/usb/usb_lib/usb_core.c
+ ./wirish/usb/usb_lib/usb_core.h
+ ./wirish/usb/usb_lib/usb_def.h
+ ./wirish/usb/usb_lib/usb_init.c
+ ./wirish/usb/usb_lib/usb_init.h
+ ./wirish/usb/usb_lib/usb_int.c
+ ./wirish/usb/usb_lib/usb_int.h
+ ./wirish/usb/usb_lib/usb_lib.h
+ ./wirish/usb/usb_lib/usb_mem.c
+ ./wirish/usb/usb_lib/usb_mem.h
+ ./wirish/usb/usb_lib/usb_regs.c
+ ./wirish/usb/usb_lib/usb_regs.h
+ ./wirish/usb/usb_lib/usb_type.h
+ ./wirish/usb/descriptors.c
+ ./wirish/usb/descriptors.h
+ ./wirish/usb/usb_callbacks.h
+ ./wirish/usb/usb_callbacks.c
+ ./wirish/usb/usb_config.h
+ ./wirish/usb/usb.h
+ ./wirish/usb/usb.c
+ ./wirish/usb/usb_hardware.c
+ ./wirish/usb/usb_hardware.h
./wirish/bits.h
./wirish/ext_interrupts.c
./wirish/ext_interrupts.h
@@ -80,3 +103,15 @@ cp -v stm32conf/lanchon-stm32/* $DEST/lanchon-stm32
rm $DEST/*.c $DEST/*.cpp $DEST/*.h $DEST/*.cxx
cp -v $FILES $DEST
+# if a working directory already exists, copy in there too so we
+# dont have to rebuild the ide just to change the lib out
+if (test -d $DEST_WORD)
+then
+# Then copy over linker files
+ cp -v stm32conf/* $WORK_DEST
+ cp -v stm32conf/lanchon-stm32/* $WORK_DEST/lanchon-stm32
+
+# Finally the source files
+ cp -v $FILES $WORK_DEST
+fi
+