Skip to contentSkip to conversation

package/fft_eval: new package

PATCH Applied Peter Seiderer 3 participants 5 messages Feb 11, 2023 – Aug 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/fft_eval: new package

---
 package/Config.in              |  1 +
 package/fft_eval/Config.in     | 13 ++++++++++++
 package/fft_eval/fft_eval.hash |  5 +++++
 package/fft_eval/fft_eval.mk   | 36 ++++++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 package/fft_eval/Config.in
 create mode 100644 package/fft_eval/fft_eval.hash
 create mode 100644 package/fft_eval/fft_eval.mk
package/Config.in +1 -0
index 511e691ed3..aa19164802 100644
@@ -2206,6 +2206,7 @@ menu "Miscellaneous"
 	source "package/collectl/Config.in"
 	source "package/domoticz/Config.in"
 	source "package/empty/Config.in"
+	source "package/fft_eval/Config.in"
 	source "package/gitlab-runner/Config.in"
 	source "package/gnuradio/Config.in"
 	source "package/googlefontdirectory/Config.in"
package/fft_eval/Config.in new file +13 -0
new file mode 100644
index 0000000000..4b6aa9b388
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_FFT_EVAL
+	bool "fft_eval"
+	help
+	  Pogram to aid open source spectrum analyzer development
+	  for Qualcomm/Atheros AR92xx and AR93xx based chipsets.
+
+	  It visualizes the FFT data reported by the chips to help
+	  interpreting and understanding the data.
+
+	  Enabel sdl2 and sdl2_ttf for the graphic output tool
+	  fft_eval_sdl.
+
+	  https://github.com/simonwunderlich/FFT_eval
package/fft_eval/fft_eval.hash new file +5 -0
new file mode 100644
index 0000000000..ab09e916e7
@@ -0,0 +1,5 @@
+# Locally calculated
+sha256  154f99c3567835bbbbc9ec4c58bc79961f9fa5342effb6f0bc41475fc9a6d11f  fft_eval-6a82b383ce79afc4c1ba26ffcf34b15d3e95894b.tar.gz
+sha256  6a573fb2f9082662978cf21fb153096df0a1981deaea7dbc10a11046fe005d9f  LICENSES/CC0-1.0.txt
+sha256  d1cf0896da7045d841fe45b0991cf35540bac1a17b5d11f4afcf8fcb950246b5  LICENSES/GPL-2.0-only.txt
+sha256  797832eda5ff4360a10fee3be94a3250995e76423b79675c9c44204c37ca492d  LICENSES/OFL-1.1.txt
package/fft_eval/fft_eval.mk new file +36 -0
new file mode 100644
index 0000000000..383b5f9a51
@@ -0,0 +1,36 @@
+################################################################################
+#
+# fft_eval
+#
+################################################################################
+
+FFT_EVAL_VERSION = 6a82b383ce79afc4c1ba26ffcf34b15d3e95894b
+FFT_EVAL_SITE = $(call github,simonwunderlich,FFT_eval,$(FFT_EVAL_VERSION))
+FFT_EVAL_LICENSE = CC0-1.0 (doc), GPL-2.0-only, OFL-1.1 (LiberationSans-Regular.ttf)
+FFT_EVAL_LICENSE_FILES = \
+	LICENSES/CC0-1.0.txt \
+	LICENSES/GPL-2.0-only.txt \
+	LICENSES/OFL-1.1.txt
+
+FFT_EVAL_CONV_OPTS = CONFIG_fft_eval_json=y
+FFT_EVAL_TARGETS = fft_eval_json
+
+ifeq ($(BR2_PACKAGE_SDL2)$(BR2_PACKAGE_SDL2_TTF),yy)
+FFT_EVAL_CONV_OPTS += CONFIG_fft_eval_sdl=y
+FFT_EVAL_DEPENDENCIES += sdl2 sdl2_ttf
+FFT_EVAL_TARGETS += fft_eval_sdl
+else
+FFT_EVAL_CONV_OPTS += CONFIG_fft_eval_sdl=n
+endif
+
+define FFT_EVAL_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS=$(STAGING_DIR)/usr/bin/ $(FFT_EVAL_CONV_OPTS) -C $(@D) all
+endef
+
+define FFT_EVAL_INSTALL_TARGET_CMDS
+	for i in $(FFT_EVAL_TARGETS); do \
+		$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/bin || exit 1; \
+	done
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.39.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Peter,

