summaryrefslogtreecommitdiffstats
path: root/src/examples/sample-plugin/sample
AgeCommit message (Expand)AuthorFilesLines
2018-11-14Remove c-11 memcpy checks from perf-critical codeDave Barach1-28/+28
2018-09-14cpack: add deb/rpm packaging to VPP moduleDamjan Marion1-0/+2
2018-09-12cmake: create cmake VPP module, update sample-plugin so it uses itDamjan Marion2-13/+39
2018-08-22Consolidate the [un]format_mac_address implementationsNeale Ranns1-7/+1
2018-07-26Improve the sample plugin node dispatch functionDave Barach1-128/+473
2018-07-20fix issue with missing sample_main in sample pluginDamjan Marion1-0/+2
2018-01-23VPPAPIGEN: vppapigen replacement in Python PLY.Ole Troan1-1/+1
2017-10-24Add extern to *_main global variable declarations in header files.Dave Wallace1-1/+1
2017-10-09vppapigen: support per-file (major,minor,patch) version stampsDave Barach1-0/+2
2017-10-03Repair vlib API socket serverDave Barach2-2/+0
2017-06-09Sample plugin: Add sample plugin documentationRay Kinsella1-7/+23
2017-04-25"autoreply" flag: autogenerate standard xxx_reply_t messagesDave Barach1-9/+1
2017-04-20Extend ebuild to specify "configure" subdir, enable verify for sample-pluginDamjan Marion1-2/+0
2017-03-22vlib: add description field in plugin registrationDamjan Marion1-0/+1
2017-03-16API:replaced all REPLY_MACRO's with api_helper_macros.hEyal Bari1-23/+2
2017-03-04Fix duplicate binary API registration messages / bugsDave Barach1-2/+2
2017-02-16Fix sample plugin breakage.Anlu Yan2-22/+9
2017-02-02Refactor fragile msg macro W and W2 to not burry return control flow.Jon Loeliger1-1/+3
2017-02-02Convert message macro S to accept a message pointer parameter;Jon Loeliger1-1/+1
2017-02-02Ensure all M() and M2() second parameters are the message pointer.Jon Loeliger1-1/+1
2017-01-25Repair plugin binary API message numberingDave Barach1-0/+2
2017-01-23binary-api debug CLI works with pluginsDave Barach1-36/+1
2017-01-17sample-plugin: fix buildDamjan Marion1-1/+1
2017-01-01Move java,lua api and remaining plugins to src/Damjan Marion7-0/+886
span class="p">&2 exit 1 fi ;; -a|--arch) if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then arch=$2 shift 2 else echo "Error: Argument for $1 is missing" >&2 exit 1 fi ;; -i|--install-dir) if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then install_dir=$2 shift 2 else echo "Error: Argument for $1 is missing" >&2 exit 1 fi ;; -t|--build-type) if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then build_type=$2 shift 2 else echo "Error: Argument for $1 is missing" >&2 exit 1 fi ;; -n|--native-only) native_only=yes shift 1 ;; -w|--wipe) wipe=yes shift 1 ;; -s|--sanitize) shift 1 case "$1" in mem) shift 1 args+=("-DVPP_ENABLE_SANITIZE_ADDR=ON") ;; esac ;; -*|--*=) # unsupported flags echo "Error: Unsupported flag $1" >&2 exit 1 ;; *) # preserve positional arguments PARAMS="$PARAMS $1" shift ;; esac done if [ "${arch}" != "${host_arch}" ] ; then args+=("-DCMAKE_SYSTEM_NAME=Linux") args+=("-DCMAKE_SYSTEM_PROCESSOR=${arch}") args+=("-DCMAKE_C_COMPILER=clang") args+=("-DCMAKE_C_COMPILER_TARGET=${arch}-linux-gnu") args+=("-DCMAKE_ASM_COMPILER_TARGET=${arch}-linux-gnu") args+=("-DCMAKE_FIND_ROOT_PATH=/usr/${arch}-linux-gnu") args+=("-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER") args+=("-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH") args+=("-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH") args+=("-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY") fi args+=("-DCMAKE_PREFIX_PATH=/opt/vpp/external/${arch}") args+=("-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON") args+=("-DCMAKE_INSTALL_PREFIX=${install_dir}") args+=("-DCMAKE_BUILD_TYPE:STRING=${build_type}") [ "${native_only}" == "yes" ] && args+=("-DVPP_BUILD_NATIVE_ONLY:BOOL=ON") [ "${wipe}" == "yes" ] && git clean -fdx --exclude=startup.\* cmake ${args[@]} -G Ninja -S ${src_dir}/src -B ${build_dir} cat << __EOF__ Useful build commands: ninja Build VPP ninja set-build-type-* Change build type to <debug|release|gcov|...> ninja config Start build configuration TUI ninja run Runs VPP using startup.conf in the build directory ninja debug Runs VPP inside GDB using startup.conf in the build directory ninja pkg-deb Create .deb packages ninja install Install VPP to $install_dir __EOF__