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

about recompiling #104

Open
sjtugjy opened this issue Aug 10, 2017 · 1 comment
Open

about recompiling #104

sjtugjy opened this issue Aug 10, 2017 · 1 comment

Comments

@sjtugjy
Copy link

sjtugjy commented Aug 10, 2017

Does there exist some convenient way to recompile the kernel after small changes?
Besides, it seems that recompiling does not find changes of any file.
For example, rumprun/platform/xen/xen/kernel.c.

@kent-mcleod
Copy link
Contributor

kent-mcleod commented Aug 22, 2017

Generally I've found re-invoking build-rr.sh to generally be pretty reasonable for detecting and rebuilding changes. At one point I was calling it from a Makefile and only re ran build-rr.sh if any file in the rumprun src tree had changed like so:

# All rumprun source directories.
SRC_DIRECTORIES := app-tools buildrump.sh include lib platform src-netbsd
# Find all source rump files.
RUMPFILES += $(shell find -L $(SRC_DIRECTORIES:%=$(SOURCE_DIR)/%) \( -type f \))
.rump: $(RUMPFILES)
	./build-rr.sh ...
	touch .rump

As for changes to files not getting rebuilt, I found that any changes to files that are included using the preprocessor won't be detected unless you modify the Makefiles to use makedepend or something.

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