aboutsummaryrefslogtreecommitdiff
path: root/tools/zstd/Makefile
Commit message (Collapse)AuthorAge
* tools/zstd: enable position independent code compilationBryan Roessler2024-04-24
| | | | | | | | | | | | | | Currently, trying to compile LLVM-BPF will fail with: [2225/3517] Linking CXX shared library lib/libLLVM-15.so FAILED: lib/libLLVM-15.so /usr/bin/ld: staging_dir/host/lib/libzstd.a(zstd_common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status So, to fix it enable PIC for the host ZSTD. Fixes: #15247 Signed-off-by: Bryan Roessler <bryanroessler@gmail.com>
* tools: zstd: update patch with upstream versionChristian Marangi2024-04-17
| | | | | | | | | Proposed fixup has been replaced and merged with an advanced version. install-pc-mt has been dropped and replaced for intall-pc MT=1 to generate a .pc file with multithread libs. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools: zstd: dont override CLI max levelRobert Marko2024-04-09
| | | | | | | | Now that instead of relying on env variables for the GH download script invoking ZSTD tarball compression it passes the full arguments via tar -I we can drop the CLI max compression level override. Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools: zstd: add patch fixing wrong generated .pc with lib-mtChristian Marangi2024-04-06
| | | | | | | | | | | | | The current .pc generated by make build system for zstd is wrong and always assume a single-threaded library is used. This wasn't the case for the meson build system that used his own logic to generate the pkg-config file. Add a patch to fix this by introducing install-mt-pc make target to generate the correct pkg-config gile. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools: zstd: install headers as wellRobert Marko2024-04-06
| | | | | | | | We forgot to make sure install-includes is called for the libzstd in order for it to install the required headers. Fixes: 4b920e799fba ("tools: zstd: convert to make and drop meson dependency") Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools: zstd: dont override ZSTD_LEGACY_SUPPORTRobert Marko2024-04-06
| | | | | | | | We dont really have a reason to deviate from the upstream default for ZSTD_LEGACY_SUPPORT value of 5, as it will save a bit of space but prevent decompressing data compressed with legacy ZSTD versions. Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools: zstd: override max safe compression levelChristian Marangi2024-04-06
| | | | | | | | | | | | | | | ZTSD limits the safe compression level to a max of 19 as 20 to 22 cause increased RAM usage. Higher levels require --ultra arg passed. There isn't currently a way to set --ultra using ENV options similar to ZSTD_CLEVEL and ZSTD_CLEVEL is limited to 19. To fix this, we can increase the max safe compression level by providing a custom ZSTDCLI_CLEVEL_MAX value with CFLAGS. The max safe level is increased to 20. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools: zstd: convert to make and drop meson dependencyChristian Marangi2024-04-06
| | | | | | | | | | Convert to make and drop meson dependency since it's not a core tools and can't depend on advanced build system like cmake or meson. On top of this make is the official build support and cmake/meson are supported by 3rd parties. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* zstd: update to 1.5.6Paul Spooren2024-04-02
| | | | | | | Full changelog here: https://github.com/facebook/zstd/releases/tag/v1.5.6 Signed-off-by: Paul Spooren <mail@aparcar.org>
* tools/zstd: update to 1.5.5Nick Hainke2023-04-07
| | | | | | | Release Notes: https://github.com/facebook/zstd/releases/tag/v1.5.5 Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/zstd: update to 1.5.4Rosen Penev2023-02-18
| | | | | | Mostly performance improvements, as usual. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/zstd: build libraries as staticRosen Penev2023-02-09
| | | | | | Enables to get rid of rpath hack for all users. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Revert "tools/zstd: build libraries as static"Christian Marangi2022-09-27
| | | | | | | This reverts commit e3989094b801da63b7b65b2460ea30dfeb324cd3. Require more testing as it does cause compilation error. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools/zstd: build libraries as staticRosen Penev2022-09-27
| | | | | | Enables to get rid of rpath hack for all users. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/zstd: update to 1.5.2Rosen Penev2022-03-01
| | | | | | | Switched to building with meson as it's faster and does not need a dependency on cmake, which takes a long time to build. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Revert "tools/zstd: update to 1.5.2"Jo-Philipp Wich2022-02-07
| | | | | | | | This reverts commit 8de901ccf7e2b227bd970e9c477f00c15ce6aae9. Apparently this update breaks tools building. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools/zstd: update to 1.5.2Rosen Penev2022-02-07
| | | | | | | Switched to building with meson as it's faster and does not need a dependency on cmake, which takes a long time to build. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/zstd: update to 1.5.0Rosen Penev2021-09-05
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: remove BUILD_PARALLEL from CMake packagesRosen Penev2021-06-19
| | | | | | | | | | | | | It's already default. The only exception is mt76 which has Ninja disabled. Found with: git grep BUILD_PARALLEL | cut -d ':' -f 1 | sort -u > par git grep cmake.mk | cut -d ':' -f 1 > cmake comm -1 -2 par cmake Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/zstd: compile with cmakeRosen Penev2021-01-30
| | | | | | | | It's faster and more reliable. Removed ccache cmake build dependency as it's now implicit. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/zstd: update to 1.4.8Rosen Penev2021-01-30
| | | | | | | Switch to the normal tarball instead of the codeload generated one. The latter has the potential to change hashes based on changes in the repo. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* zstd: fix package sourceDavid Bauer2021-01-14
| | | | | | | | | | It looks like GitHub changed the URL path for release tarballs, thus the download for the zstd package was always falling back to the OpenWrt sources mirror. Fix the GitHub URL for one which works. The file hash remains unchanged. Signed-off-by: David Bauer <mail@david-bauer.net>
* ccache: update to 4.1Rosen Penev2020-12-31
| | | | | | | | | | | | | | | | Upstream switched to building with CMake. Adjust accordingly. Reapplied patch as upstream changed the file format. Added HOST_BUILD_PARALLEL for faster compilation. Added cmake tool dependency and removed circular dependencies as a result. Adjusted dependent tools to use NOCACHE as they are needed to build ccache. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools: add zstdMatthias Schiffer2020-05-31
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>