Skip to content

Commit

Permalink
wip configure hailort with submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
gworkman committed Dec 16, 2024
1 parent d5c4942 commit 82ecb98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
3 changes: 3 additions & 0 deletions nerves_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ BR2_PACKAGE_LIBP11=y
BR2_PACKAGE_UNIXODBC=y
BR2_PACKAGE_CAIRO=y
BR2_PACKAGE_DTC=y
BR2_PACKAGE_SPDLOG=y
BR2_PACKAGE_LIBMNL=y
BR2_PACKAGE_EIGEN=y
BR2_PACKAGE_PROTOBUF=y
BR2_PACKAGE_WIRELESS_REGDB=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_WPA_SUPPLICANT_WIRED=y
Expand Down
28 changes: 11 additions & 17 deletions packages/hailort/hailort.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,20 @@
#
################################################################################i

HAILORT_VERSION = 4.19.0
HAILORT_SITE = $(call github,hailo-ai,hailort,v$(HAILORT_VERSION))
HAILORT_VERSION = v4.19.0
HAILORT_SITE = https://github.com/hailo-ai/hailort.git
HAILORT_SITE_METHOD = git
HAILORT_GIT_SUBMODULES = YES
HAILORT_LICENSE = MIT
HAILORT_LICENSE_FILES = hailort/LICENSE
HAILORT_SUPPORTS_IN_SOURCE_BUILD = NO

HAILORT_DEPENDENCIES = host-cmake
HAILORT_DEPENDENCIES = spdlog protobuf eigen


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
HAILORT_CONF_OPTS += -DCMAKE_TOOLCHAIN_FILE=$(CMAKE_TOOLCHAIN_FILE)
HAILORT_CONF_OPTS += -DCMAKE_INSTALL_PREFIX=$(TARGET_DIR)
HAILORT_CONF_OPTS += -DEigen3_DIR=$(STAGING_DIR)/usr/share/eigen3/cmake
HAILORT_CONF_OPTS += -DSPDLOG_DIR=$(STAGING_DIR)/usr
HAILORT_CONF_OPTS += -DPROTOBUF_DIR=$(STAGING_DIR)/usr

$(eval $(cmake-package))

0 comments on commit 82ecb98

Please sign in to comment.