1 ################################################################################
5 ################################################################################
7 KVM_UNIT_TESTS_VERSION
= 0b04ed0610035792514fd8499eb4dacc185520d9
8 KVM_UNIT_TESTS_SITE
= $(BR2_KERNEL_MIRROR
)/scm
/virt
/kvm
/kvm-unit-tests.git
9 KVM_UNIT_TESTS_SITE_METHOD
= git
10 KVM_UNIT_TESTS_LICENSE
= LGPLv2
11 KVM_UNIT_TESTS_LICENSE_FILES
= COPYRIGHT
14 KVM_UNIT_TESTS_ARCH
= arm
15 else ifeq ($(BR2_i386
),y
)
16 KVM_UNIT_TESTS_ARCH
= i386
17 else ifeq ($(BR2_powerpc64
)$(BR2_powerpc64le
),y
)
18 KVM_UNIT_TESTS_ARCH
= ppc64
19 else ifeq ($(BR2_x86_64
),y
)
20 KVM_UNIT_TESTS_ARCH
= x86_84
23 ifeq ($(BR2_ENDIAN
),"LITTLE")
24 KVM_UNIT_TESTS_ENDIAN
= little
26 KVM_UNIT_TESTS_ENDIAN
= big
29 KVM_UNIT_TESTS_CONF_OPTS
=\
30 --arch
="$(KERNEL_ARCH)" \
31 --cross-prefix
="$(TARGET_CROSS)" \
32 --endian
="$(KVM_UNIT_TESTS_ENDIAN)"
34 define KVM_UNIT_TESTS_CONFIGURE_CMDS
35 cd
$(@D
) && .
/configure
$(KVM_UNIT_TESTS_CONF_OPTS
)
38 define KVM_UNIT_TESTS_BUILD_CMDS
39 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) standalone
42 define KVM_UNIT_TESTS_INSTALL_TARGET_CMDS
43 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) \
44 DESTDIR
=$(TARGET_DIR
)/usr
/share
/kvm-unit-tests
/ \
48 # Does use configure script but not an autotools one
49 $(eval
$(generic-package
))