[Buildroot] [PATCH 1/1] package: add rtty

Romain Naour romain.naour at gmail.com
Sun Mar 22 18:06:16 UTC 2020


Hi Jianhui,

Le 10/03/2020 à 16:06, Jianhui Zhao a écrit :
> Signed-off-by: Jianhui Zhao <zhaojh329 at gmail.com>
> ---
>  package/Config.in      |  1 +
>  package/rtty/Config.in |  7 +++++++
>  package/rtty/rtty.hash |  2 ++
>  package/rtty/rtty.mk   | 15 +++++++++++++++
>  4 files changed, 25 insertions(+)
>  create mode 100644 package/rtty/Config.in
>  create mode 100644 package/rtty/rtty.hash
>  create mode 100644 package/rtty/rtty.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 146fc1bbc3..f5aab078e6 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -2267,6 +2267,7 @@ comment "Utilities"
>  	source "package/pdmenu/Config.in"
>  	source "package/pinentry/Config.in"
>  	source "package/ranger/Config.in"
> +	source "package/rtty/Config.in"
>  	source "package/screen/Config.in"
>  	source "package/sudo/Config.in"
>  	source "package/terminology/Config.in"
> diff --git a/package/rtty/Config.in b/package/rtty/Config.in
> new file mode 100644
> index 0000000000..badb329d3e
> --- /dev/null
> +++ b/package/rtty/Config.in
> @@ -0,0 +1,7 @@
> +config BR2_PACKAGE_RTTY
> +	bool "rtty"
> +	select BR2_PACKAGE_LIBEV
> +	help
> +	  Access your device's terminal from anywhere via the web.
> +
> +	  https://github.com/zhaojh329/rtty
> diff --git a/package/rtty/rtty.hash b/package/rtty/rtty.hash
> new file mode 100644
> index 0000000000..239dc59f78
> --- /dev/null
> +++ b/package/rtty/rtty.hash
> @@ -0,0 +1,2 @@
> +sha256  6faafe75d82edbcfe154da5f1ffc0ddfd14dd88a2315f19aeed7f2631df96f41  rtty-7.1.2.tar.gz
> +sha256  99efed4bbc0b62f96f999ef23399e38234fb91651af734fd389a52b033a85b55  LICENCE
> diff --git a/package/rtty/rtty.mk b/package/rtty/rtty.mk
> new file mode 100644
> index 0000000000..857dc35751
> --- /dev/null
> +++ b/package/rtty/rtty.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# rtty
> +#
> +################################################################################
> +
> +RTTY_VERSION = 7.1.2
> +LIBCURL_SOURCE = rtty-$(RTTY_VERSION).tar.gz

Wrong prefix.

> +RTTY_SITE = https://github.com/zhaojh329/rtty/releases/download/v$(RTTY_VERSION)
> +RTTY_LICENSE = MIT
> +RTTY_LICENSE_FILES = LICENSE
> +
> +RTTY_DEPENDENCIES = libev

What about optional dependencies: openssl, mbedtls, CyaSSl(wolfssl) ?

You can disable SSL support -DRTTY_SSL_SUPPORT=OFF for now and enable it in a
second patch.

We do not recommend adding -Werror unconditionally [1] since rtty can be built
by several compiler version and for several architecture.
Also it's not future proof since new compiler can generate new warnings.

Can you test your package using ./utils/test-pkg and ./utils/check-package

Also, add a new entry in DEVELOPERS file [3]

[1] https://github.com/zhaojh329/rtty/blob/master/src/CMakeLists.txt#L1
[2] http://nightly.buildroot.org/manual.html#_tips_and_tricks
[3] http://nightly.buildroot.org/manual.html#DEVELOPERS

Best regards,
Romain

> +
> +$(eval $(cmake-package))
> 



More information about the buildroot mailing list