From 7708ff8bf6c7eedb00d31bd05a4b4f90babe9fe0 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 11 May 2017 08:38:54 -0400 Subject: [PATCH] emulation: fix path of ELF binary when running with xt-sim Signed-off-by: Anas Nashif --- scripts/Makefile.xt-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.xt-run b/scripts/Makefile.xt-run index f570c79c583..3e2cb15c306 100644 --- a/scripts/Makefile.xt-run +++ b/scripts/Makefile.xt-run @@ -21,12 +21,12 @@ ifneq ($(QEMU_PIPE),) # $(QEMU_PIPE).in and $(QEMU_PIPE).out. The extensions are implicit # in QEMU's -seral pipe:.... argument. # 2) A PID file so that sanitycheck can kill the emulator - ${Q} ${XTRUN} ${XTRUN_FLAGS} ${XTRUN_EXTRA_FLAGS} ${KERNEL_ELF_NAME} \ + ${Q} ${XTRUN} ${XTRUN_FLAGS} ${XTRUN_EXTRA_FLAGS} ${O}/${KERNEL_ELF_NAME} \ < ${QEMU_PIPE}.in > ${QEMU_PIPE}.out & echo $$! > qemu.pid # Wait until the emulator terminates (for any reason) $(Q) cat qemu.pid | xargs $(srctree)/scripts/waitpid else - ${Q} ${XTRUN} ${XTRUN_FLAGS} ${XTRUN_EXTRA_FLAGS} ${KERNEL_ELF_NAME} + ${Q} ${XTRUN} ${XTRUN_FLAGS} ${XTRUN_EXTRA_FLAGS} ${O}/${KERNEL_ELF_NAME} endif .PHONY: run