This repository was archived by the owner on Apr 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,15 @@ generate_libs () {
159
159
}
160
160
161
161
copy_core_files () {
162
- echo -n " Copying files to core... "
163
- rsync -zar --include=" */" --include=" *.h" --exclude=" *" mbed-os/ " $ARDUINOCOREMBED " /
164
- rsync -zar --include=" */" --include=" mstd_*" --exclude=" *" mbed-os/ " $ARDUINOCOREMBED " /
162
+ echo -n " Copying generic MbedOS headers to core... "
163
+ rsync -zar --exclude=" targets/" --exclude=" *TEST*/" --include=" */" --include=" *.h" --exclude=" *" mbed-os/ " $ARDUINOCOREMBED " /
164
+ rsync -zar --exclude=" targets/" --exclude=" *TEST*/" --include=" */" --include=" mstd_*" --exclude=" *" mbed-os/ " $ARDUINOCOREMBED " /
165
+ echo " done."
166
+
167
+ TARGET=$( find mbed-os -type d -name TARGET_" $BOARDNAME " | cut -d' /' -f2-3)
168
+ echo -n " Copying MbedOS headers for $TARGET ... "
169
+ [ -d " $ARDUINOCOREMBED " /" $TARGET " / ] || mkdir -p " $ARDUINOCOREMBED " /" $TARGET " / && : ;
170
+ rsync -zar --include=" */" --include=" *.h" --exclude=" *" mbed-os/" $TARGET " / " $ARDUINOCOREMBED " /" $TARGET " /
165
171
echo " done."
166
172
}
167
173
@@ -246,12 +252,14 @@ export APPLY_PATCHES=${APPLY_PATCHES:-0}
246
252
export LOCAL_REPO=${LOCAL_REPO:- " " }
247
253
export REMOTE_BRANCH=${REMOTE_BRANCH:- " " }
248
254
255
+ echo
249
256
echo MBED_CLEAN=$MBED_CLEAN
250
257
echo MBED_UPDATE=$MBED_UPDATE
251
258
echo APPLY_PATCHES=$APPLY_PATCHES
252
259
echo LOCAL_REPO=" $LOCAL_REPO "
253
260
echo REMOTE_BRANCH=" $REMOTE_BRANCH "
254
261
echo MBED_CORE_LOCATION=" $MBED_CORE_LOCATION "
262
+ echo
255
263
256
264
for variant in ${! VARIANT_BOARDS[*]} ; do
257
265
echo " VARIANT=$variant BOARD=${VARIANT_BOARDS[$variant]} "
You can’t perform that action at this time.
0 commit comments