-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add hailort buildroot package, cross-compile fails
- Loading branch information
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Add project-specific packages for Buildroot here | ||
# | ||
# If these are non-proprietary, please consider contributing them back to | ||
# Nerves or Buildroot. | ||
|
||
menu "Custom Packages" | ||
|
||
source "$NERVES_DEFCONFIG_DIR/packages/hailort/Config.in" | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(sort $(wildcard $(NERVES_DEFCONFIG_DIR)/packages/*/*.mk)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
config BR2_PACKAGE_HAILORT | ||
bool "hailort" | ||
depends on BR2_TOOLCHAIN_HAS_THREADS | ||
depends on BR2_INSTALL_LIBSTDCPP | ||
help | ||
HailoRT is a runtime library for Hailo AI accelerator devices. | ||
|
||
https://github.com/hailo-ai/hailort | ||
|
||
comment "hailort needs a toolchain with thread support and C++ support" | ||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
################################################################################ | ||
# | ||
# hailort | ||
# | ||
################################################################################i | ||
|
||
HAILORT_VERSION = 4.19.0 | ||
HAILORT_SITE = $(call github,hailo-ai,hailort,v$(HAILORT_VERSION)) | ||
HAILORT_LICENSE = MIT | ||
HAILORT_LICENSE_FILES = hailort/LICENSE | ||
|
||
HAILORT_DEPENDENCIES = host-cmake | ||
|
||
|
||
define HAILORT_CONFIGURE_CMDS | ||
$(CMAKE_MAKE_ENV) $(HOST_DIR)/bin/cmake -S$(@D) -B$(@D)/build \ | ||
$(CMAKE_CONF_OPTS) \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
endef | ||
|
||
define HAILORT_BUILD_CMDS | ||
$(CMAKE_MAKE_ENV) $(MAKE) -C $(@D)/build | ||
endef | ||
|
||
define HAILORT_INSTALL_TARGET_CMDS | ||
$(CMAKE_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(MAKE) -C $(@D)/build install | ||
endef | ||
|
||
$(eval $(cmake-package)) |