jturnsek commented on code in PR #1624:
URL: https://github.com/apache/nuttx-apps/pull/1624#discussion_r1126086235


##########
sdr/liquid_dsp/Makefile:
##########
@@ -0,0 +1,247 @@
+###########################################################################
+# apps/sdr/liquid_dsp/Makefile
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.  The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+############################################################################/
+
+include $(APPDIR)/Make.defs
+
+LIQUID_DSP_VERSION  = 1.4.0
+LIQUID_DSP_UNPACK   = liquid-dsp
+LIQUID_DSP_TARBALL  = v$(LIQUID_DSP_VERSION).tar.gz
+LIQUID_DSP_URL_BASE = https://github.com/jgaeddert/liquid-dsp/archive
+LIQUID_DSP_URL      = $(LIQUID_DSP_URL_BASE)/$(LIQUID_DSP_TARBALL)
+
+$(LIQUID_DSP_TARBALL):
+       $(Q) echo "Downloading $(LIQUID_DSP_TARBALL)"
+       $(Q) curl -O -L $(LIQUID_DSP_URL)
+
+$(LIQUID_DSP_UNPACK): $(LIQUID_DSP_TARBALL)
+       $(Q) echo "Unpacking $(LIQUID_DSP_TARBALL) to $(LIQUID_DSP_UNPACK)"
+       $(Q) tar xzvf $(LIQUID_DSP_TARBALL)
+       $(Q) mv liquid-dsp-$(LIQUID_DSP_VERSION) $(LIQUID_DSP_UNPACK)
+       $(Q) cp config.h $(LIQUID_DSP_UNPACK)/include
+
+$(LIQUID_DSP_UNPACK)/.patch: $(LIQUID_DSP_UNPACK)
+       $(Q) touch $(LIQUID_DSP_UNPACK)/.patch
+
+VPATH += $(LIBUV_UNPACK)/include
+
+DEPPATH += --dep-path $(LIBUV_UNPACK)/include
+
+CFLAGS += -I$(LIQUID_DSP_UNPACK)/include
+CFLAGS += -Wall -std=c99
+CFLAGS += -DM_SQRT1_2=0.7071067811865475244008443621048490
+CFLAGS += -DM_SQRT2=1.4142135623730950488016887242096981
+CFLAGS += -DM_PI=3.1415926535897932384626433832795029
+CFLAGS += -DM_LN2=0.6931471805599453094172321214581765
+CFLAGS += -DM_PI_2=1.5707963267948966192313216916397514
+CFLAGS += -DM_2_PI=0.6366197723675813430755350534900574

Review Comment:
   > Sorry, it's changed by me, let's see how to make it work with LuaJIT. Once 
we fix the problem, let's enable LuaJIT in CI to catch the potential break 
before merging the patch.
   
   Let me open PR in the near future and maybe we can work together to bring 
LuaJIT to life. I am also relying on some archiutecture specific stuff in my 
port, i.e. ITCM memory heap for JIT traces, because I am running LuaJIT on i.MX 
RT1064. I am afraid that Cortex M7 is a must.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to