[go: nahoru, domu]

Skip to content

Commit

Permalink
targets/audio: Fix i386 build
Browse files Browse the repository at this point in the history
2 upstream issues (one of them fixed already), and remove compiler
flag, not really necessary.
  • Loading branch information
drinkcat committed Jul 18, 2018
1 parent 64995a0 commit d3c1801
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion targets/audio
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ END
# Drop SBC constants
sed -e 's/SBC_[A-Z0-9_]*/0/g' -i tests/cras_test_client.c

# FIXME(crbug.com/864815) Remove when fixed upstream
if [ "$cras_arch" = "i386" ]; then
sed -i -e 's/Dumping AEC info to %s, stream %lu/Dumping AEC info to %s, stream %llu/' \
tests/cras_test_client.c
fi
sed -i -e 's/cras_stream_id_t stream_id;/cras_stream_id_t stream_id = 0;/' \
tests/cras_test_client.c

# Directory to install CRAS library/binaries
CRASLIBDIR="/usr/local$archextrapath/lib"
CRASBINDIR="/usr/local$archextrapath/bin"
Expand All @@ -151,7 +159,7 @@ END
convert_automake

echo '
CFLAGS="$CFLAGS -Wno-int-in-bool-context -DCRAS_SOCKET_FILE_DIR=\"/var/run/cras\""
CFLAGS="$CFLAGS -DCRAS_SOCKET_FILE_DIR=\"/var/run/cras\""
buildlib libcras
Expand Down

0 comments on commit d3c1801

Please sign in to comment.