-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sh
21 lines (19 loc) · 872 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
mkdir -p configs/generated
mkdir -p ../ccs_workspace
mkdir -p artifact
touch ./configs/generated/autoconf.h
/opt/ti/ccs1020/ccs/eclipse/eclipse -noSplash -data ../ccs_workspace -application "com.ti.ccstudio.apps.projectImport" -ccs.location .
configNames=$(find configs/ -type f -name "*_defconfig")
for configName in ${configNames}
do
name=$(basename $configName)
echo "***********************************************************"
echo "Building for $name"
echo "***********************************************************"
make defconfig CONF=$name
/opt/ti/ccs1020/ccs/eclipse/eclipse -noSplash -data ../ccs_workspace -application "com.ti.ccstudio.apps.projectBuild" -ccs.projects "CANopenNode_bootloader"
mkdir -p artifact/$name
cp Debug/CANopenNode_bootloader.* artifact/$name
cp configs/$name artifact/$name/$name
done