Rename 'kvmunittests' to 'kvm-unit-tests'
Makefile targets can have the minus character in them. Rename KUT
targets to match the name of the project.
Change-Id: I61b6f3bf60a70e58a030e19fcc37740b3716d5d5
diff --git a/Makefile b/Makefile
index a1f3aa4..a2a280f 100644
--- a/Makefile
+++ b/Makefile
@@ -48,17 +48,17 @@
.DEFAULT_GOAL := default
.PHONY: default
-default: kvmunittests linux
+default: kvm-unit-tests linux
.PHONY: clean
-clean: buildroot_clean kvmunittests_clean linux_clean
+clean: buildroot_clean kvm-unit-tests_clean linux_clean
.PHONY: distclean
distclean:
- rm -rf $(OUT_DIR)
.PHONY: all
-all: buildroot kvmunittests linux
+all: buildroot kvm-unit-tests linux
.PHONY: help
help:
@@ -66,14 +66,14 @@
@echo ' default - builds all generic targets except for buildroot'
@echo ' all - builds all generic targets'
@echo ' buildroot - the buildroot rootfs image as well as the host qemu'
- @echo ' kvmunittests - the kvm-unit-tests'
+ @echo ' kvm-unit-tests - the kvm-unit-tests'
@echo ' linux - the linux kernel'
@echo ''
@echo 'Clean Targets:'
@echo ' clean - cleans all, but keeps the prebuilts'
@echo ' distclean - distclean for all targets'
@echo ' buildroot_clean - the buildroot rootfs image as well as the host qemu'
- @echo ' kvmunittests_clean - the kvm-unit-tests'
+ @echo ' kvm-unit-tests_clean - the kvm-unit-tests'
@echo ' linux_clean - the linux kernel'
@echo ''
@echo 'Misc Targets:'
@@ -85,7 +85,7 @@
## Buildroot
##
-BR_DEFCONFIG ?= qemu_aarch64_virt_kvmunittests_defconfig
+BR_DEFCONFIG ?= qemu_aarch64_virt_kvm-unit-tests_defconfig
BR_VERBOSE ?= $(VERBOSE)
BR_SRC := $(ROOT_DIR)/buildroot
@@ -103,7 +103,7 @@
##
-## kvmunittests
+## kvm-unit-tests
##
KUT_CROSS_PREFIX ?= "aarch64-linux-android-"
@@ -118,8 +118,8 @@
KUT_PATH := $(TOOLCHAIN_CLANG)/bin:$(TOOLCHAIN_BINUTILS)/bin:$(PATH)
-.PHONY: kvmunittests
-kvmunittests:
+.PHONY: kvm-unit-tests
+kvm-unit-tests:
mkdir -p $(KUT_OUT)
cd $(KUT_OUT) && \
$(KUT_SRC)/configure \
@@ -130,8 +130,8 @@
PATH=$(KUT_PATH) COMMON_CFLAGS=$(KUT_COMMON_CFLAGS) \
$(MAKE) -C $(KUT_OUT) install
-.PHONY: kvmunittests_clean
-kvmunittests_clean:
+.PHONY: kvm-unit-tests_clean
+kvm-unit-tests_clean:
- $(MAKE) -C $(KUT_OUT) clean
@@ -218,7 +218,7 @@
KUT_EXCLUDE := "(.+migrat.+)|(gicv2-.+)|(pmu-event-introspection)|(micro-bench)"
.PHONY: test
-test: kvmunittests linux_image
+test: kvm-unit-tests linux_image
@LD_LIBRARY_PATH=$(KUT_QEMU_LIB):$(LD_LIBRARY_PATH) VERBOSE=$(VERBOSE) \
$(TEST_SCRIPTS_DIR)/run_tests.sh \
-j $(JOBS) \