initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_QUICKJS
|
||||
bool "quickjs"
|
||||
depends on !BR2_nios2 # fenv.h lacks FE_{DOWN,UP}WARD on nios2
|
||||
depends on !BR2_STATIC_LIBS
|
||||
# No way to check for fenv support.
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
||||
depends on BR2_HOST_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
QuickJS is a small and embeddable Javascript engine.
|
||||
It supports the ES2020 specification including modules,
|
||||
asynchronous generators, proxies and BigInt.
|
||||
|
||||
https://bellard.org/quickjs/
|
||||
|
||||
comment "quickjs needs a glibc or musl toolchain w/ gcc >= 4.9, host gcc >= 4.9, dynamic library"
|
||||
depends on !BR2_nios2
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_HOST_GCC_AT_LEAST_4_9
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a quickjs-2021-03-27.tar.xz
|
||||
sha256 f41baf09eef895d468d18c23055d74f711e4b8b2641cef279b5d71285c07bfe8 LICENSE
|
||||
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# quickjs
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QUICKJS_VERSION = 2021-03-27
|
||||
QUICKJS_SOURCE = quickjs-$(QUICKJS_VERSION).tar.xz
|
||||
QUICKJS_SITE = https://bellard.org/quickjs
|
||||
QUICKJS_LICENSE = MIT
|
||||
QUICKJS_LICENSE_FILES = LICENSE
|
||||
QUICKJS_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
QUICKJS_EXTRA_LIBS += -latomic
|
||||
endif
|
||||
|
||||
define QUICKJS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
CROSS_PREFIX="$(TARGET_CROSS)" \
|
||||
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
||||
all
|
||||
endef
|
||||
|
||||
define QUICKJS_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
CROSS_PREFIX="$(TARGET_CROSS)" \
|
||||
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
||||
DESTDIR=$(STAGING_DIR) \
|
||||
STRIP=/bin/true \
|
||||
prefix=/usr \
|
||||
install
|
||||
endef
|
||||
|
||||
define QUICKJS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
CROSS_PREFIX="$(TARGET_CROSS)" \
|
||||
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
STRIP=/bin/true \
|
||||
prefix=/usr \
|
||||
install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user