Initial Commit
- initial default booting image
This commit is contained in:
21
package/libzenoh-c/Config.in
Normal file
21
package/libzenoh-c/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_LIBZENOH_C_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_aarch64
|
||||
default y if BR2_arm
|
||||
default y if BR2_x86_64
|
||||
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
|
||||
|
||||
config BR2_PACKAGE_LIBZENOH_C
|
||||
bool "libzenoh-c"
|
||||
depends on BR2_PACKAGE_LIBZENOH_C_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_HOST_RUSTC
|
||||
help
|
||||
This package provides a C binding based on the main
|
||||
Zenoh implementation written in Rust.
|
||||
|
||||
https://github.com/eclipse-zenoh/zenoh-c
|
||||
|
||||
comment "libzenoh-c needs a glibc toolchain"
|
||||
depends on BR2_PACKAGE_LIBZENOH_C_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
||||
3
package/libzenoh-c/libzenoh-c.hash
Normal file
3
package/libzenoh-c/libzenoh-c.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 a741fbe80cb5f159b830100e145f2fbf02a8084f8cdd0658640dd282cd39635e libzenoh-c-1.2.1-cargo6.tar.gz
|
||||
sha256 01a44774f7b1a453595c7c6d7f7308284ba6a1059dc49e14dad6647e1d44a338 LICENSE
|
||||
40
package/libzenoh-c/libzenoh-c.mk
Normal file
40
package/libzenoh-c/libzenoh-c.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# libzenoh-c
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBZENOH_C_VERSION = 1.2.1
|
||||
LIBZENOH_C_SITE = $(call github,eclipse-zenoh,zenoh-c,$(LIBZENOH_C_VERSION))
|
||||
LIBZENOH_C_LICENSE = Apache-2.0 or EPL-2.0
|
||||
LIBZENOH_C_LICENSE_FILES = LICENSE
|
||||
LIBZENOH_C_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_ENABLE_DEBUG),y)
|
||||
LIBZENOH_C_LIB_LOCATION = $(@D)/target/$(RUSTC_TARGET_NAME)/debug
|
||||
else
|
||||
LIBZENOH_C_LIB_LOCATION = $(@D)/target/$(RUSTC_TARGET_NAME)/release
|
||||
endif
|
||||
|
||||
define LIBZENOH_C_INSTALL_FILES
|
||||
$(INSTALL) -D -m 644 \
|
||||
$(LIBZENOH_C_LIB_LOCATION)/libzenohc.so \
|
||||
$(1)/usr/lib/libzenohc.so
|
||||
endef
|
||||
|
||||
# This package does not provide any binaries or examples, and the
|
||||
# cargo infra does not provide any possibility to disable the --bins
|
||||
# option in cargo install step, we have to override the
|
||||
# INSTALL_STAGING_CMDS and the INSTALL_TARGET_CMDS macros.
|
||||
|
||||
define LIBZENOH_C_INSTALL_TARGET_CMDS
|
||||
$(call LIBZENOH_C_INSTALL_FILES,$(TARGET_DIR))
|
||||
endef
|
||||
|
||||
define LIBZENOH_C_INSTALL_STAGING_CMDS
|
||||
$(call LIBZENOH_C_INSTALL_FILES,$(STAGING_DIR))
|
||||
mkdir -p $(STAGING_DIR)/usr/include/
|
||||
cp -dpfr $(@D)/include/* $(STAGING_DIR)/usr/include/
|
||||
endef
|
||||
|
||||
$(eval $(cargo-package))
|
||||
Reference in New Issue
Block a user