Git Product home page Git Product logo

Comments (3)

qais-yousef avatar qais-yousef commented on September 26, 2024

OK I can see that you use BCC_KERNEL_SOURCE to avoid creating /lib/modules/$(uname -r)/build. Nice

from adeb.

joelagnel avatar joelagnel commented on September 26, 2024

Yes, you are welcomed to send patches for building BCC within the image. That would be quite useful. Thanks. About compiling on the target, that is needed if the target is of a different architecture than the host.

Also about kernel headers, moving forward I want to get this working so we can just use kernel headers from the kernel itself which will eliminate the extra step we do (for BCC_KERNEL_SOURCE)
https://lore.kernel.org/patchwork/patch/1040685/
If you want, I can CC you on those kernel patches as well (just let me know your email address) and your review/contributions there are also welcomed.

from adeb.

qais-yousef avatar qais-yousef commented on September 26, 2024

About compiling on the target, that is needed if the target is of a different architecture than the host.

Oh yes. But there's a nice trick that I accidentally discovered. When you chroot to a debian image that was created for a different arch it'll recognize that and assume the right arch, ie: arm64 and you won't appear to be cross compiling anymore.

Also I was caught more than once when cross compiling a binary and trying to execute it on x86 expecting a wrong arch error but instead it magically ran; only to discover thatt the system is smart to know it's for a different arch and transparently uses qemu-$(arch). Neat!

Will send a PR for that soon.

If you want, I can CC you on those kernel patches as well (just let me know your email address) and your review/contributions there are also welcomed.

Yes please. I can probably give you my tested-by. [email protected]

from adeb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.