Commit Graph

21 Commits

Author SHA1 Message Date
Felix Packard
b1bf2e51d6 Fix typo when referencing the rustc-abi field. 2025-02-20 15:46:05 +00:00
Philipp Oppermann
450afac4a1 Add rustc-abi field to target spec JSON
The Rust compiler now requires an explicit `rustc-abi: x86-softfloat` field when using the soft-float target feature. This was added in https://github.com/rust-lang/rust/pull/136146 and is part of the latest nightlies.

I updated the post branches in commit 688a21e4
2025-02-10 12:19:51 +01:00
EsotericDryad
e0ab3f257d Update post 02 "Building our Kernel" section
Added an explanation for why the new target still uses Linux conventions
2024-10-06 01:18:16 -05:00
Philipp Oppermann
b8be0c5a5d Add a note that only bootloader v0.9 is compatible 2024-04-09 11:27:15 +02:00
Philipp Oppermann
1f6402f746 Specify bootloader version as v0.9 (without patch version) in all posts
Cargo automatically chooses the latest patch version, but beginners might not know that. So this hopefully avoids some confusion.
2024-02-16 13:25:04 +01:00
Philipp Oppermann
c31dcb48e5 Update data layouts of custom targets to LLVM 18 2024-02-16 13:11:03 +01:00
Philipp Oppermann
1dced13b29 Update data layouts in target specifications
The data layout changed in LLVM. Using the wrong data layout now leads to a build error.
2024-01-28 11:50:57 +01:00
Connortsui20
73628c1d05 Grammar fix 2023-08-18 08:12:39 -04:00
Connortsui20
63dc179cc7 shorter .cargo explanation 2023-08-17 09:13:43 -04:00
Connortsui20
211544af00 Better clarification 2023-08-17 08:42:54 -04:00
Connortsui20
1ff26bb4b6 Update post 2 with beginner friendly cargo tips
As a relatively new person to Rust, I confused the `.cargo/config.toml` with the global cargo config in my home directory (`~/.cargo/config.toml). While this is pretty obviously wrong in hindsight, since I've never used the `[unstable]` options before, I didn't realize my mistake until this next thing that tripped me up.

For `cargo install bootimage`, I think it is reasonable to tell the reader to go into a different directory to execute the command, since it might be the case that the reader has never dealt with different targets before and would have no idea that running `cargo install` for the new target that they just made in a json would be wrong (at least this was me).

This could be worded differently than the changes I made, but I think that the addition of these could only benefit a confused reader.
2023-08-16 18:57:37 -04:00
seewishnew
b63ce2dc3c Fixes bootloader version
Adds a note about using a custom physical memory offset and its caveats
2022-11-24 20:42:22 -08:00
lovemeforareason
f905e7aa2b Remove warning output from QEMU command. 2022-10-03 10:39:46 -04:00
hecatia-elegua
9d079e6d3e fix: check writing of 02
also prepend the dd-command with the "be careful"-warning
2022-07-08 17:38:45 +02:00
Philipp Oppermann
eab9b70c68 Fix Rust documentation links 2022-05-22 12:54:22 +02:00
Max Desiatov
5b2c60ece3 Fix typo in 02-minimal-rust-kernel (#1080)
`rerun the our build command` -> `rerun our build command`
2022-02-16 10:37:31 +00:00
Philipp Oppermann
0d40ee3750 Fix interal links and work around errors for #comments links
Zola only checks the markdown source for link targets, so an error occurs if the target is in an template. This is the case for our `#comments` links, so we add a dummy target in a comment.
2022-01-23 16:40:54 +01:00
Foo-x
8b2ee6a4b8 docs: clean indent of JSONs (#1028)
Closes #1027
2021-06-28 11:07:58 +00:00
Mostafa Elbannan
6d02874049 Suggestion for .cargo/config.toml Explanation (#974)
I was confused on what the 'unstable' section of my .cargo/config.toml file should look like once I started getting linking errors when going through the third post. It turned out it was because I overwrote the previous 'unstable' configuration with the latter one. 

In other words, I thought we were to overwrite "build-std = ["core", "compiler_builtins"]" under the "unstable" config, with "build-std-features = ["compiler-builtins-mem"]" and NOT have both present. 

I think this makes it more clear that both are supposed to be present.
2021-04-27 11:18:38 +02:00
Daniel Spencer
88f32ffcb5 Remove note on builtin memory optimizations (#932)
The referenced issue in compiler-builtins (https://github.com/rust-lang/compiler-builtins/pull/365) has been merged.
2021-02-23 09:24:09 +01:00
Philipp Oppermann
f692c5b377 Rename second-edition subfolder to `edition-2 2020-12-16 14:56:36 +01:00