We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85ccf1 commit 86000f3Copy full SHA for 86000f3
.gitignore
@@ -1,2 +1,3 @@
1
.vscode/
2
*.pyc
3
+CATKIN_IGNORE
ca_bringup/scripts/ignore_pkgs.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+CPU=$(lscpu | grep -oP 'Architecture:\s*\K.+')
4
5
+SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
6
+SRC_PATH="$( realpath ${SCRIPT_PATH}/../.. )"
7
8
+# Colors
9
+RED='\033[0;31m'
10
+YELLOW='\033[1;33m'
11
+NC='\033[0m' # No Color
12
13
+ARM_IGNORED_PKGS=("ca_gazebo" "ca_imu")
14
15
+# If the CPU architecture is an ARM (Raspberry) don't compile some packages.
16
+if [ "$CPU" == *"arm"* ] ; then
17
+ echo -e "${YELLOW}Skipping compilation of some packages because of ARM architecure.${NC}"
18
19
+ for pkg in ${ARM_IGNORED_PKGS} ; do
20
+ touch "${SRC_PATH}/${pkg}/CATKIN_IGNORE"
21
+ done
22
+fi
0 commit comments