Bump buildroot to 2019.02
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From 8fc28b4c4c01581b25220fdbc1eeda196e399256 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Wed, 10 Oct 2018 09:28:00 +0200
|
||||
Subject: [PATCH] CMakeLists.txt: conditionally use -Wpedantic
|
||||
|
||||
-Wpedantic is only provided by gcc >= 4.8. Since showing pedantic
|
||||
warnings is not really mandatory, let's only use this option when the
|
||||
compiler supports it.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Upstream: https://github.com/quiet/libcorrect/pull/25
|
||||
---
|
||||
CMakeLists.txt | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 193f311..e570198 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -3,13 +3,18 @@ project(Correct C)
|
||||
include(CheckLibraryExists)
|
||||
include(CheckIncludeFiles)
|
||||
include(CheckCSourceCompiles)
|
||||
+include(CheckCCompilerFlag)
|
||||
|
||||
if(MSVC)
|
||||
set(LIBM "")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
|
||||
else(MSVC)
|
||||
set(LIBM "m")
|
||||
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -std=c99 -Wpedantic -Wall")
|
||||
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -std=c99 -Wall")
|
||||
+check_c_compiler_flag(-Wpedantic COMPILER_SUPPORTS_WPEDANTIC)
|
||||
+if(COMPILER_SUPPORTS_WPEDANTIC)
|
||||
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic")
|
||||
+endif()
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3 -O0 -fsanitize=address")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_pie,")
|
||||
--
|
||||
2.14.4
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From 1a3bb66608b2f96407d14fe13b782626990060f1 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 20 Nov 2018 08:20:13 +0100
|
||||
Subject: [PATCH] CMakeLists.txt: conditionally use -fsanitize=address
|
||||
|
||||
Check that compiler supports -fsanitize=address before using it
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.net/results/221d6a418e75b39fe645c3a56cee676518d2cff6
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 2e8e07e..c3f71ce 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -17,7 +17,11 @@ if(COMPILER_SUPPORTS_WPEDANTIC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic")
|
||||
endif()
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3 -O0 -fsanitize=address")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3 -O0")
|
||||
+ check_c_compiler_flag("-fsanitize=address -Werror" COMPILER_SUPPORTS_SANITIZE_ADDRESS)
|
||||
+ if(COMPILER_SUPPORTS_SANITIZE_ADDRESS)
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")
|
||||
+ endif()
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_pie,")
|
||||
else()
|
||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
||||
--
|
||||
2.14.1
|
||||
|
||||
12
bsp/buildroot/package/libcorrect/Config.in
Normal file
12
bsp/buildroot/package/libcorrect/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIBCORRECT
|
||||
bool "libcorrect"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
A C library for Forward Error Correction, providing
|
||||
convolutional codes and Reed-Solomon codes. It is part
|
||||
of the Quiet Modem Project.
|
||||
|
||||
https://github.com/quiet/libcorrect
|
||||
|
||||
comment "libcorrect needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
3
bsp/buildroot/package/libcorrect/libcorrect.hash
Normal file
3
bsp/buildroot/package/libcorrect/libcorrect.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 79861750540fb3a1cc501ee217cb4d1febc4855f3fb82e5eb60906eec5379890 libcorrect-ce6c17f1f988765ae3695315d7cce1f2a2e6cf0d.tar.gz
|
||||
sha256 135138cd4304aa637836758dc5edfb5f21b7d09ecc637d25288d206b151a5768 LICENSE
|
||||
13
bsp/buildroot/package/libcorrect/libcorrect.mk
Normal file
13
bsp/buildroot/package/libcorrect/libcorrect.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcorrect
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCORRECT_VERSION = ce6c17f1f988765ae3695315d7cce1f2a2e6cf0d
|
||||
LIBCORRECT_SITE = $(call github,quiet,libcorrect,$(LIBCORRECT_VERSION))
|
||||
LIBCORRECT_LICENSE = BSD-3-Clause
|
||||
LIBCORRECT_LICENSE_FILES = LICENSE
|
||||
LIBCORRECT_INSTALL_STAGING = YES
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user