File system files to new folder and use FixedBufferStream for initrd

Fixed non-header aligned sizes

When allocating a size that isn't aligned to the Header, then we get a incorrect alignment.
To fix this, added additional alignment padding to the next free header.

Fixed adding strings to build options
This commit is contained in:
DrDeano 2020-08-06 18:13:53 +01:00
parent f9244c63cd
commit 7b5f921d9f
No known key found for this signature in database
GPG key ID: 96188600582B9ED7
5 changed files with 189 additions and 160 deletions

View file

@ -83,8 +83,8 @@ pub fn build(b: *Builder) !void {
b.default_step.dependOn(&make_iso.step);
const test_step = b.step("test", "Run tests");
const mock_path = "\"../../test/mock/kernel/\"";
const arch_mock_path = "\"../../../../test/mock/kernel/\"";
const mock_path = "../../test/mock/kernel/";
const arch_mock_path = "../../../../test/mock/kernel/";
const unit_tests = b.addTest(main_src);
unit_tests.setBuildMode(build_mode);
unit_tests.setMainPkgPath(".");