This is nominally a bugfix release which now also includes the patch we previously backported, so we can remove it. However, it also introduced some breakage: - Builds with older toolchains (like br-arm-full-static, GCC 9) fail because the introduction of C23 [[fallthrough]] to the code was not properly gated on compiler support. - Compiling for x86 without SSE2 support (e.g. with bootlin-x86-i686-musl) fails because the check for native half-with float arithmetic support on the target was not strict enough. Import unreleased upstream patches that fix these issues. Release notes: https://github.com/intel/tinycbor/releases/tag/v0.6.1 Signed-off-by: Florian Larysch <fl@n621.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# tinycbor
|
|
#
|
|
################################################################################
|
|
|
|
TINYCBOR_VERSION = 0.6.1
|
|
TINYCBOR_SITE = $(call github,intel,tinycbor,v$(TINYCBOR_VERSION))
|
|
TINYCBOR_LICENSE = MIT
|
|
TINYCBOR_LICENSE_FILES = LICENSE
|
|
|
|
TINYCBOR_DEPENDENCIES = host-pkgconf
|
|
TINYCBOR_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_CJSON),y)
|
|
TINYCBOR_DEPENDENCIES += cjson
|
|
endif
|
|
|
|
TINYCBOR_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) DISABLE_WERROR=1 V=1 prefix=/usr
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
TINYCBOR_MAKE_OPTS += BUILD_STATIC=1 BUILD_SHARED=0
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
TINYCBOR_MAKE_OPTS += BUILD_STATIC=1 BUILD_SHARED=1
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
TINYCBOR_MAKE_OPTS += BUILD_STATIC=0 BUILD_SHARED=1
|
|
endif
|
|
|
|
# disabled parallel build because of build failures while
|
|
# producing the .config file
|
|
define TINYCBOR_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE1) $(TINYCBOR_MAKE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define TINYCBOR_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
|
|
DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define TINYCBOR_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
|
|
DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|