From 3f0086932143c5f65a0d3e075d6ba3ad3b842d8e Mon Sep 17 00:00:00 2001 From: aiamadeus <42570690+aiamadeus@users.noreply.github.com> Date: Thu, 16 Jan 2025 23:08:19 +0800 Subject: [PATCH] tools: add xxhash package for ccache --- tools/Makefile | 5 +++-- tools/ccache/Makefile | 3 ++- tools/xxhash/Makefile | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 tools/xxhash/Makefile diff --git a/tools/Makefile b/tools/Makefile index df6cb64e5..d86a75e28 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -146,8 +146,9 @@ endif ifneq ($(CONFIG_CCACHE)$(CONFIG_SDK),) $(foreach tool, $(filter-out zstd zlib xz pkgconf patch ninja meson libressl expat cmake,$(tools-y)), $(eval $(curdir)/$(tool)/compile += $(curdir)/ccache/compile)) -tools-y += ccache -$(curdir)/ccache/compile := $(curdir)/cmake/compile +tools-y += ccache xxhash +$(curdir)/xxhash/compile := $(curdir)/cmake/compile +$(curdir)/ccache/compile := $(curdir)/xxhash/compile endif # in case there is no patch tool on the host we need to make patch tool a diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile index 447bc3ea4..6a666a568 100644 --- a/tools/ccache/Makefile +++ b/tools/ccache/Makefile @@ -22,6 +22,7 @@ CMAKE_HOST_OPTIONS += \ -DCMAKE_SKIP_RPATH=FALSE \ -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \ -DENABLE_DOCUMENTATION=OFF \ - -DREDIS_STORAGE_BACKEND=OFF + -DREDIS_STORAGE_BACKEND=OFF \ + -DENABLE_TESTING=OFF $(eval $(call HostBuild)) diff --git a/tools/xxhash/Makefile b/tools/xxhash/Makefile new file mode 100644 index 000000000..dc2ab7f31 --- /dev/null +++ b/tools/xxhash/Makefile @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0-only + +include $(TOPDIR)/rules.mk + +PKG_NAME:=xxHash +PKG_VERSION:=0.8.3 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL=https://github.com/Cyan4973/xxHash +PKG_SOURCE_VERSION:=e626a72bc2321cd320e953a0ccf1584cad60f363 +PKG_MIRROR_HASH:=6023487ab532a0503e8cf057d788b07b065057ab1e1e61fb2b4efed3d92d6bfb + +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/cmake.mk + +CMAKE_C_COMPILER_LAUNCHER := +CMAKE_CXX_COMPILER_LAUNCHER := + +CMAKE_BINARY_SUBDIR := build +CMAKE_SOURCE_SUBDIR := cmake_unofficial + +$(eval $(call HostBuild))