blob: e4d5bd069b4fe39263214f1c3cd3712816b605b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
#!/bin/sh
# This hackish script copies the necessary library files into the Maple IDE
# repository.
# 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`
FILES="LICENSE
./libmaple/nvic.h
./libmaple/util.h
./libmaple/adc.h
./libmaple/usb_regs.h
./libmaple/rcc.h
./libmaple/exti.h
./libmaple/usart.h
./libmaple/usb.h
./libmaple/timers.h
./libmaple/bootVect.h
./libmaple/systick.h
./libmaple/flash.h
./libmaple/spi.h
./libmaple/gpio.h
./libmaple/libmaple.h
./libmaple/libmaple_types.h
./libmaple/rcc.c
./libmaple/exti.c
./libmaple/syscalls.c
./libmaple/usart.c
./libmaple/systick.c
./libmaple/util.c
./libmaple/exc.c
./libmaple/nvic.c
./libmaple/spi.c
./libmaple/timers.c
./libmaple/usb.c
./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
./wirish/io.h
./wirish/main.cxx
./wirish/Print.cpp
./wirish/Print.h
./wirish/pwm.c
./wirish/pwm.h
./wirish/time.c
./wirish/time.h
./wirish/wirish_analog.c
./wirish/wirish.c
./wirish/wirish_digital.c
./wirish/wirish.h
./wirish/wirish_math.cpp
./wirish/wirish_math.h
./wirish/wirish_shift.c
./wirish/WProgram.h
./wirish/cxxabi-compat.cpp
./wirish/comm/HardwareSerial.cpp
./wirish/comm/HardwareSerial.h
./wirish/comm/HardwareSPI.cpp
./wirish/comm/HardwareSPI.h
./wirish/comm/HardwareUsb.cpp
./wirish/comm/HardwareUsb.h"
# First see if this folder exists
if !(test -d $DEST/lanchon-stm32)
then
mkdir $DEST/lanchon-stm32
fi
# Then copy over linker files
cp -v stm32conf/* $DEST
cp -v stm32conf/lanchon-stm32/* $DEST/lanchon-stm32
# Finally delete and copy the source files
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
|