Quoted 1 line · On Sat, 11 Feb 2023 17:34:22 +0100 Peter Seiderer <[email protected]> wrote:

I have finally reviewed your patch and applied to next, with some changes. See below.

Quoted 9 lines
---
 package/Config.in              |  1 +
 package/fft_eval/Config.in     | 13 ++++++++++++
 package/fft_eval/fft_eval.hash |  5 +++++
 package/fft_eval/fft_eval.mk   | 36 ++++++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 package/fft_eval/Config.in
 create mode 100644 package/fft_eval/fft_eval.hash
 create mode 100644 package/fft_eval/fft_eval.mk

I've renamed from fft_eval to fft-eval, as we prefer - as the separator in package names these days.

I've added an entry in the DEVELOPERS file as well.

package/fft_eval/Config.in line 4

Quoted 10 lines
package/fft_eval/Config.in new file +4 -0
new file mode 100644
index 0000000000..4b6aa9b388
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_FFT_EVAL
+	bool "fft_eval"
+	help
+	  Pogram to aid open source spectrum analyzer development

^^ Program

package/fft_eval/Config.in line 10

Quoted 6 lines
package/fft_eval/Config.in new file +6 -0
+	  for Qualcomm/Atheros AR92xx and AR93xx based chipsets.
+
+	  It visualizes the FFT data reported by the chips to help
+	  interpreting and understanding the data.
+
+	  Enabel sdl2 and sdl2_ttf for the graphic output tool

^^ Enable

Quoted 18 lines
package/fft_eval/Config.in new file +18 -0
+FFT_EVAL_VERSION = 6a82b383ce79afc4c1ba26ffcf34b15d3e95894b
+FFT_EVAL_SITE = $(call github,simonwunderlich,FFT_eval,$(FFT_EVAL_VERSION))
+FFT_EVAL_LICENSE = CC0-1.0 (doc), GPL-2.0-only, OFL-1.1 (LiberationSans-Regular.ttf)
+FFT_EVAL_LICENSE_FILES = \
+	LICENSES/CC0-1.0.txt \
+	LICENSES/GPL-2.0-only.txt \
+	LICENSES/OFL-1.1.txt
+
+FFT_EVAL_CONV_OPTS = CONFIG_fft_eval_json=y
+FFT_EVAL_TARGETS = fft_eval_json
+
+ifeq ($(BR2_PACKAGE_SDL2)$(BR2_PACKAGE_SDL2_TTF),yy)
+FFT_EVAL_CONV_OPTS += CONFIG_fft_eval_sdl=y
+FFT_EVAL_DEPENDENCIES += sdl2 sdl2_ttf
+FFT_EVAL_TARGETS += fft_eval_sdl
+else
+FFT_EVAL_CONV_OPTS += CONFIG_fft_eval_sdl=n
+endif

package/fft_eval/Config.in

Quoted 10 lines
package/fft_eval/Config.in new file +10 -0
+
+define FFT_EVAL_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS=$(STAGING_DIR)/usr/bin/ $(FFT_EVAL_CONV_OPTS) -C $(@D) all
+endef
+
+define FFT_EVAL_INSTALL_TARGET_CMDS
+	for i in $(FFT_EVAL_TARGETS); do \
+		$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/bin || exit 1; \
+	done
+endef

I've use "make install" instead of doing the manual installation here.

Applied to next with those changes. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Hello Thomas,

Quoted 19 lines · Thomas Petazzoni

Hello Peter,

Quoted 1 line · On Sat, 11 Feb 2023 17:34:22 +0100 Peter Seiderer <[email protected]> wrote:

I have finally reviewed your patch and applied to next, with some changes. See below.

Quoted 9 lines
---
 package/Config.in              |  1 +
 package/fft_eval/Config.in     | 13 ++++++++++++
 package/fft_eval/fft_eval.hash |  5 +++++
 package/fft_eval/fft_eval.mk   | 36 ++++++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 package/fft_eval/Config.in
 create mode 100644 package/fft_eval/fft_eval.hash
 create mode 100644 package/fft_eval/fft_eval.mk
