Skip to content

Move linker script#153

Merged
SamTebbs33 merged 1 commit intodevelopfrom
feature/move-linker-script
Jun 4, 2020
Merged

Move linker script#153
SamTebbs33 merged 1 commit intodevelopfrom
feature/move-linker-script

Conversation

@SamTebbs33
Copy link
Collaborator

Closes #152

Copy link
Member

@DrDeano DrDeano left a comment

Choose a reason for hiding this comment

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

A bit of refactoring

build.zig Outdated
exec.addBuildOption(bool, "rt_test", rt_test);
exec.setBuildMode(build_mode);
exec.setLinkerScriptPath("link.ld");
const linker_script_path = try fs.path.join(b.allocator, &[_][]const u8{ "src/kernel/arch", target_str, "link.ld" });
Copy link
Member

Choose a reason for hiding this comment

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

The string "src/kernel/arch" is used for the constants, so maybe can refactor this out

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice idea

Copy link
Member

@DrDeano DrDeano left a comment

Choose a reason for hiding this comment

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

Bam

@SamTebbs33 SamTebbs33 force-pushed the feature/move-linker-script branch 3 times, most recently from 249ed5d to cec5d3c Compare June 4, 2020 11:00
@SamTebbs33 SamTebbs33 merged commit e7770d0 into develop Jun 4, 2020
@SamTebbs33 SamTebbs33 deleted the feature/move-linker-script branch June 4, 2020 11:05
@SamTebbs33 SamTebbs33 mentioned this pull request Jul 20, 2020
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.

Move linker script to arch folder

2 participants