summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2021-10-20Makefile: fix rst2man lookup and add pytest lookupKayla Firestack
add pytest and rst2man lookups though command-v and which if available, default to ENV/ARGS in the case of user specified locations and otherwise lookup via shell Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-19Makefile: prefix libbcachefs.so installation with `DESTDIR`Kayla Firestack
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-19rst2man: convert `which` to `command -v`Kayla Firestack
Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-18fix "no rst2man found!" build error on debian and ubuntuIgor Velkov
2021-10-18Build with -fPICKent Overstreet
The changes to how we integrate with rust code mean that we now need to be emitting position indepedent code. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-10-18split mount into a library crate for rust reuseKayla Firestack
update makefile to output shared library and rust build fix default.nix to properly get the binary name for `ln`ing - move binary to main.rs add rustfmt and gitignore files move build.rs file into bch_bindgen for reuse between projects add outputs to nix flake and checks add mount.toml to makefile
2021-10-12Fix errors related to rst2man warning message:Brett Holman
- Warning message doesn't print and causes build to exit. - .SHELLSTATUS doesn't work on some versions of Make. Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-10-11Clean up smoketest and pytests.Brett Holman
- Replace depreciated tempfile with mktemp in smoketest. - Remove unused pytest imports and variables. - Make path lookup less fragile. Allows pytest to run from any cwd. - Prevent exeptions caused by calling functions/methods on None objects. - Disable fuse tests in smoketest. These are broken and add noise. - Add missing travis CI dependency. Signed-off-by: Brett Holman <bholman.devel@gmail.com>
2021-07-28Update bcachefs sources to b964c6cba8 bcachefs: Change lockrestart_do() to ↵Kent Overstreet
always call bch2_trans_begin()
2021-07-24fixup! rst2man detection hangsjpsollie
rst2man tend to hang when called without arguments, so a small -V is appended to print the version. Also, make sure we found at least one rst2man executable Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
2021-07-24Reapply compiler checksjpsollie
The compiler checks where erroneously reverted in the Makefile - this reapplies them, so GCC < 10 can still build the bcachefs tools Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
2021-07-24Makefile: detect rst2manStijn Tintel
On some distros, rst2man has a .py extension and there is no rst2man. Fix build on such systems by detecting what is available. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-07-23Bring back debug makefile targetKent Overstreet
This seems to have been dropped by mistake Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-10Documentation fixup: made filenames more descriptive, switched parsing ↵Brett Holman
utility to python
2021-07-07add bcachefs xor / xxhash supportjpsollie
Following the initial xxhash / xor checksum support patches in kernel, bcachefs-tools needs some updated libraries as well. Unfortunately, xor functionality is deeply linked into several low-level functions, so we're adding a set of patches here to translate those into userspace Signed-off-by: Janpieter Sollie <janpieter.sollie@edpnet.be>
2021-07-06Fix some makefile misspellingsKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-07-06Switched documentation from asciidoc to rst, added doc autogeneration code ↵Brett Holman
for options
2021-07-04Update bcachefs sources to 1a510b00b6 bcachefs: Increase BTREE_TRANS_MEM_MAXKent Overstreet
2021-06-13Cleanup Makefile for better compatibility + enable "make debug"jpsollie
- clean up Makefile to improve compiler compatibility - add a "Make debug" target for easier debug builds - update INSTALL - fix six.c when running "make debug" against GCC 9 (maybe-uninitialized) Signed-off by: Janpieter Sollie <janpieter.sollie@edpnet.be>
2021-05-24Makefile: rename D to BCACHEFS_DEBUGStijn Tintel
BCACHEFS_DEBUG is far more descriptive. D also conflicts with the D variable used in Gentoo ebuilds. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-05-19minor fixes for clang supportBrett Holman
2021-03-29Update bcachefs sources to 18686af684 bcachefs: Inode backpointersv0.13Kent Overstreet
2020-12-03Update bcachefs sources to 0010403265 bcachefs: Fix spurious alloc errors on ↵Kent Overstreet
forced shutdown
2020-10-15Build with -Wno-zero_length_boundsKent Overstreet
Copying the linux kernel build settings
2020-08-24Add a shell script version of mount.bcachefsKent Overstreet
Sadly, some people are still running distributions too old to properly support rust :( In the long term we'd like to use Rust for more of userspace (and potentially in the kernel); this is just a stopgap measure.
2020-08-24make D=1 now implies valgrindKent Overstreet
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2020-07-25Initial WIP new user's manualKent Overstreet
2020-05-14Update bcachefs sources to e1f6739c4a bcachefs: Fix another iterator ↵Kent Overstreet
counting bug
2020-05-08Don't build mount.bcachefs by defaultKent Overstreet
So as not to depend on rust yet
2020-05-05Add a mount.bcachefs toolYuxuan Shui
This tool currently has most of the fundmental features implemented. It can mount a filesystem specified by uuid, it can ask password for an encrypted filesystem. There may be some work that needs to be done to make it behave more like a "mount.*" tool. Related: #1 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-04-23Don't use pkgconfig for libkeyutilsKent Overstreet
Centos 7 has an old version that doesn't have the .pc file
2020-03-25Use pkgconfig for libkeyutilsKent Overstreet
2019-12-28bcachefs-tools: Add a smoke test master script.Justin Husted
This script builds and runs with various options to enable easy test coverage. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-12-06Add Fedora, Ubuntu, Arch info to INSTALLBrendon Boldt
Add fuse3 (>=3.7) version to Makefile
2019-12-04Put valgrind support behind CONFIG_VALGRINDKent Overstreet
2019-11-11Make fuse3 support optional and document.Justin Husted
The experimental fuse3 support is not complete yet, and fuse3 is new and still difficult to install on some platforms. Make it optional at compile time, and default to off. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-11-04Add makefile support for tags.Justin Husted
Also, update .gitignore for various things. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-11-03Initial version of bcachefs tests.Justin Husted
So far, these tests just test basic format, fsck, and list functions under valgrind, as well as a few self-validation tests. Signed-off-by: Justin Husted <sigstop@gmail.com>
2019-10-18fuseKent Overstreet
2019-08-27Build with -fno-delete-null-pointer-checksKent Overstreet
Some of the code we use from the Linux kernel won't build correctly without this...
2019-03-10Add PKG_CONFIG variable and replace pkg-configDanilo Spinella
Respect pkg-config value from environment.
2019-03-10Fix PREFIX variable assignementDanilo Spinella
2019-01-14Abort compilation early if pkg-config failsTim Schlueter
2019-01-13Replaced mkdir -p with install -D in make installTim Schlueter
Also added a comment about the bcachefs utility to the initramfs hook
2019-01-13Only run pkg-config once in Makefile, added EXTRA linker varsTim Schlueter
* Only run the pkg-config --cflags command once (instead of every .c file) * Added EXTRA_LDFLAGS and EXTRA_LDLIBS vars * Removed tabs in the middle of commands to make it easier to manually re-run commands manually (e.g. if a compilation fails) * Replaced `cd dir; git command` in favor of $(shell git -C dir command) * Minor version format change: dirty trees just append "+" instead of "-dirty" and if git describe fails, it now sets the version to "v0.1-nogit" Also, don't ignore .gitignore files.
2018-11-23snapraidKent Overstreet
2018-05-27Don't add commit id to version when building from a tagTim Schlueter
2018-05-26Added 'version' command to print when the bcachefs tool was builtTim Schlueter
2018-05-17Switch to liblz4Kent Overstreet
2018-02-16Update bcachefs sources to e99d29e402 bcachefs: zstd support, compression ↵Kent Overstreet
refactoring