xref: /OK3568_Linux_fs/buildroot/package/batctl/batctl.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# batctl
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBATCTL_VERSION = 2021.0
8*4882a593SmuzhiyunBATCTL_SITE = http://downloads.open-mesh.org/batman/releases/batman-adv-$(BATCTL_VERSION)
9*4882a593SmuzhiyunBATCTL_LICENSE = GPL-2.0, MIT (batman_adv.h, list.h)
10*4882a593SmuzhiyunBATCTL_LICENSE_FILES = LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
11*4882a593SmuzhiyunBATCTL_DEPENDENCIES = libnl host-pkgconf
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundefine BATCTL_BUILD_CMDS
14*4882a593Smuzhiyun	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
15*4882a593Smuzhiyunendef
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundefine BATCTL_INSTALL_TARGET_CMDS
18*4882a593Smuzhiyun	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
19*4882a593Smuzhiyun		PREFIX=/usr DESTDIR=$(TARGET_DIR) install
20*4882a593Smuzhiyunendef
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun$(eval $(generic-package))
23