Initial Commit
- initial default booting image
This commit is contained in:
34
package/highway/Config.in
Normal file
34
package/highway/Config.in
Normal file
@@ -0,0 +1,34 @@
|
||||
config BR2_PACKAGE_HIGHWAY
|
||||
bool "highway"
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
# For gcc bug 58969, see:
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58969
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++11, GCC_BUG_58969
|
||||
help
|
||||
Highway is a C++ library that provides portable SIMD/vector
|
||||
intrinsics.
|
||||
|
||||
https://github.com/google/highway
|
||||
|
||||
if BR2_PACKAGE_HIGHWAY
|
||||
|
||||
config BR2_PACKAGE_HIGHWAY_CONTRIB
|
||||
bool "Enable Contrib"
|
||||
help
|
||||
Build Highway contrib library which contains extra
|
||||
SIMD-related utilities: an image class with aligned rows, a
|
||||
math library (16 functions already implemented, mostly
|
||||
trigonometry), and functions for computing dot products and
|
||||
sorting.
|
||||
|
||||
config BR2_PACKAGE_HIGHWAY_EXAMPLES
|
||||
bool "Enable Examples"
|
||||
help
|
||||
Build Highway examples
|
||||
|
||||
endif
|
||||
|
||||
comment "highway needs a toolchain w/ C++, gcc >= 7"
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
4
package/highway/highway.hash
Normal file
4
package/highway/highway.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally computed:
|
||||
sha256 07b3c1ba2c1096878a85a31a5b9b3757427af963b1141ca904db2f9f4afe0bc2 highway-1.3.0.tar.gz
|
||||
sha256 43070e2d4e532684de521b885f385d0841030efa2b1a20bafb76133a5e1379c1 LICENSE
|
||||
sha256 d25e82e26acd42ca3ccc9993622631163425b869b9e16284226d534cff6470f2 LICENSE-BSD3
|
||||
57
package/highway/highway.mk
Normal file
57
package/highway/highway.mk
Normal file
@@ -0,0 +1,57 @@
|
||||
################################################################################
|
||||
#
|
||||
# highway
|
||||
#
|
||||
################################################################################
|
||||
|
||||
HIGHWAY_VERSION = 1.3.0
|
||||
HIGHWAY_SITE = $(call github,google,highway,$(HIGHWAY_VERSION))
|
||||
HIGHWAY_LICENSE = Apache-2.0 or BSD-3-Clause
|
||||
HIGHWAY_LICENSE_FILES = LICENSE LICENSE-BSD3
|
||||
HIGHWAY_INSTALL_STAGING = YES
|
||||
|
||||
HIGHWAY_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HIGHWAY_CONTRIB),y)
|
||||
HIGHWAY_CONF_OPTS += -DHWY_ENABLE_CONTRIB=ON
|
||||
else
|
||||
HIGHWAY_CONF_OPTS += -DHWY_ENABLE_CONTRIB=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HIGHWAY_EXAMPLES),y)
|
||||
HIGHWAY_CONF_OPTS += -DHWY_ENABLE_EXAMPLES=ON
|
||||
# Examples are not installed by cmake. This binary can be useful for
|
||||
# quick testing and debug.
|
||||
define HIGHWAY_INSTALL_EXAMPLES
|
||||
$(INSTALL) -m 0755 \
|
||||
$(@D)/examples/hwy_benchmark \
|
||||
$(TARGET_DIR)/usr/bin/hwy_benchmark
|
||||
endef
|
||||
HIGHWAY_POST_INSTALL_TARGET_HOOKS += HIGHWAY_INSTALL_EXAMPLES
|
||||
else
|
||||
HIGHWAY_CONF_OPTS += -DHWY_ENABLE_EXAMPLES=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ARM_FPU_VFPV4),y)
|
||||
HIGHWAY_CONF_OPTS += -DHWY_CMAKE_ARM7=ON
|
||||
else
|
||||
# Highway Armv7 Neon support requires in fact vfpv4 / neon v2. When we
|
||||
# are in a vfpv3 case (e.g. Cortex-A8, Cortex-A9) this flag need to be
|
||||
# set to off.
|
||||
HIGHWAY_CONF_OPTS += -DHWY_CMAKE_ARM7=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_RISCV_32),y)
|
||||
HIGHWAY_CONF_OPTS += -DHWY_CMAKE_RVV=OFF
|
||||
endif
|
||||
|
||||
# Workaround for gcc bug 104028 on m68k.
|
||||
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_104028),y)
|
||||
HIGHWAY_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
HIGHWAY_CONF_OPTS += \
|
||||
-DCMAKE_CXX_FLAGS="$(HIGHWAY_CXXFLAGS)"
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user