Skip to content

build all artifacts to .nanvix/out#233

Draft
ada-x64 wants to merge 1 commit into
nanvix/v1.3.1from
fix/build-to-dist
Draft

build all artifacts to .nanvix/out#233
ada-x64 wants to merge 1 commit into
nanvix/v1.3.1from
fix/build-to-dist

Conversation

@ada-x64
Copy link
Copy Markdown

@ada-x64 ada-x64 commented May 29, 2026

WIP pending upstream changes on zutils

Changes needed upstream before this works:

  • Constant values for output directories
  • make_initrd should discover files and output them to the corresponding out/ directories.
  • Remove non-build steps from zutils's docker-enabled steps.

Probably some changes on this branch still to come.

Copilot AI review requested due to automatic review settings May 29, 2026 21:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR redirects Nanvix zlib build outputs into .nanvix/out and updates test/package paths to consume those relocated artifacts.

Changes:

  • Adds artifact path constants and moves built libraries/test ELFs into .nanvix/out.
  • Updates Makefile variables and test/package logic to reference configured artifact locations.
  • Ignores .nanvix/out and .nanvix/dist.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
.nanvix/z.py Defines output locations, relocates build artifacts, and updates test initrd inputs.
.nanvix/Makefile.nanvix Accepts artifact/output variables and uses them in build, test, package, and clean targets.
.nanvix/.gitignore Ignores generated Nanvix output and distribution directories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .nanvix/z.py
for binary in test_binaries:
name = binary.stem
print(f"RUN {name}...")
print(f"RUN {binary.stem}...")
Comment thread .nanvix/z.py
initrd = make_initrd(
self, binary.name, InitRdArgs(app_args=["/tmp/zlib_test"])
)
initrd = make_initrd(self, binary, InitRdArgs(app_args=["/tmp/zlib_test"]))
Comment thread .nanvix/Makefile.nanvix
Comment on lines 192 to 194
clean:
rm -f *.o test/*.o *~ $(STATICLIB) $(TEST_PROGS)
rm -f *.a *$(EXE)
rm -rf $(OUT_DIR)
rm -rf dist/
Comment thread .nanvix/Makefile.nanvix

# Ensure required variables are defined
_REQUIRED := PLATFORM PROCESS_MODE MEMORY_SIZE NANVIX_HOME NANVIX_TOOLCHAIN
_REQUIRED := PLATFORM PROCESS_MODE MEMORY_SIZE NANVIX_HOME NANVIX_TOOLCHAIN NANVIX_ROOT OUT_DIR DIST_DIR LIB_OUT INCLUDE_OUT TEST_OUT TEST_ARTIFACTS INCLUDE_ARTIFACTS LIB_ARTIFACTS
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

Successfully merging this pull request may close these issues.

2 participants