Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoke from kernel makefile #4

Closed
chrislusf opened this issue Jan 28, 2022 · 1 comment
Closed

invoke from kernel makefile #4

chrislusf opened this issue Jan 28, 2022 · 1 comment

Comments

@chrislusf
Copy link

Using branch 5.11, and cd bento/rust folder, cargo build suggested invoke from kernel makefile. Not very clear how to do that.

chrislu@chrislu-VirtualBox:~/dev/bento/bento/rust$ cargo build
   Compiling bento v0.1.0 (/home/chrislu/dev/bento/bento/rust)
error: failed to run custom build command for `bento v0.1.0 (/home/chrislu/dev/bento/bento/rust)`

Caused by:
  process didn't exit successfully: `/home/chrislu/dev/bento/bento/rust/target/debug/build/bento-117c02fd10b39823/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=CC
  cargo:rerun-if-env-changed=KDIR
  cargo:rerun-if-env-changed=c_flags

  --- stderr
  thread 'main' panicked at 'Must be invoked from kernel makefile: NotPresent', build.rs:387:39
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@smiller123
Copy link
Owner

Run make from the rust directory under the file system you want to compile. The code in the bento directory will be compiled as part of compiling the file system that uses the bento crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants