mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg: add support for Elk tiny JS engine
This commit is contained in:
parent
b0d5e9a027
commit
4989258ae1
@ -14,6 +14,7 @@ rsource "cn-cbor/Kconfig"
|
||||
rsource "driver_atwinc15x0/Kconfig"
|
||||
rsource "driver_bme680/Kconfig"
|
||||
rsource "driver_sx126x/Kconfig"
|
||||
rsource "elk/Kconfig"
|
||||
rsource "emlearn/Kconfig"
|
||||
rsource "fff/Kconfig"
|
||||
rsource "gemmlowp/Kconfig"
|
||||
|
11
pkg/elk/Kconfig
Normal file
11
pkg/elk/Kconfig
Normal file
@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2021 Inria
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU Lesser
|
||||
# General Public License v2.1. See the file LICENSE in the top level
|
||||
# directory for more details.
|
||||
|
||||
config PACKAGE_ELK
|
||||
bool "Elk: a tiny Javascript engine"
|
||||
select MODULE_PRINTF_FLOAT
|
||||
depends on !HAS_ARCH_AVR8
|
||||
depends on TEST_KCONFIG
|
13
pkg/elk/Makefile
Normal file
13
pkg/elk/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
PKG_NAME=elk
|
||||
PKG_URL=https://github.com/cesanta/elk
|
||||
PKG_VERSION=1eab37bd9041d93a0bdfcd4335b2dcdba1076c67 # 2.1.0
|
||||
PKG_LICENSE=GPLv2
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
CFLAGS += -Wno-format-nonliteral
|
||||
CFLAGS += -Wno-pedantic
|
||||
CFLAGS += -Wno-unused-parameter
|
||||
|
||||
all:
|
||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/$(PKG_NAME).mk
|
5
pkg/elk/Makefile.dep
Normal file
5
pkg/elk/Makefile.dep
Normal file
@ -0,0 +1,5 @@
|
||||
# For numeric values, Elk uses float string formatting...
|
||||
USEMODULE += printf_float
|
||||
|
||||
# Blacklist AVR8 since printing float is not well supported on these platforms
|
||||
FEATURES_BLACKLIST += arch_avr8
|
1
pkg/elk/Makefile.include
Normal file
1
pkg/elk/Makefile.include
Normal file
@ -0,0 +1 @@
|
||||
INCLUDES += -I$(PKGDIRBASE)/elk
|
11
pkg/elk/doc.txt
Normal file
11
pkg/elk/doc.txt
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @defgroup pkg_elk Elk: a tiny Javascript engine
|
||||
* @ingroup pkg
|
||||
* @brief Elk is a tiny embeddable JavaScript engine that implements a small but usable subset of ES6
|
||||
*
|
||||
* # License
|
||||
*
|
||||
* Licensed under GPLv2 + Commercial
|
||||
*
|
||||
* @see https://github.com/cesanta/elk
|
||||
*/
|
3
pkg/elk/elk.mk
Normal file
3
pkg/elk/elk.mk
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE = elk
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
Loading…
Reference in New Issue
Block a user