From f6fa3f1a0b65143474700a6c4965ec66aeb86d86 Mon Sep 17 00:00:00 2001 From: vdutta Date: Tue, 14 Feb 2023 14:05:07 +0530 Subject: [PATCH] obudpst: support host package --- obudpst/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/obudpst/Makefile b/obudpst/Makefile index 392c3809e..c1cb098b5 100644 --- a/obudpst/Makefile +++ b/obudpst/Makefile @@ -16,9 +16,12 @@ PKG_MIRROR_HASH:=skip PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=LICENSE +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk +CMAKE_OPTIONS += -DDISABLE_INT_TIMER=ON + define Package/obudpst CATEGORY:=Utilities DEPENDS+=+libopenssl @@ -39,4 +42,10 @@ define Package/obudpst/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/udpst $(1)/usr/sbin/udpst endef +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/obudpst + $(CP) $(HOST_BUILD_DIR)/udpst $(STAGING_DIR_HOST)/obudpst/ +endef + +$(eval $(call HostBuild)) $(eval $(call BuildPackage,obudpst))