2022-01-25 12:45:40
This commit is contained in:
7
Makefile
7
Makefile
@@ -6,7 +6,7 @@
|
|||||||
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2021/11/02 17:47:57 by gbaconni #+# #+# #
|
# Created: 2021/11/02 17:47:57 by gbaconni #+# #+# #
|
||||||
# Updated: 2022/01/25 12:20:26 by gbaconni ### ########.fr #
|
# Updated: 2022/01/25 12:45:23 by gbaconni ### lausanne.ch #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ FT = $(shell if test -L ~/goinfre; then echo "yes"; else echo "no"; fi)
|
|||||||
QEMU86 = qemu-system-x86_64
|
QEMU86 = qemu-system-x86_64
|
||||||
ifeq ($(KERNEL),Linux)
|
ifeq ($(KERNEL),Linux)
|
||||||
ifeq ($(MACHINE),x86_64)
|
ifeq ($(MACHINE),x86_64)
|
||||||
QEMU86 = kvm
|
QEMU86 = /usr/bin/qemu-system-x86_64
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -80,6 +80,9 @@ endif
|
|||||||
qemu:
|
qemu:
|
||||||
ifeq ($(KERNEL),Linux)
|
ifeq ($(KERNEL),Linux)
|
||||||
@which qemu-system-x86_64 >/dev/null 2>&1 || sudo apt-get install -qq -y qemu-utils qemu-system-x86 qemu-system-arm qemu-efi-aarch64 ovmf ipxe-qemu expect
|
@which qemu-system-x86_64 >/dev/null 2>&1 || sudo apt-get install -qq -y qemu-utils qemu-system-x86 qemu-system-arm qemu-efi-aarch64 ovmf ipxe-qemu expect
|
||||||
|
ifeq ($(MACHINE),x86_64)
|
||||||
|
sudo setcap -q 'cap_net_bind_service=+ep' /usr/bin/qemu-system-x86_64
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(KERNEL),Darwin)
|
ifeq ($(KERNEL),Darwin)
|
||||||
ifeq ($(FT),yes)
|
ifeq ($(FT),yes)
|
||||||
|
|||||||
Reference in New Issue
Block a user