initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From 03daae49c8fa94513b508bd12f1597e8e5e086f2 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 17 Apr 2021 13:06:44 +0200
|
||||
Subject: [PATCH] CMakeLists.txt: respect BUILD_TESTING
|
||||
|
||||
Don't build tests if the standard cmake BUILD_TESTING variable is set to
|
||||
OFF.
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/mapbox/protozero/pull/105]
|
||||
---
|
||||
CMakeLists.txt | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f9702d6..7a40212 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -23,6 +23,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
+option(BUILD_TESTING "Build tests" ON)
|
||||
option(WERROR "Add -Werror flag to build (turns warnings into errors)" ON)
|
||||
|
||||
if(MSVC)
|
||||
@@ -134,13 +135,13 @@ install(DIRECTORY include/protozero DESTINATION include)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
-enable_testing()
|
||||
-
|
||||
add_subdirectory(doc)
|
||||
|
||||
add_subdirectory(tools)
|
||||
|
||||
-add_subdirectory(test)
|
||||
-
|
||||
+if(BUILD_TESTING)
|
||||
+ enable_testing()
|
||||
+ add_subdirectory(test)
|
||||
+endif()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_PROTOZERO
|
||||
bool "protozero"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
|
||||
help
|
||||
Minimalistic protocol buffer decoder and encoder in C++.
|
||||
Designed for high performance. Suitable for writing zero copy
|
||||
parsers and encoders with minimal need for run-time allocation
|
||||
of memory.
|
||||
Low-level: this is designed to be a building block for writing
|
||||
a very customized decoder for a stable protobuf schema. If
|
||||
your protobuf schema is changing frequently or lazy decoding
|
||||
is not critical for your application then this approach offers
|
||||
no value: just use the C++ API that can be generated with
|
||||
the Google Protobufs protoc program.
|
||||
|
||||
https://github.com/mapbox/protozero
|
||||
|
||||
comment "protozero needs a toolchain w/ C++, gcc >= 4.7"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 beffbdfab060854fd770178a8db9c028b5b6ee4a059a2fed82c46390a85f3f31 protozero-1.7.0.tar.gz
|
||||
sha256 1f4d477e3c2d74d8706c8f05437bd86804abe46853b1f233ce1549a4de76fa49 LICENSE.md
|
||||
sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594 LICENSE.from_folly
|
||||
@@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# protozero
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PROTOZERO_VERSION = 1.7.0
|
||||
PROTOZERO_SITE = $(call github,mapbox,protozero,v$(PROTOZERO_VERSION))
|
||||
PROTOZERO_LICENSE = BSD-2-Clause, Apache-2.0
|
||||
PROTOZERO_LICENSE_FILES = LICENSE.md LICENSE.from_folly
|
||||
PROTOZERO_INSTALL_STAGING = YES
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user