mirror of
https://github.com/OpenMANET/morse-feed.git
synced 2025-12-10 03:43:06 -06:00
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
#
|
|
# Copyright 2023 Morse Micro
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=morsecli
|
|
PKG_RELEASE=5
|
|
|
|
PKG_VERSION:=1.14.1
|
|
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
|
PKG_SOURCE_URL:=https://github.com/MorseMicro/morse_cli.git
|
|
PKG_MIRROR_HASH:=d7871f4d8f3e10b1413995c3668e1b079685a4ffd0b6be4c268befcab2304e8f
|
|
PKG_HASH:=04c88a3aea99082a29eb1f84a9b62dcbb85980fa040e0e34901c1826f33ae74c
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_MAINTAINER:=Morse Micro <info@morsemicro.com>
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/morsecli
|
|
SECTION:=utils
|
|
CATEGORY:=Network
|
|
TITLE:=Morse Micro WIFI HaLow driver command line tool
|
|
DEPENDS:= +kmod-morse +libnl +libusb-1.0
|
|
FILES:=\
|
|
$(PKG_BUILD_DIR)/morse_cli
|
|
PROVIDES:=morsectrl
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
MORSECTRL_VERSION_STRING=$(PKG_VERSION) \
|
|
CONFIG_MORSE_TRANS_NL80211=1 \
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl3
|
|
|
|
define Package/morsecli/install
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/morse_cli $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,morsecli))
|