1b5e90c320
Disable -Werror to avoid the following build failure with gcc 4.8 raised since bump to version 0.6.0 in commitee1a2826dc
ande2a4ed135c
: /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-none-linux-gnueabi-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I./src -std=gnu99 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -Werror=incompatible-pointer-types -Werror=implicit-function-declaration -Werror=int-conversion -fPIC -c -o src/cborerrorstrings.pic.o src/cborerrorstrings.c cc1: error: -Werror=incompatible-pointer-types: no option -Wincompatible-pointer-types cc1: error: -Werror=int-conversion: no option -Wint-conversion Fixes: - http://autobuild.buildroot.org/results/a9fe64c42bb96f9e7b4af3050464f6570c1c00fa Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# tinycbor
|
|
#
|
|
################################################################################
|
|
|
|
TINYCBOR_VERSION = 0.6.0
|
|
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
|
|
|
|
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) prefix=/usr install
|
|
endef
|
|
|
|
define TINYCBOR_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
|
|
DESTDIR=$(TARGET_DIR) prefix=/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|