mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 07:42:21 +03:00
Enable cross compilation to aarch64
Change-Id: Iafc8ac60926f5286990ce63a4ff4f8b6a7c46bef
This commit is contained in:
committed by
Konstantinos Margaritis
parent
32bd8b131c
commit
2c350e7803
16
README.md
16
README.md
@@ -29,6 +29,22 @@ matching of regular expressions across streams of data.
|
||||
|
||||
Vectorscan is typically used in a DPI library stack, just like Hyperscan.
|
||||
|
||||
# Cross Compiling for AArch64
|
||||
|
||||
- To cross compile for AArch64, first adjust the variables set in cmake/setenv-arm64-cross.sh.
|
||||
- `export CROSS=<arm-cross-compiler-dir>/bin/aarch64-linux-gnu-`
|
||||
- `export CROSS_SYS=<arm-cross-compiler-system-dir>`
|
||||
- `export BOOST_PATH=<boost-source-dir>`
|
||||
- Set the environment variables:
|
||||
- `source cmake/setenv-arm64-cross.sh`
|
||||
- Configure Vectorscan:
|
||||
- `mkdir <build-dir-name>`
|
||||
- `cd <build-dir>`
|
||||
- `cmake -DCROSS_COMPILE_AARCH64=1 <hyperscan-source-dir> -DCMAKE_TOOLCHAIN_FILE=<hyperscan-source-dir>/cmake/arm64-cross.cmake`
|
||||
- Build Vectorscan:
|
||||
- `make -jT` where T is the number of threads used to compile.
|
||||
- `cmake --build . -- -j T` can also be used instead of make.
|
||||
|
||||
# Documentation
|
||||
|
||||
Information on building the Hyperscan library and using its API is available in
|
||||
|
Reference in New Issue
Block a user