mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
ubox: move getrandom into separate getrandom package
So it's possible to install or remove it as needed. Tested-by: Lucian Cristian <lucian.cristian@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
714bd89fce
commit
9b4de712ca
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ubox
|
PKG_NAME:=ubox
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
||||||
@ -27,18 +27,28 @@ define Package/ubox
|
|||||||
TITLE:=OpenWrt system helper toolbox
|
TITLE:=OpenWrt system helper toolbox
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/getrandom
|
||||||
|
SECTION:=base
|
||||||
|
CATEGORY:=Base system
|
||||||
|
TITLE:=OpenWrt getrandom system helper
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/logd
|
define Package/logd
|
||||||
SECTION:=base
|
SECTION:=base
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
DEPENDS:=+libubox +libubus +libblobmsg-json +USE_GLIBC:librt
|
DEPENDS:=+libubox +libubus +libblobmsg-json +USE_GLIBC:librt
|
||||||
TITLE:=OpenWrt system log implementation
|
TITLE:=OpenWrt system log implementation
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/getrandom/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getrandom $(1)/usr/bin/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/ubox/install
|
define Package/ubox/install
|
||||||
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib $(1)/usr/bin
|
||||||
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,validate_data} $(1)/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,validate_data} $(1)/sbin/
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getrandom $(1)/usr/bin/
|
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
|
||||||
|
|
||||||
$(LN) kmodloader $(1)/sbin/rmmod
|
$(LN) kmodloader $(1)/sbin/rmmod
|
||||||
@ -56,4 +66,5 @@ define Package/logd/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ubox))
|
$(eval $(call BuildPackage,ubox))
|
||||||
|
$(eval $(call BuildPackage,getrandom))
|
||||||
$(eval $(call BuildPackage,logd))
|
$(eval $(call BuildPackage,logd))
|
||||||
|
Loading…
Reference in New Issue
Block a user