2021-03-17 05:06:29 +01:00
|
|
|
package=native_clang
|
2024-11-03 10:46:25 +01:00
|
|
|
$(package)_version=11.1.0
|
2020-11-22 23:24:34 +01:00
|
|
|
$(package)_download_path=https://github.com/llvm/llvm-project/releases/download/llvmorg-$($(package)_version)
|
2021-07-20 12:23:19 +02:00
|
|
|
ifneq (,$(findstring aarch64,$(BUILD)))
|
|
|
|
$(package)_file_name=clang+llvm-$($(package)_version)-aarch64-linux-gnu.tar.xz
|
2024-11-03 10:46:25 +01:00
|
|
|
$(package)_sha256_hash=18df38247af3fba0e0e2991fb00d7e3cf3560b4d3509233a14af699ef0039e1c
|
2021-07-20 12:23:19 +02:00
|
|
|
else
|
2020-11-22 23:24:34 +01:00
|
|
|
$(package)_file_name=clang+llvm-$($(package)_version)-x86_64-linux-gnu-ubuntu-16.04.tar.xz
|
2024-11-03 10:46:25 +01:00
|
|
|
$(package)_sha256_hash=c691a558967fb7709fb81e0ed80d1f775f4502810236aa968b4406526b43bee1
|
2021-07-20 12:23:19 +02:00
|
|
|
endif
|
2021-03-17 05:06:29 +01:00
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
mkdir -p $($(package)_staging_prefix_dir)/lib/clang/$($(package)_version)/include && \
|
|
|
|
mkdir -p $($(package)_staging_prefix_dir)/bin && \
|
2022-07-28 15:24:30 +02:00
|
|
|
mkdir -p $($(package)_staging_prefix_dir)/include/llvm-c && \
|
2021-03-17 05:06:29 +01:00
|
|
|
cp bin/clang $($(package)_staging_prefix_dir)/bin/ && \
|
|
|
|
cp -P bin/clang++ $($(package)_staging_prefix_dir)/bin/ && \
|
|
|
|
cp bin/dsymutil $($(package)_staging_prefix_dir)/bin/$(host)-dsymutil && \
|
|
|
|
cp bin/llvm-config $($(package)_staging_prefix_dir)/bin/ && \
|
2022-07-28 15:24:30 +02:00
|
|
|
cp include/llvm-c/ExternC.h $($(package)_staging_prefix_dir)/include/llvm-c && \
|
|
|
|
cp include/llvm-c/lto.h $($(package)_staging_prefix_dir)/include/llvm-c && \
|
2021-03-17 05:06:29 +01:00
|
|
|
cp lib/libLTO.so $($(package)_staging_prefix_dir)/lib/ && \
|
2022-02-14 21:24:43 +01:00
|
|
|
cp -r lib/clang/$($(package)_version)/include/* $($(package)_staging_prefix_dir)/lib/clang/$($(package)_version)/include/
|
2021-03-17 05:06:29 +01:00
|
|
|
endef
|