generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,39 @@
|
||||
From 7291289ba0c052e45e2a0330642318798d6a4caf Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
Date: Fri, 27 Jan 2017 16:02:27 +0100
|
||||
Subject: [PATCH] asplib_CPUTimer.h: Fix time.h include
|
||||
|
||||
According to https://linux.die.net/man/3/clock_gettime time.h needs to
|
||||
be included instead of sys/time.h.
|
||||
|
||||
This patch fixes a build error found by buildroot autobuilders:
|
||||
|
||||
http://autobuild.buildroot.net/results/cc0/cc0b928ee24a526b7c82fd3f391e2be024a14578//
|
||||
|
||||
/home/peko/autobuild/instance-1/output/build/libasplib-be7fac89218a84b75f7598e3d76625ece99296f2/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.cpp: In member function 'void asplib::CCPUTimer::start_Timer()':
|
||||
/home/peko/autobuild/instance-1/output/build/libasplib-be7fac89218a84b75f7598e3d76625ece99296f2/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.cpp:69:19: error: 'CLOCK_REALTIME' was not declared in this scope
|
||||
clock_gettime(CLOCK_REALTIME, &m_startTime);
|
||||
|
||||
Patch sent upstream: https://github.com/AchimTuran/asplib/pull/34
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h b/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h
|
||||
index a61ff49..a9676e0 100644
|
||||
--- a/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h
|
||||
+++ b/asplib_modules/Timer/asplib/Timer/asplib_CPUTimer.h
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <windows.h>
|
||||
#include <time.h>
|
||||
#elif defined(TARGET_LINUX)
|
||||
- #include <sys/time.h>
|
||||
+ #include <time.h>
|
||||
#endif
|
||||
|
||||
namespace asplib
|
||||
--
|
||||
2.11.0
|
||||
|
||||
11
package/libasplib/Config.in
Normal file
11
package/libasplib/Config.in
Normal file
@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_LIBASPLIB
|
||||
bool "libasplib"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
asplib (Achim's Signal Processing LIBrary), is a small and
|
||||
lightweight C++ library for digital signal processing.
|
||||
|
||||
https://github.com/AchimTuran/asplib
|
||||
|
||||
comment "asplib needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
3
package/libasplib/libasplib.hash
Normal file
3
package/libasplib/libasplib.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 68e117348fa17592dde7672477e927119a0e477103ced1d3a57d92e30880a147 libasplib-be7fac89218a84b75f7598e3d76625ece99296f2.tar.gz
|
||||
sha256 12ac5047f2af0522f06798b1589ffc4599bc29c91f954d7874e0320634e777c0 LICENSE
|
||||
21
package/libasplib/libasplib.mk
Normal file
21
package/libasplib/libasplib.mk
Normal file
@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# libasplib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBASPLIB_VERSION = be7fac89218a84b75f7598e3d76625ece99296f2
|
||||
LIBASPLIB_SITE = $(call github,AchimTuran,asplib,$(LIBASPLIB_VERSION))
|
||||
LIBASPLIB_LICENSE = GPL-3.0+
|
||||
LIBASPLIB_LICENSE_FILES = LICENSE
|
||||
LIBASPLIB_INSTALL_STAGING = YES
|
||||
|
||||
LIBASPLIB_CONF_OPTS = \
|
||||
-DASPLIB_MODULES_TO_BUILD=some \
|
||||
-DBUILD_BIQUAD=ON \
|
||||
-DBUILD_IIR=ON \
|
||||
-DBUILD_LOGGER=ON \
|
||||
-DBUILD_SIGNALS=ON \
|
||||
-DBUILD_TIMER=ON
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user