Compare commits

...

4 Commits

Author SHA1 Message Date
Kris Nova
24899a7ba2 Update build/init.sh
Co-authored-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
2020-05-04 14:41:11 -07:00
Kris Nova
b1f913213d Update build/init.sh
Co-authored-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
2020-05-04 14:41:04 -07:00
Kris Nova
f05162d85a feat(arm): Remove #define
We no longer need the #define for arm with the most recent version
of dependencies in the master branch.

Signed-off-by: Kris Nova <kris@nivenly.com>
2020-04-30 21:27:35 +00:00
Kris Nova
fdbed81ed3 feat(build): Adding build dir README.md and init.sh
Adding some files to the build dir to make it easier to build Falco.
Right now checking out the repository on Linux is a bit confusing.
Now the cmake flags are defined in a convenience scripts /build/init.sh
So they can be easily switched while building.

Signed-off-by: Kris Nova <kris@nivenly.com>
2020-04-30 18:44:01 +00:00
2 changed files with 34 additions and 0 deletions

13
build/README.md Normal file
View File

@@ -0,0 +1,13 @@
# Build Directory
This is a special directory that is used to compile Falco.
The flags and their options are defined in `init.sh`.
Please edit `init.sh` to your liking.
Then build Falco from this directory.
```
./init.sh
make all
```

21
build/init.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/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" \
-DFALCO_ETC_DIR="/etc/falco" \
-DUSE_BUNDLED_DEPS=OFF