package/llvm-project/llvm-cmake: new package

This is a small host package containing shared cmake modules
that are needed by various projects during configuration.
For example llvm 15 needs it.

Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Lang Daniel 2023-06-15 15:43:11 +02:00 committed by Thomas Petazzoni
parent 5fad34d0d1
commit 2d7d00ba55
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# locally calculated
sha256 21cf3f52c53dc8b8972122ae35a5c18de09c7df693b48b5cd8553c3e3fed090d cmake-15.0.3.src.tar.xz

View File

@ -0,0 +1,17 @@
################################################################################
#
# llvm-cmake
#
################################################################################
LLVM_CMAKE_VERSION = 15.0.3
LLVM_CMAKE_SITE = $(LLVM_PROJECT_SITE)
LLVM_CMAKE_SOURCE = cmake-$(LLVM_CMAKE_VERSION).src.tar.xz
LLVM_CMAKE_LICENSE = Apache-2.0 with exceptions
define HOST_LLVM_CMAKE_INSTALL_CMDS
mkdir -p $(HOST_DIR)/lib/cmake/llvm
cp -Rv $(@D)/Modules/* $(HOST_DIR)/lib/cmake/llvm
endef
$(eval $(host-generic-package))