2 # Copyright (C) 2023 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE_URL
=$(PROJECT_GIT
)/project
/udebug.git
14 PKG_MIRROR_HASH
:=c0d3701516dcbe0fe2badbeda50076e4f07ec054c4a80621c7aaf4e83ea75d0c
15 PKG_SOURCE_DATE
:=2023-11-27
16 PKG_SOURCE_VERSION
:=d4b99820afd03a726ea50687d4393007da0fd0df
17 PKG_ABI_VERSION
:=$(call abi_version_str
,$(PKG_SOURCE_DATE
))
20 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/cmake.mk
25 define Package
/libudebug
28 TITLE
:=udebug client library
32 define Package
/udebugd
35 TITLE
:=OpenWrt debug service
36 DEPENDS
:=+libudebug
+libubus
39 define Package
/udebugd
/conffiles
43 define Package
/ucode-mod-udebug
46 TITLE
:=ucode udebug module
47 DEPENDS
:=+libucode
+libudebug
50 define Package
/udebug-cli
53 TITLE
:=OpenWrt debug service CLI
54 DEPENDS
:=+udebugd
+ucode-mod-udebug
57 define Package
/libudebug
/install
58 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
62 define Package
/ucode-mod-udebug
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
/ucode
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/ucode
/*.so
$(1)/usr
/lib
/ucode
67 define Package
/udebugd
/install
68 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
$(1)/etc
/config
69 $(INSTALL_BIN
) .
/files
/udebug.config
$(1)/etc
/config
/udebug
70 $(INSTALL_BIN
) .
/files
/udebug.init
$(1)/etc
/init.d
/udebug
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/udebugd
$(1)/usr
/sbin
74 define Package
/udebug-cli
/install
75 $(INSTALL_DIR
) $(1)/usr
/sbin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/udebug-cli
$(1)/usr
/sbin
/udebug
79 $(eval
$(call BuildPackage
,libudebug
))
80 $(eval
$(call BuildPackage
,udebugd
))
81 $(eval
$(call BuildPackage
,ucode-mod-udebug
))
82 $(eval
$(call BuildPackage
,udebug-cli
))