Skip to content

Commit

Permalink
Fix make run:
Browse files Browse the repository at this point in the history
`make run` didn't work with the "tar-kernel-initrd"
file produced.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Jul 30, 2023
1 parent be048be commit 310ed81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ out/$T/hook-bootkit-$(arch) out/$T/hook-docker-$(arch):

run-$(arch): out/$T/dbg/$(arch)/hook.tar
run-$(arch):
linuxkit run qemu --mem 2048 $$^
mkdir -p out/$T/run/$(arch)
tar xf $$^ -C out/$T/run/$(arch) --transform 's/^/hook-/'
linuxkit run qemu --mem 2048 -kernel out/$T/run/$(arch)/hook
endef
$(foreach a,$(arches),$(eval $(call foreach_arch_rules,$a)))

Expand Down

0 comments on commit 310ed81

Please sign in to comment.