forked from linux-kdevops/kdevops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.build_qemu
66 lines (53 loc) · 2.23 KB
/
Makefile.build_qemu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# SPDX-License-Identifier: copyleft-next-0.3.1
QEMU_BUILD_SETUP_ARGS :=
QEMU_BUILD_SETUP_ARGS += qemu_build=True
QEMU_GIT:=$(subst ",,$(CONFIG_QEMU_BUILD_GIT))
QEMU_GIT_VERSION:=$(subst ",,$(CONFIG_QEMU_BUILD_GIT_VERSION))
QEMU_DATA:=$(subst ",,$(CONFIG_QEMU_BUILD_GIT_DATA_PATH))
QEMU_BUILD_SETUP_ARGS += qemu_git=$(QEMU_GIT)
QEMU_BUILD_SETUP_ARGS += qemu_data=\"$(QEMU_DATA)\"
QEMU_BUILD_SETUP_ARGS += qemu_version='$(QEMU_GIT_VERSION)'
ifeq (y,$(CONFIG_TARGET_ARCH_X86_64))
QEMU_BUILD_SETUP_ARGS += qemu_target="x86_64-softmmu"
endif
ifeq (y,$(CONFIG_TARGET_ARCH_PPC64LE))
QEMU_BUILD_SETUP_ARGS += qemu_target="ppc64-softmmu"
endif
qemu: $(KDEVOPS_EXTRA_VARS)
@$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \
--inventory localhost, \
$(KDEVOPS_PLAYBOOKS_DIR)/build_qemu.yml \
-e 'ansible_python_interpreter=/usr/bin/python3' \
--extra-vars=@./extra_vars.yaml
PHONY += qemu
qemu-install: $(KDEVOPS_EXTRA_VARS)
@$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \
--inventory localhost, \
$(KDEVOPS_PLAYBOOKS_DIR)/build_qemu.yml \
-e 'ansible_python_interpreter=/usr/bin/python3' \
--extra-vars=@./extra_vars.yaml --tags vars,install
PHONY += qemu-install
qemu-configure: $(KDEVOPS_EXTRA_VARS)
@$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \
--inventory localhost, \
$(KDEVOPS_PLAYBOOKS_DIR)/build_qemu.yml \
-e 'ansible_python_interpreter=/usr/bin/python3' \
--extra-vars=@./extra_vars.yaml --tags vars,configure
PHONY += qemu-configure
qemu-build: $(KDEVOPS_EXTRA_VARS)
@$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \
--inventory localhost, \
$(KDEVOPS_PLAYBOOKS_DIR)/build_qemu.yml \
-e 'ansible_python_interpreter=/usr/bin/python3' \
--extra-vars=@./extra_vars.yaml --tags vars,build
PHONY += qemu-build
qemu-help-menu:
@echo "qemu options:"
@echo "qemu - Git clones qemu, builds and install it on localhost"
@echo "qemu-configure - Configure qemu build"
@echo "qemu-build - Build qemu"
@echo "qemu-install - Do the install of the qemu build on localhost"
@echo ""
HELP_TARGETS += qemu-help-menu
ANSIBLE_EXTRA_ARGS += $(QEMU_BUILD_SETUP_ARGS)
LOCALHOST_SETUP_WORK += qemu