File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 3
3
CORE_PATH=$( pwd -P)
4
4
TARGET=SANTIAGO
5
5
6
+ # this part changes the makefile generated by e2studio (removing ra_gen from the build)
7
+ # then it cleans the build and re-build all again
8
+
9
+ if ! grep -q " #\-include ra_gen\/subdir.mk" ./Debug/makefile; then
10
+ sed -i ' s/-include ra_gen\/subdir.mk/#-include ra_gen\/subdir.mk/g' ./Debug/makefile
11
+ echo " not commented"
12
+ else
13
+ echo " already commented!"
14
+ fi
15
+
16
+ cd Debug
17
+ make clean
18
+ make
19
+ cd ..
20
+ echo ` pwd`
21
+
22
+
6
23
LIBRARY=` find . | grep " \.a$" `
7
24
8
25
echo Copying ${LIBRARY} to ${CORE_PATH} /../../../variants/${TARGET} /libs/libfsp.a
@@ -16,14 +33,21 @@ LINKER_SCRIPTS=`find . | grep "\.ld$"`
16
33
# cp ${LINKER_SCRIPTS} ${CORE_PATH}/../../../variants/${TARGET}/
17
34
18
35
# -----------------------------------------------------------------------
19
- # TEMPORARY CHANGE - TO BE REMOVED
36
+ # TEMPORARY CHANGE - TO BE REMOVED - used to copy temporary some genrated files
37
+ # those are the files that have been removed from the build at the beginning
38
+ # and now are copied to a temporary path (so that we can continue to build)
20
39
# ------------------------------------------------------------------------
21
40
if [ ! -d ${CORE_PATH} /../../../variants/${TARGET} /tmp_gen_c_files ]
22
41
then
23
42
mkdir ${CORE_PATH} /../../../variants/${TARGET} /tmp_gen_c_files
24
43
fi
25
44
26
45
cp ./ra_gen/* .c ${CORE_PATH} /../../../variants/${TARGET} /tmp_gen_c_files/
46
+ # no more need of the following file
47
+ if test -f " ${CORE_PATH} /../../../variants/${TARGET} /tmp_gen_c_files/vector_table.c" ; then
48
+ echo " removed"
49
+ rm ${CORE_PATH} /../../../variants/${TARGET} /tmp_gen_c_files/vector_table.c
50
+ fi
27
51
# -------------------------------------------------------------------------
28
52
29
53
You can’t perform that action at this time.
0 commit comments