[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT/LIBFFT2D PATCH] Set default "dimension" menu option to 2, as needed by tflite.



There is no practical way to programmatically set a choice option in
kConfig, so we set the default value to 2, as needed by TensorFlow
Lite. We also add suppress flags for cleaner builds.

Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx
---
 Config.uk   |  3 ++-
 Makefile.uk | 10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/Config.uk b/Config.uk
index 73f6b2e..58aeaf1 100644
--- a/Config.uk
+++ b/Config.uk
@@ -1,5 +1,5 @@
 menuconfig LIBFFT2D
-    bool "Fast Fourier Transform library"
+    bool "libff2td - Fast Fourier Transform library"
     select LIBUNWIND
     select LIBCOMPILER-RT
     select LIBCXX
@@ -11,6 +11,7 @@ menuconfig LIBFFT2D
 if LIBFFT2D
     choice DIMENSION
         prompt "DIMENSION"
+       default LIBFFT2D_2D
 
         config LIBFFT2D_1D
             bool "1"
diff --git a/Makefile.uk b/Makefile.uk
index 3a00071..412319f 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -49,9 +49,15 @@ LIBFFT2D_SRC=$(LIBFFT2D_ORIGIN)/$(LIBFFT2D_SUBDIR)
 
################################################################################
 # Library includes
 
################################################################################
-CXXINCLUDES-$(CONFIG_LIBFFT2D) += -I$(LIBFFT2D_SRC)/
+CXXINCLUDES-$(CONFIG_LIBFFT2D) += -I$(LIBFFT2D_SRC)
+CINCLUDES-$(CONFIG_LIBFFT2D) += -I$(LIBFFT2D_SRC)
 
-CINCLUDES-$(CONFIG_LIBFFT2D) += -I$(LIBFFT2D_SRC)/
+################################################################################
+# Global flags
+################################################################################
+LIBFFT2D_SUPPRESS_FLAGS += -Wno-unused-parameter
+LIBFFT2D_CFLAGS-y += $(LIBFFT2D_SUPPRESS_FLAGS)
+LIBFFT2D_CXXFLAGS-y += $(LIBFFT2D_SUPPRESS_FLAGS)
 
 
################################################################################
 # Library sources
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.