mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
269bdf6eef
0f022aa lib: increase refcount when returning cached module instance c9e68bb lib: introduce resolver library 9041e24 lib: fix uninitialized memory access on handling %J string formats 4ee06d8 syntax: introduce optional chaining operators ce4a7d9 vm: reset callframes before invoking unhandled exception handler 218e822 vm: clear exception information before calling managed code functions 5b908bd ubus: properly handle signed 64bit values too e43b751 ubus: fix handling signed 16bit and 32bit integers 137428f nl80211: fix issues spotted by static code analyzer b9d4f61 nl80211: treat signal attr values as signed integers 9a7c355 nl80211: expose sta_info attributes bb358d9 lib: introduce Linux 802.11 netlink binding 914f54c types: fix invalid memory access on setting non-contiguous array indexes 631f00d main: fix leaking module name when processing -m flag e55188b compiler: properly handle jumps to offset 0 98c4147 tests: support specifying cmdline args in testcase files 64e4f68 types: fix formatting escape sequences for 8 bit chars dd86e1d rtnl: automatically derive message family from certain address attrs 74fdb97 rtnl: expose IPv4 and IPv6 devconfig information 7fa1008 rtnl: allow reply nla payloads to be smaller than headsize cbae3cb lib: introduce Linux route netlink binding e6dd389 ci: adjust build prereqs for GitHub as well 07ae165 ci: add libnl-tiny to prereqs Signed-off-by: Jo-Philipp Wich <jo@mein.io>
197 lines
4.8 KiB
Makefile
197 lines
4.8 KiB
Makefile
#
|
|
# Copyright (C) 2020-2021 Jo-Philipp Wich <jo@mein.io>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ucode
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=https://github.com/jow-/ucode.git
|
|
PKG_SOURCE_DATE:=2021-10-25
|
|
PKG_SOURCE_VERSION:=a7976c2802a9da737f62bec496c7115211c442a7
|
|
PKG_MIRROR_HASH:=6bc3ddeef41d68fd96894957356472e576c625fcf7277cbb36aa464b8d3c274d
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_LICENSE:=ISC
|
|
|
|
PKG_ABI_VERSION:=20210730
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_OPTIONS += -DSOVERSION=$(PKG_ABI_VERSION)
|
|
|
|
define Package/ucode/default
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=ucode - Tiny scripting and templating language
|
|
endef
|
|
|
|
define Package/ucode
|
|
$(Package/ucode/default)
|
|
DEPENDS:=+libucode
|
|
endef
|
|
|
|
define Package/ucode/description
|
|
ucode is a tiny script interpreter featuring an ECMAScript oriented
|
|
script language and Jinja-inspired templating.
|
|
endef
|
|
|
|
|
|
define Package/libucode
|
|
$(Package/ucode/default)
|
|
TITLE+= - runtime library
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
|
DEPENDS:=+libjson-c
|
|
endef
|
|
|
|
define Package/libucode/description
|
|
The libucode package provides the shared runtime library for the ucode interpreter.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-fs
|
|
$(Package/ucode/default)
|
|
TITLE+= (filesystem module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-fs/description
|
|
The filesystem plugin module allows interaction with the local file system.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-math
|
|
$(Package/ucode/default)
|
|
TITLE+= (math module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-math/description
|
|
The math plugin provides access to various <math.h> procedures.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-nl80211
|
|
$(Package/ucode/default)
|
|
TITLE+= (nl80211 module)
|
|
DEPENDS:=ucode +libnl-tiny
|
|
endef
|
|
|
|
define Package/ucode-mod-nl80211/description
|
|
The nl80211 plugin provides access to the Linux wireless 802.11 netlink API.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-resolv
|
|
$(Package/ucode/default)
|
|
TITLE+= (resolv module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-resolv/description
|
|
The resolv plugin implements simple DNS resolving.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-rtnl
|
|
$(Package/ucode/default)
|
|
TITLE+= (rtnl module)
|
|
DEPENDS:=ucode +libnl-tiny
|
|
endef
|
|
|
|
define Package/ucode-mod-rtnl/description
|
|
The rtnl plugin provides access to the Linux routing netlink API.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-ubus
|
|
$(Package/ucode/default)
|
|
TITLE+= (ubus module)
|
|
DEPENDS:=ucode +libubus +libblobmsg-json
|
|
endef
|
|
|
|
define Package/ucode-mod-ubus/description
|
|
The ubus module allows ucode template scripts to enumerate and invoke ubus
|
|
procedures.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-uci
|
|
$(Package/ucode/default)
|
|
TITLE+= (uci module)
|
|
DEPENDS:=ucode +libuci
|
|
endef
|
|
|
|
define Package/ucode-mod-uci/description
|
|
The uci module allows templates to read and modify uci configuration.
|
|
endef
|
|
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include/ucode
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ucode/*.h $(1)/usr/include/ucode/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucode.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
|
|
define Package/ucode/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ucode $(1)/usr/bin/ucode
|
|
endef
|
|
|
|
define Package/libucode/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucode.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/ucode-mod-fs/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/fs.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-math/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/math.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-nl80211/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/nl80211.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-resolv/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/resolv.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-rtnl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/rtnl.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-ubus/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/ubus.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-uci/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/uci.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,ucode))
|
|
$(eval $(call BuildPackage,libucode))
|
|
$(eval $(call BuildPackage,ucode-mod-fs))
|
|
$(eval $(call BuildPackage,ucode-mod-math))
|
|
$(eval $(call BuildPackage,ucode-mod-nl80211))
|
|
$(eval $(call BuildPackage,ucode-mod-resolv))
|
|
$(eval $(call BuildPackage,ucode-mod-rtnl))
|
|
$(eval $(call BuildPackage,ucode-mod-ubus))
|
|
$(eval $(call BuildPackage,ucode-mod-uci))
|