diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2020-05-27 21:59:25 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-27 21:59:25 +0000 |
commit | 660636c6971b7652460b3aa115da4e1cf4438167 (patch) | |
tree | 010906ce83f6a884bfbdc19df6029cb165e81a26 | |
parent | 58133a7ecbbc1af2fc809ae3224d657ff34b861b (diff) | |
parent | b0c8cc9500c2bfccead9849a6bc9f6107efbeabf (diff) | |
download | cuttlefish_kernel-660636c6971b7652460b3aa115da4e1cf4438167.tar.gz |
extract-vmlinux: update to check to search "MS-DOS executable" am: b0c8cc9500
Change-Id: I27c53e6ce27696f3c39911ea0a8bda8e3223692c
-rwxr-xr-x | scripts/extract-vmlinux | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/extract-vmlinux b/scripts/extract-vmlinux index 1f90139..7724f38 100755 --- a/scripts/extract-vmlinux +++ b/scripts/extract-vmlinux @@ -18,7 +18,11 @@ check_vmlinux() readelf -h $1 > /dev/null 2>&1 if [ $? -ne 0 ]; then # On ARM64, the kernel might be a PE file instead - file $1 | grep -q "MS-DOS executable$" || return 1 + # and output of file command might be something like following: + # $ file cuttlefish_assembly/vmlinux + # cuttlefish_assembly/vmlinux: MS-DOS executable PE32+ executable (EFI application) Aarch64 (stripped to external PDB), for MS Windows + # $ + file $1 | grep -q "MS-DOS executable" || return 1 fi cat $1 |