Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
From a6803c235c0107f3690010c2fc429e3875c4b7c6 Mon Sep 17 00:00:00 2001
|
||||
From: Silvio Traversaro <silvio@traversaro.it>
|
||||
Date: Thu, 22 May 2025 19:26:16 +0200
|
||||
Subject: [PATCH] Set policy_max to 3.10 in cmake_minimum_required to support
|
||||
CMake 4.0
|
||||
|
||||
Upstream: https://github.com/flann-lib/flann/pull/526
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[backported to 1.9.2]
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f79d173a..85d5a560 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.6)
|
||||
+cmake_minimum_required(VERSION 2.8.12...3.10)
|
||||
|
||||
if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0003 NEW)
|
||||
28
package/flann/Config.in
Normal file
28
package/flann/Config.in
Normal file
@@ -0,0 +1,28 @@
|
||||
config BR2_PACKAGE_FLANN
|
||||
bool "flann"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
|
||||
select BR2_PACKAGE_LZ4
|
||||
help
|
||||
FLANN is a library for performing fast approximate nearest
|
||||
neighbor searches in high dimensional spaces. It contains a
|
||||
collection of algorithms we found to work best for nearest
|
||||
neighbor search and a system for automatically choosing the
|
||||
best algorithm and optimum parameters depending on the
|
||||
dataset.
|
||||
|
||||
http://www.cs.ubc.ca/research/flann/
|
||||
|
||||
if BR2_PACKAGE_FLANN
|
||||
|
||||
config BR2_PACKAGE_FLANN_EXAMPLES
|
||||
bool "flann examples"
|
||||
help
|
||||
Build and install flann example applications.
|
||||
|
||||
endif
|
||||
|
||||
comment "flann needs a toolchain w/ C++, dynamic library, gcc >= 4.7"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
|
||||
3
package/flann/flann.hash
Normal file
3
package/flann/flann.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 e26829bb0017f317d9cc45ab83ddcb8b16d75ada1ae07157006c1e7d601c8824 flann-1.9.2.tar.gz
|
||||
sha256 3993f339cc56506c62aa1eb2fb76f240ee93b738d857832899c1e207b1dc069a COPYING
|
||||
29
package/flann/flann.mk
Normal file
29
package/flann/flann.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# flann
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLANN_VERSION = 1.9.2
|
||||
FLANN_SITE = $(call github,mariusmuja,flann,$(FLANN_VERSION))
|
||||
FLANN_INSTALL_STAGING = YES
|
||||
FLANN_LICENSE = BSD-3-Clause
|
||||
FLANN_LICENSE_FILES = COPYING
|
||||
FLANN_DEPENDENCIES = host-pkgconf lz4
|
||||
FLANN_CONF_OPTS = \
|
||||
-DBUILD_C_BINDINGS=ON \
|
||||
-DBUILD_PYTHON_BINDINGS=OFF \
|
||||
-DBUILD_MATLAB_BINDINGS=OFF \
|
||||
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_FLANN_EXAMPLES),ON,OFF) \
|
||||
-DUSE_OPENMP=$(if $(BR2_TOOLCHAIN_HAS_OPENMP),ON,OFF) \
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=TRUE
|
||||
|
||||
FLANN_CXXFLAGS = $(TARGET_CXXFLAGS) -std=c++11
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
||||
FLANN_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
FLANN_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(FLANN_CXXFLAGS)"
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user