From patchwork Sun Oct 18 11:11:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1383822 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=J+5au5Ct; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CDcf840gRz9sSs for ; Sun, 18 Oct 2020 22:11:44 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 917F28774C; Sun, 18 Oct 2020 11:11:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9lOZCPNy3yCV; Sun, 18 Oct 2020 11:11:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4B67E87747; Sun, 18 Oct 2020 11:11:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E40F31BF36A for ; Sun, 18 Oct 2020 11:11:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DC4E087663 for ; Sun, 18 Oct 2020 11:11:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YijScPm5DD3Y for ; Sun, 18 Oct 2020 11:11:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f65.google.com (mail-ej1-f65.google.com [209.85.218.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id D102C8765E for ; Sun, 18 Oct 2020 11:11:37 +0000 (UTC) Received: by mail-ej1-f65.google.com with SMTP id ce10so9908695ejc.5 for ; Sun, 18 Oct 2020 04:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wrZbQSQDzmvQAokq5HHh2Wz4VsFVjLhmEx70DgDHVlI=; b=J+5au5Ct8yYdCWUkFC6ZSetsD22nVd5SuW2PvyCgbWV12auNSfnlrY4Db5sEE7FkRx 1IzvaESsW9s82Oe6dwHdx9BreU5N6NwB84JNOZgns+rxj6nomNNiM/o+ukrf3zTiMHvC 7InVO8htHlYmEOD1bJ32+LCkCMzoX/kt0ygiEfldUaKWPaZ1f3GVrSWKRqtKfzieBVrc yQXHHw5hdHBh/JjKjeLiW5+W+xxneSBAnbtsIWaYwNMdbkWH2hY/xY+oEM/nCrrcUqRa nweE5e+39x5OjbvWgR1SPRNLLfV85Iqv9mjsVBV7yTqWAcPgNFzvYLEpzCe29R4aYPSj /nwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wrZbQSQDzmvQAokq5HHh2Wz4VsFVjLhmEx70DgDHVlI=; b=Ai77j3uzYdqbASEBLzydnIsN7++SBHUWUKXKtPJulofR0r1I/Fm+oXkYpJjOWk25UM xPQ9laMFxPFH2UxCd9dPd8VRdY4HfiOOjqqS3gc3QdFHnbOsDnDVm33HV8B8jeHHTYTK GUINHMHxBObGfsGsUT2XYvgGTHkbxlQbDD0JC75HWgSnzldBAMYaz9WWSgwadpy6xQR1 vjKgxmd9O4O9F3Ks48R97SCgpja7VrwYZQigE1E63hwRBPICVgwDuMgeie8kEMq0dTU7 GZITZp0rdxL7Pa8AV1W1c8QjwMHYsIku3nd8bk3ympumX9fn3kDUbF0DBXq33RE8+PEj 2SAA== X-Gm-Message-State: AOAM531cuAsDKLvWKtWVf+VuAwnVDxxFTXsM+rcom7legoMZ38PmhBdo iMT8qwrOkDFJsq7kjNTALMXcnOS1hRc= X-Google-Smtp-Source: ABdhPJyeGDRER0YOqzj5/fU7fH/UeRH7IRDyT9q8FR1LSOJafyj3nOs++/lnkp6kuAQtZMqk6H4MTw== X-Received: by 2002:a17:906:1e04:: with SMTP id g4mr12178273ejj.72.1603019496042; Sun, 18 Oct 2020 04:11:36 -0700 (PDT) Received: from vm-xubuntu20.04 (12.197.24.93.rev.sfr.net. [93.24.197.12]) by smtp.gmail.com with ESMTPSA id bn2sm7092328ejb.48.2020.10.18.04.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Oct 2020 04:11:35 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Sun, 18 Oct 2020 13:11:25 +0200 Message-Id: <20201018111125.899134-1-francois.perrad@gadz.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/quickjs: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad --- package/Config.in | 1 + package/quickjs/Config.in | 9 +++++++++ package/quickjs/quickjs.hash | 2 ++ package/quickjs/quickjs.mk | 37 ++++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 package/quickjs/Config.in create mode 100644 package/quickjs/quickjs.hash create mode 100644 package/quickjs/quickjs.mk diff --git a/package/Config.in b/package/Config.in index d7e79f479..f64b68d38 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1225,6 +1225,7 @@ menu "External python modules" source "package/python-zope-interface/Config.in" endmenu endif + source "package/quickjs/Config.in" source "package/ruby/Config.in" source "package/tcl/Config.in" if BR2_PACKAGE_TCL diff --git a/package/quickjs/Config.in b/package/quickjs/Config.in new file mode 100644 index 000000000..e5675ad14 --- /dev/null +++ b/package/quickjs/Config.in @@ -0,0 +1,9 @@ + +config BR2_PACKAGE_QUICKJS + bool "quickjs" + 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/ diff --git a/package/quickjs/quickjs.hash b/package/quickjs/quickjs.hash new file mode 100644 index 000000000..076e4bddb --- /dev/null +++ b/package/quickjs/quickjs.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 0021a3e8cdc6b61e225411d05e2841d2437e1ccf4b4cabb9a5f7685ebfb57717 quickjs-2020-09-06.tar.xz diff --git a/package/quickjs/quickjs.mk b/package/quickjs/quickjs.mk new file mode 100644 index 000000000..af35dba62 --- /dev/null +++ b/package/quickjs/quickjs.mk @@ -0,0 +1,37 @@ +################################################################################ +# +# quickjs +# +################################################################################ + +QUICKJS_VERSION = 2020-09-06 +QUICKJS_SOURCE = quickjs-$(QUICKJS_VERSION).tar.xz +QUICKJS_SITE = https://bellard.org/quickjs +QUICKJS_LICENSE = MIT +QUICKJS_INSTALL_STAGING = YES + +define QUICKJS_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ + CROSS_PREFIX="$(TARGET_CROSS)" \ + all +endef + +define QUICKJS_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ + CROSS_PREFIX="$(TARGET_CROSS)" \ + DESTDIR=$(STAGING_DIR) \ + STRIP=true \ + prefix=/usr \ + install +endef + +define QUICKJS_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ + CROSS_PREFIX="$(TARGET_CROSS)" \ + DESTDIR=$(TARGET_DIR) \ + STRIP=true \ + prefix=/usr \ + install +endef + +$(eval $(generic-package))