Quoted 2 lines

I've renamed from fft_eval to fft-eval, as we prefer - as the separator in package names these days.

O.k.

Quoted 2 lines

I've added an entry in the DEVELOPERS file as well.

O.k.

Quoted 15 lines

package/fft_eval/Config.in line 4

Quoted 12 lines
package/fft_eval/Config.in new file +4 -0
new file mode 100644
index 0000000000..4b6aa9b388
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_FFT_EVAL
+	bool "fft_eval"
+	help
+	  Pogram to aid open source spectrum analyzer development

^^ Program

Quoted 8 lines

package/fft_eval/Config.in line 10

Quoted 6 lines
package/fft_eval/Config.in new file +6 -0
+	  for Qualcomm/Atheros AR92xx and AR93xx based chipsets.
+
+	  It visualizes the FFT data reported by the chips to help
+	  interpreting and understanding the data.
+
+	  Enabel sdl2 and sdl2_ttf for the graphic output tool

^^ Enable

Thanks for fixing my typos ;-)

Quoted 23 lines
Quoted 23 lines
package/fft_eval/Config.in new file +22 -0
+FFT_EVAL_VERSION = 6a82b383ce79afc4c1ba26ffcf34b15d3e95894b
+FFT_EVAL_SITE = $(call github,simonwunderlich,FFT_eval,$(FFT_EVAL_VERSION))
+FFT_EVAL_LICENSE = CC0-1.0 (doc), GPL-2.0-only, OFL-1.1 (LiberationSans-Regular.ttf)
+FFT_EVAL_LICENSE_FILES = \
+	LICENSES/CC0-1.0.txt \
+	LICENSES/GPL-2.0-only.txt \
+	LICENSES/OFL-1.1.txt
+
+FFT_EVAL_CONV_OPTS = CONFIG_fft_eval_json=y
+FFT_EVAL_TARGETS = fft_eval_json
+
+ifeq ($(BR2_PACKAGE_SDL2)$(BR2_PACKAGE_SDL2_TTF),yy)
+FFT_EVAL_CONV_OPTS += CONFIG_fft_eval_sdl=y
+FFT_EVAL_DEPENDENCIES += sdl2 sdl2_ttf
+FFT_EVAL_TARGETS += fft_eval_sdl
+else
+FFT_EVAL_CONV_OPTS += CONFIG_fft_eval_sdl=n
+endif
+
+define FFT_EVAL_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS=$(STAGING_DIR)/usr/bin/ $(FFT_EVAL_CONV_OPTS) -C $(@D) all
+endef
Quoted 8 lines

package/fft_eval/Config.in

Quoted 6 lines
package/fft_eval/Config.in new file +6 -0
+
+define FFT_EVAL_INSTALL_TARGET_CMDS
+	for i in $(FFT_EVAL_TARGETS); do \
+		$(INSTALL) -D -m 0755 $(@D)/$$i $(TARGET_DIR)/usr/bin || exit 1; \
+	done
+endef

I've use "make install" instead of doing the manual installation here.

Looks nicer..., but now the variable FFT_EVAL_TARGETS is unused?

Regards,
Peter

Quoted 4 lines

Applied to next with those changes. Thanks!

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 3 lines · On Fri, 11 Aug 2023 21:22:20 +0200 Peter Seiderer <[email protected]> wrote:
Quoted 1 line

I've use "make install" instead of doing the manual installation here.

Looks nicer..., but now the variable FFT_EVAL_TARGETS is unused?

Dammit, indeed. One of us needs to send a follow-up patch :-)

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Thomas, Peter, All,

On 2023-08-12 00:23 +0200, Thomas Petazzoni via buildroot spake thusly:

Quoted 5 lines
Quoted 2 lines · On Fri, 11 Aug 2023 21:22:20 +0200 Peter Seiderer <[email protected]> wrote:
Quoted 1 line

I've use "make install" instead of doing the manual installation here.

Looks nicer..., but now the variable FFT_EVAL_TARGETS is unused?

Dammit, indeed. One of us needs to send a follow-up patch :-)

I've pushed a fixup commit, thanks!

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot