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

build from current src/objdir? #1

Open
llfw opened this issue Apr 21, 2024 · 2 comments
Open

build from current src/objdir? #1

llfw opened this issue Apr 21, 2024 · 2 comments

Comments

@llfw
Copy link

llfw commented Apr 21, 2024

apologies if this is already documented but i didn't see it in README:

is there a way, using the vm-boot task, to re-use the existing src and obj directories for the build? the system i development on is quite low-end (Ryzen 5800X3D, 8x 3.4GHz cores) and buildworld takes a long time. i'm testing a commit that requires booting GENERIC on every architecture and it's taking a long time just to run buildworld/buildkernel for bricoler.

@markjdb
Copy link
Owner

markjdb commented Apr 21, 2024

Oh wow, I wasn't really expecting anyone to actually try using this. It's got a lot of usability issues, I'm redesigning it at the moment. (I'd appreciate any commentary on what you think is good or terrible about it, and what you'd like to see instead.)

apologies if this is already documented but i didn't see it in README:

is there a way, using the vm-boot task, to re-use the existing src and obj directories for the build? the system i development on is quite low-end (Ryzen 5800X3D, 8x 3.4GHz cores) and buildworld takes a long time. i'm testing a commit that requires booting GENERIC on every architecture and it's taking a long time just to run buildworld/buildkernel for bricoler.

To reuse your src tree, set the clone parameter of the git task to false, and set the repo to an absolute path to the git checkout.

I haven't tried reusing an object directory, and doing so kinda goes against the intent of how this works, but I think you should be able to override MAKEOBJDIRPREFIX in the make task's make_env parameter.

@llfw
Copy link
Author

llfw commented Apr 21, 2024

hi Mark,

I'd appreciate any commentary on what you think is good or terrible about it, and what you'd like to see instead.

so basically my workflow is this:

  1. edit src
  2. build src
  3. goto 1 until it compiles
  4. make memstick or vm-release and boot that in a VM to make sure the kernel still works

i was hoping i could use bricoler to automate step 4, i.e. taking my existing src tree and booting it into a VM -- but, ideally, without having to rebuild everything from scratch, since i'm just testing a local change, not doing QA / RE.

it might be bricoler isn't the right tool for this though, which is fine -- i don't mind writing some local scripts for it instead.

i'll have a try with MAKEOBJDIRPREFIX.

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