package/fft2d: new package

This package is required by tensorflow-lite.

This package doesn't provide a conventional install mechanism so
we need to install it manually.

Tested-by: Stefan Hager <stefan.hager@ginzinger.com>
Signed-off-by: Stefan Hager <stefan.hager@ginzinger.com>
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Stefan Hager
2025-01-28 10:01:51 -07:00
committed by Julien Olivain
parent 1bfc85a688
commit 7d7530af3a
5 changed files with 36 additions and 0 deletions

View File

@@ -3035,6 +3035,7 @@ F: package/ti-gfx/
N: Stefan Hager <stefan.hager@ginzinger.com>
F: package/cpuinfo/
F: package/fp16/
F: package/fft2d/
F: package/gemmlowp/
F: package/psimd/
F: package/pthreadpool/

View File

@@ -2183,6 +2183,7 @@ menu "Other"
source "package/elfutils/Config.in"
source "package/ell/Config.in"
source "package/falcosecurity-libs/Config.in"
source "package/fft2d/Config.in"
source "package/fftw/Config.in"
source "package/flann/Config.in"
source "package/flatbuffers/Config.in"

7
package/fft2d/Config.in Normal file
View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_FFT2D
bool "fft2d"
help
This is a package to calculate Discrete Fourier/Cosine/Sine
Transforms of 2,3-dimensional sequences of length 2^N.
http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html

4
package/fft2d/fft2d.hash Normal file
View File

@@ -0,0 +1,4 @@
# Locally calculated
sha256 ada7e99087c4ed477bfdf11413f2ba8db8a840ba9bbf8ac94f4f3972e2a7cec9 fft2d.tgz
# License files, locally calculated
sha256 0b2a2082537735a2a576dbec2e8f9c1a09812eac6df6a389502a6ba860072906 readme2d.txt

23
package/fft2d/fft2d.mk Normal file
View File

@@ -0,0 +1,23 @@
################################################################################
#
# fft2d
#
################################################################################
FFT2D_VERSION = 2006.12.28
FFT2D_SITE = https://www.kurims.kyoto-u.ac.jp/~ooura
FFT2D_SOURCE = fft2d.tgz
FFT2D_LICENSE = MIT-like
FFT2D_LICENSE_FILES = readme2d.txt
FFT2D_INSTALL_STAGING = YES
# Only installs headers/sources
FFT2D_INSTALL_TARGET = NO
define FFT2D_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/fft2d
$(INSTALL) -m 0644 $(@D)/*.c $(STAGING_DIR)/usr/include/fft2d
$(INSTALL) -m 0644 $(@D)/*.f $(STAGING_DIR)/usr/include/fft2d
$(INSTALL) -m 0644 $(@D)/*.h $(STAGING_DIR)/usr/include/fft2d
endef
$(eval $(generic-package))