Skip to content

Commit 181a419

Browse files
committed
utils: Look for vmlinux in $KBUILD_OUTPUT
1 parent c8bbd84 commit 181a419

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def check_env_vars(names):
6161

6262

6363
def get_vmlinux():
64+
env = get_env_var('KBUILD_OUTPUT', None)
65+
if env:
66+
path = f'{env}/vmlinux'
67+
if os.path.isfile(path):
68+
return path
69+
6470
vmlinux = get_env_var('VMLINUX_PATH', 'vmlinux')
6571
if not os.path.isfile(vmlinux):
6672
logging.error("Can't read kernel 'vmlinux'! Try setting VMLINUX_PATH")

0 commit comments

Comments
 (0)