mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
Fix amd64 platform detection for minidump symbols generation
Not all 64-bit platforms have names starting with amd64-, so we should use portageq to get the board architecture name. BUG=chromium-os:25228 TEST=./cros_generate_breakpad_symbols --board=x86-alex, amd64-corei7, link Change-Id: I83769575dbd19112b929724995d0c97ed4df2b02 Reviewed-on: https://gerrit.chromium.org/gerrit/14444 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: David James <davidjames@chromium.org>
This commit is contained in:
parent
25d540d75d
commit
08df4201a7
@ -173,8 +173,8 @@ function main() {
|
||||
|
||||
[ -n "$FLAGS_board" ] || die "--board is required."
|
||||
|
||||
case "$FLAGS_board" in
|
||||
amd64-*)
|
||||
case "$(portageq-${FLAGS_board} envvar ARCH)" in
|
||||
amd64)
|
||||
echo "Detected amd64 board.."
|
||||
DUMP_SYMS="/build/${FLAGS_board}/usr/bin/dump_syms"
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user