Add yaml-cli-multi as adaptive link dependency (#1836)

pull/1838/head
Ihor Ivlev 2025-07-03 11:52:09 +02:00 committed by GitHub
parent 8cecbbc954
commit ea433ee370
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 37 additions and 0 deletions

View File

@ -6,6 +6,7 @@
ADAPTIVE_LINK_SITE = $(call github,openipc,adaptive-link,$(ADAPTIVE_LINK_VERSION))
ADAPTIVE_LINK_VERSION = '2c45d5fb0cac64c3654bc8d6043ed3d8c2e85f9e'
ADAPTIVE_LINK_DEPENDENCIES = yaml-cli-multi
ADAPTIVE_LINK_LICENSE = GPL-3.0
ADAPTIVE_LINK_LICENSE_FILES = LICENSE

View File

@ -0,0 +1,5 @@
config BR2_PACKAGE_YAML_CLI_MULTI
bool "Yaml parser"
help
Parses yaml files.
https://github.com/vertexodessa/yaml-cli-multi

View File

@ -0,0 +1,31 @@
################################################################################
#
# Adaptive Link
#
################################################################################
YAML_CLI_MULTI_SITE = $(call github,vertexodessa,yaml-cli-multi,$(YAML_CLI_MULTI_VERSION))
YAML_CLI_MULTI_VERSION = 'a633865b5202dcd1f4f548e8486d3a334c79c03c'
YAML_CLI_MULTI_LICENSE = GPL-3.0
YAML_CLI_MULTI_LICENSE_FILES = LICENSE
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
YAML_CLI_MULTI_OPTIONS = "-rdynamic -s -Os -lm"
else
YAML_CLI_MULTI_OPTIONS = "-rdynamic -s -Os"
endif
define YAML_CLI_MULTI_BUILD_CMDS
@echo "Building yaml-cli-multi"
$(MAKE) CC=$(TARGET_CC) OPT=$(YAML_CLI_MULTI_OPTIONS) -C $(@D)
endef
define YAML_CLI_MULTI_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/yaml-cli-multi
endef
$(eval $(generic-package))