From ed6062efbcda90eee7f523b3d63deb1fc36e4a17 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Fri, 27 Jan 2023 07:10:51 -0700 Subject: [PATCH] package/fxdiv: new package This package is required by tensorflow-lite. Signed-off-by: James Hilliard Signed-off-by: Yann E. MORIN --- DEVELOPERS | 1 + package/Config.in | 1 + package/fxdiv/Config.in | 7 +++++++ package/fxdiv/fxdiv.hash | 4 ++++ package/fxdiv/fxdiv.mk | 19 +++++++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 package/fxdiv/Config.in create mode 100644 package/fxdiv/fxdiv.hash create mode 100644 package/fxdiv/fxdiv.mk diff --git a/DEVELOPERS b/DEVELOPERS index 8a652c7c12..706ee80ece 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1339,6 +1339,7 @@ N: James Hilliard F: package/apcupsd/ F: package/bpftool/ F: package/exfatprogs/ +F: package/fxdiv/ F: package/gensio/ F: package/lua-std-debug/ F: package/lua-std-normalize/ diff --git a/package/Config.in b/package/Config.in index 96a44a3623..83fddf316f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2014,6 +2014,7 @@ menu "Other" source "package/flann/Config.in" source "package/flatbuffers/Config.in" source "package/flatcc/Config.in" + source "package/fxdiv/Config.in" source "package/gconf/Config.in" source "package/gdal/Config.in" source "package/gflags/Config.in" diff --git a/package/fxdiv/Config.in b/package/fxdiv/Config.in new file mode 100644 index 0000000000..5aa714e44a --- /dev/null +++ b/package/fxdiv/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_FXDIV + bool "fxdiv" + help + Header-only library for division via fixed-point + multiplication by inverse. + + https://github.com/Maratyszcza/FXdiv diff --git a/package/fxdiv/fxdiv.hash b/package/fxdiv/fxdiv.hash new file mode 100644 index 0000000000..2142d84e09 --- /dev/null +++ b/package/fxdiv/fxdiv.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 ec74d882a0a47cfd9c0f95bc4fae9901a4ade802a96a3b76e02671bb7340a4c5 fxdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.tar.gz +# License files, locally calculated +sha256 7cac00006125b1486a27e4801ed66357236e984c540bd323945ab7b66b078ec3 LICENSE diff --git a/package/fxdiv/fxdiv.mk b/package/fxdiv/fxdiv.mk new file mode 100644 index 0000000000..06dbf0648d --- /dev/null +++ b/package/fxdiv/fxdiv.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# fxdiv +# +################################################################################ + +FXDIV_VERSION = 63058eff77e11aa15bf531df5dd34395ec3017c8 +FXDIV_SITE = $(call github,Maratyszcza,FXdiv,$(FXDIV_VERSION)) +FXDIV_LICENSE = MIT +FXDIV_LICENSE_FILES = LICENSE +FXDIV_INSTALL_STAGING = YES +# Only installs a header +FXDIV_INSTALL_TARGET = NO + +FXDIV_CONF_OPTS = \ + -DFXDIV_BUILD_TESTS=OFF \ + -DFXDIV_BUILD_BENCHMARKS=OFF + +$(eval $(cmake-package))