mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-16 06:09:26 +00:00
* Rebase patches to Buildroot 2021.02-rc3 * Update Buildroot to 2021.02-rc3 * Declare Kernel headers to be Linux version 5.10 (since they are, and new Buildroot knows about 5.10)
34 lines
955 B
Makefile
34 lines
955 B
Makefile
################################################################################
|
|
#
|
|
# lua-lyaml
|
|
#
|
|
################################################################################
|
|
|
|
LUA_LYAML_VERSION = 6.2.7
|
|
LUA_LYAML_NAME_UPSTREAM = lyaml
|
|
LUA_LYAML_SITE = $(call github,gvvaughan,$(LUA_LYAML_NAME_UPSTREAM),v$(LUA_LYAML_VERSION))
|
|
LUA_LYAML_LICENSE = MIT
|
|
LUA_LYAML_LICENSE_FILES = LICENSE
|
|
LUA_LYAML_DEPENDENCIES = libyaml luainterpreter host-lua
|
|
|
|
define LUA_LYAML_BUILD_CMDS
|
|
(cd $(@D); \
|
|
$(LUA_RUN) build-aux/luke \
|
|
version="'$(LUA_LYAML_VERSION)'" \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LUA_INCDIR=$(STAGING_DIR)/usr/include \
|
|
YAML_DIR=$(STAGING_DIR)/usr \
|
|
)
|
|
endef
|
|
|
|
define LUA_LYAML_INSTALL_TARGET_CMDS
|
|
(cd $(@D); \
|
|
$(LUA_RUN) build-aux/luke install \
|
|
INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
|
|
INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \
|
|
)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|