make-cross-ovs.sh
Helper script to cross-compile and install Open vSwitch for the Arm Compute Complex (ACC) of the Intel® IPU E2100.
Build flow
Building and installing OVS is the first step in building P4 Control Plane for the IPU E2100.
Once OVS is built, you can use the config-cross-recipe.sh script to
configure the next stage of the build, and the cmake command to compete it.
Syntax
./scripts/es2k/make-cross-ovs.sh \
[--help|-h] \
[--dry-run|-n] \
[--build=BLDDIR | -B BLDDIR] \
[--prefix=PREFIX | -P PREFIX] \
[--toolchain=TOOLFILE | -T TOOLFILE ] \
[--jobs=NJOBS | -j NJOBS]
Command-line parameters
General
--dry-run,-nDisplays the parameters that will be passed to CMake, and exits.
--help,-hDisplays usage information and exits.
Paths
--build=BLDDIR,-B BLDDIRDirectory that CMake will use to perform the build. Will be created if it does not exist.
Specifies the value of the
-BCMake option. Can be used to create separate build directories for native and cross-compiled builds. Defaults toovs/build.--prefix=PREFIX,-P PREFIX(see note)Directory in which OVS will be installed. Will be created if it does not exist.
Specifies the value of the
CMAKE_INSTALL_PREFIXvariable when building P4 Control Plane. Defaults to//opt/ovs.--toolchain=FILE,-T FILEPath to the CMake toolchain file.
Specifies the value of the
CMAKE_TOOLCHAIN_FILEvariable. Defaults to the value of theCMAKE_TOOLCHAIN_FILEenvironment variable.
Note
// at the beginning of the directory path will be replaced with
the sysroot directory path.
Options
--jobs=NJOBS,-j NJOBSNumber of build threads.
Specifies the value of the
-jCMake option. Defaults to 8 threads.
Environment variables
CMAKE_TOOLCHAIN_FILEPath to the CMake toolchain file to be used. Specifies the value of the
CMAKE_TOOLCHAIN_FILEvariable. May be overridden by--toolchain=TOOLFILE. Must be defined.SDKTARGETSYSROOTPath to the system root (sysroot) directory for the ACC. Must be defined.