代码拉取完成,页面将自动刷新
include $(TOPDIR)/rules.mk
PKG_NAME:=broker
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
include $(BUILD_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Allwinner
TITLE:=broker
DEPENDS:=+libpthread +libopenssl
endef
define Package/$(PKG_NAME)/description
Mqtt Broker
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -r ./build/* $(PKG_BUILD_DIR)/
endef
define Build/Compile/$(PKG_NAME)
$(MAKE) -C $(PKG_BUILD_DIR)/ \
ARCH="$(TARGET_ARCH)" \
AR="$(TARGET_AR)" \
CC="$(TARGET_CC)" \
LD=$(TARGET_CROSS)ld \
CXX="$(TARGET_CXX)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
all
endef
define Build/Compile
#$(Build/Compile/$(PKG_NAME))
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/broker $(1)/usr/sbin/broker
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/base-files/etc/init.d/broker $(1)/etc/init.d/
# $(INSTALL_DIR) $(1)/usr/sbin
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/tinymqtt.conf $(1)/usr/sbin/tinymqtt.conf
#
# $(INSTALL_DIR) $(1)/usr/sbin
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/pwd.conf $(1)/usr/sbin/pwd.conf
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。