Initial Commit
- initial default booting image
This commit is contained in:
15
package/cmocka/Config.in
Normal file
15
package/cmocka/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_CMOCKA
|
||||
bool "cmocka"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
cmocka is an elegant unit testing framework for C with support
|
||||
for mock objects. It only requires the standard C library,
|
||||
works on a range of computing platforms (including embedded)
|
||||
and with different compilers. It is a fork of Google's very
|
||||
popular cmockery unit testing framework to fix bugs and
|
||||
support it in the future.
|
||||
|
||||
https://cmocka.org
|
||||
|
||||
comment "cmocka needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
4
package/cmocka/cmocka.hash
Normal file
4
package/cmocka/cmocka.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally computed, after checking pgp signature from:
|
||||
# https://cmocka.org/files/2.0/cmocka-2.0.2.tar.xz.asc
|
||||
sha256 39f92f366bdf3f1a02af4da75b4a5c52df6c9f7e736c7d65de13283f9f0ef416 cmocka-2.0.2.tar.xz
|
||||
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
|
||||
29
package/cmocka/cmocka.mk
Normal file
29
package/cmocka/cmocka.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# cmocka
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CMOCKA_VERSION = 2.0.2
|
||||
CMOCKA_SOURCE = cmocka-$(CMOCKA_VERSION).tar.xz
|
||||
CMOCKA_SITE = https://cmocka.org/files/2.0
|
||||
CMOCKA_LICENSE = Apache-2.0
|
||||
CMOCKA_LICENSE_FILES = LICENSE
|
||||
CMOCKA_INSTALL_STAGING = YES
|
||||
CMOCKA_CONF_OPTS = -DWITH_EXAMPLES=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE
|
||||
|
||||
# cmocka only supports out of source builds
|
||||
CMOCKA_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
|
||||
# cmocka always builds a shared library, but you can optionally build a static
|
||||
# library as well
|
||||
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
CMOCKA_CONF_OPTS += -DWITH_STATIC_LIB=ON
|
||||
endif
|
||||
|
||||
# gcc for ARM Thumb1 doesn't implement -fstack-clash-protection
|
||||
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||
CMOCKA_CONF_OPTS += -DWITH_STACK_CLASH_PROTECTION=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user