Git Product home page Git Product logo

Comments (4)

phil-opp avatar phil-opp commented on September 18, 2024

Sounds like a good addition! I don't have time to do this myself, but pull requests are welcome!

@lachlansneff You also had some ideas of extending the bootimage tool. What do you think about this?

from bootimage.

boomshroom avatar boomshroom commented on September 18, 2024

I suppose one question would be whether we want an option that passes arbitrary arguments to xargo, pass all arguments that bootimage doesn't parse to xargo, or add --frozen as an explicit parameter to bootimage.

For specifying the bootloader, there is a variety of ways to implement it. Some options include giving a local file path and assume the user will download it before hand should they wish to pin it, or add a commit hash to the existing git parameter. There's also the question of whether or not this should point to the source or build of the bootloader.

The current options for the bootloader are

  • Download the latest prebuilt and exit
  • Clone the source from master at an arbitrary git repo, build and exit
  • Preform one of the previous and link the kernel

Which of these options seem more appealing?

from bootimage.

boomshroom avatar boomshroom commented on September 18, 2024

Looking at the xargo source code, it appears as though it does support setting the source directory with XARGO_RUST_SRC.

from bootimage.

phil-opp avatar phil-opp commented on September 18, 2024

Looking at the xargo source code, it appears as though it does support setting the source directory with XARGO_RUST_SRC.

Cool!

I suppose one question would be whether we want an option that passes arbitrary arguments to xargo, pass all arguments that bootimage doesn't parse to xargo, or add --frozen as an explicit parameter to bootimage.

I'm not sure. Passing all arguments to xargo would make it more flexible, but there might be some options that break the build (e.g. by changing the target directory). So I think passing only --frozen is the better short-term solution. For the long term, we should find a way of integrating more deeply with cargo, e.g. through the cargo crate or via build scripts (this would require build scripts that run after compilation).

For specifying the bootloader, there is a variety of ways to implement it.

We should provide options for overriding the default download URL, the release name (latest at the moment, but some kind of version number when it becomes more stable), and the repository URL. Allowing a local bootloader also seems useful.

from bootimage.

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.