[no ci] Update mavfwd.mk (#1559)

pull/1561/head
viktorxda 2024-09-29 23:37:17 +02:00 committed by GitHub
parent 76201d956e
commit fb89615eac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 8 deletions

View File

@ -4,9 +4,8 @@
#
################################################################################
MAVFWD_SITE_METHOD = git
MAVFWD_SITE = https://github.com/openipc/mavfwd
MAVFWD_VERSION = 70da7adbdbe36d371ca849c4a3bc3cadb54498d3
MAVFWD_SITE = $(call github,openipc,mavfwd,$(MAVFWD_VERSION))
MAVFWD_VERSION = HEAD
MAVFWD_LICENSE = MIT
MAVFWD_LICENSE_FILES = LICENSE
@ -14,15 +13,15 @@ MAVFWD_LICENSE_FILES = LICENSE
MAVFWD_DEPENDENCIES = libevent-openipc
define MAVFWD_BUILD_CMDS
(cd $(@D); $(TARGET_CC) -levent_core -s mavfwd.c -o mavfwd)
$(TARGET_CC) $(@D)/mavfwd.c -o $(@D)/mavfwd -levent_core -s
endef
define MAVFWD_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
$(INSTALL) -m 0755 -D $(@D)/mavfwd $(TARGET_DIR)/usr/bin/mavfwd
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/mavfwd
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/sbin
cp $(MAVFWD_PKGDIR)/files/channels.sh $(TARGET_DIR)/usr/sbin
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(MAVFWD_PKGDIR)/files/channels.sh
endef
$(eval $(generic-package))