Compare commits

...

2 Commits

Author SHA1 Message Date
Kris Nova
825a66e4d4 feat(build): Using bundled deps in init.sh
Signed-off-by: Kris Nova <kris@nivenly.com>
2020-05-03 08:37:58 +00:00
Kris Nova
ff53387023 feat(arm support): Building Falco on ARM
This is a hybrid branch based on 0.22.1 and with changes from master for libgpr

This compiles Falco on ARM
This compiles the kernel module on ARM

Signed-off-by: Kris Nova <kris@nivenly.com>
2020-04-30 21:53:14 +00:00
3 changed files with 37 additions and 1 deletions

23
build/init.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
#
# Copyright (C) 2019 The Falco Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
#
cmake ../ \
-DBUILD_BPF=OFF \
-DBUILD_WARNINGS_AS_ERRORS="OFF" \
-DCMAKE_BUILD_TYPE="release" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DDRAIOS_DEBUG_FLAGS="-D_DEBUG" \
-DFALCO_ETC_DIR="/etc/falco" \
-DUSE_BUNDLED_DEPS=ON

View File

@@ -42,6 +42,17 @@ if(NOT USE_BUNDLED_DEPS)
message(FATAL_ERROR "Couldn't find system protobuf")
endif()
# gpr
find_library(GPR_LIB NAMES gpr)
if(GPR_LIB)
message(STATUS "Found gpr lib: ${GPR_LIB}")
else()
message(FATAL_ERROR "Couldn't find system gpr")
endif()
# gRPC todo(fntlnz, leodido): check that gRPC version is greater or equal than 1.8.0
find_path(GRPCXX_INCLUDE NAMES grpc++/grpc++.h)
if(GRPCXX_INCLUDE)

View File

@@ -75,6 +75,7 @@ target_include_directories(
"${YAMLCPP_INCLUDE_DIR}"
"${CIVETWEB_INCLUDE_DIR}"
"${GRPC_INCLUDE}"
"${GRPCPP_INCLUDE}"
"${PROTOBUF_INCLUDE}"
"${CMAKE_CURRENT_BINARY_DIR}"
"${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include")
@@ -83,8 +84,9 @@ target_link_libraries(
falco
falco_engine
sinsp
"${GRPCPP_LIB}"
"${GPR_LIB}"
"${GRPC_LIB}"
"${GRPCPP_LIB}"
"${PROTOBUF_LIB}"
"${LIBYAML_LIB}"
"${YAMLCPP_LIB}"