Skip to content

Commit

Permalink
Don't force enable QPG6100 in gn_build.sh (#3396)
Browse files Browse the repository at this point in the history
This doesn't build on the Pi right now since we aren't fetching ARM GCC
on the platform yet (and the Ubuntu arm-none-gcc doesn't seem to have 64
bit integer formatting for printf, breaking the build).

Instead accept GN args on the command line of this script and print a
hint about how to enable it.
  • Loading branch information
mspang authored Oct 23, 2020
1 parent f5ace21 commit 2182a38
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion gn_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,16 @@ echo 'To build a custom build (for help run "gn args --list out/debug")'
echo gn args "$CHIP_ROOT/out/custom"
echo ninja -C "$CHIP_ROOT/out/custom"

extra_args=" enable_qpg6100_builds=true"
extra_args=""

for arg; do
case $arg in
enable_qpg6100_builds=true)
qpg6100_enabled=1
;;
esac
extra_args+=" $arg"
done

# Android SDK setup
android_sdk_args=""
Expand Down Expand Up @@ -131,6 +140,13 @@ else
fi
echo

if [[ -z "$qpg6100_enabled" ]]; then
echo "Hint: Pass enable_qpg6100_builds=true to this script to enable building for QPG6100"
else
echo 'To build the QPG6100 lock sample as a standalone project:'
echo "(cd $CHIP_ROOT/examples/lock-app/qpg6100; gn gen out/debug; ninja -C out/debug)"
fi

echo

_chip_banner "Build: GN configure"
Expand Down

0 comments on commit 2182a38

Please sign in to comment.