################################################################################ # # Adaptive Link # ################################################################################ ADAPTIVE_LINK_SITE = $(call github,openipc,adaptive-link,$(ADAPTIVE_LINK_VERSION)) ADAPTIVE_LINK_VERSION = '2c45d5fb0cac64c3654bc8d6043ed3d8c2e85f9e' ADAPTIVE_LINK_LICENSE = GPL-3.0 ADAPTIVE_LINK_LICENSE_FILES = LICENSE ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) ADAPTIVE_LINK_OPTIONS = "-rdynamic -s -Os -lm" else ADAPTIVE_LINK_OPTIONS = "-rdynamic -s -Os" endif define ADAPTIVE_LINK_BUILD_CMDS @echo "Building Adaptive link" $(MAKE) CC=$(TARGET_CC) OPT=$(ADAPTIVE_LINK_OPTIONS) -C $(@D) endef define ADAPTIVE_LINK_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -d $(TARGET_DIR)/etc $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin $(INSTALL) -m 644 -t $(TARGET_DIR)/etc $(@D)/alink.conf $(INSTALL) -m 644 -t $(TARGET_DIR)/etc $(@D)/txprofiles/txprofiles.conf $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/alink_drone endef $(eval $(generic-package))