Commit Graph

41 Commits

Author SHA1 Message Date
Andre Richter
840f6d6f42
Add Cargo.toml to dependencies 2022-06-27 11:06:06 +02:00
Andre Richter
e6c3790cac
Remove .got section again
It seems that whatever bug or config mistake gave us .got entries back then has
since been resolved. Also add a sanity check to recognize should this happen
again.
2022-05-23 22:33:32 +02:00
Andre Richter
821979be41
Fix wrong variable in Makefile 2022-05-09 09:05:50 +02:00
Andre Richter
8513ccfd8d
Various minor fixes 2022-04-27 22:08:55 +02:00
Andre Richter
1323c8245b
Remove RA helper target from Makefile 2022-04-22 22:30:16 +02:00
Andre Richter
e9a3c4b489
Rename main LD script to kernel.ld 2022-04-19 09:09:09 +02:00
Andre Richter
d3e5834e30
Linker: Use absolute library path 2022-04-12 21:58:40 +02:00
Andre Richter
b7cecafa1e
Non-phony kernel targets
Saves time on various targets that depend on the kernel ELF because calling
cargo can be completely skipped if nothing changed.
2022-04-12 21:54:53 +02:00
Andre Richter
cb4ae40ac2
Linker: Provide LD script folder via cmdline
This enables shorter relative paths for ld-internal INCLUDE, which adds more
flexibility wrt to directory structure.
2022-04-11 22:24:18 +02:00
Andre Richter
d901ae6cfe
Update copyright 2022-01-15 21:50:11 +01:00
Andre Richter
dee575bb18
Bump QEMU to 6.1; Tag Docker images from now on 2021-11-13 13:12:10 +01:00
Andre Richter
de3ba3e871 Refactor Tests and Makefile
- Carve out common files for tests
- Add boot tests starting tutorial 3
- Overhaul the Makefile for more structure
2021-07-12 22:27:32 +02:00
Andre Richter
223989adb9
Overhaul linker script 2021-03-16 22:36:06 +01:00
Andre Richter
2f90304149
Add color and verbosity to Makefile 2021-03-12 23:44:10 +01:00
Andre Richter
e7cb61b389
Refactoring
- Don't wildcard-import from arch modules. Make it explicit.
- Put translation table code into its own module.
- Put boot code in boot.rs instead of cpu.rs
- Other minor changes, most memory subsystem.
2021-01-23 22:43:59 +01:00
Andre Richter
44bb3f8942
Update copyright year 2021-01-01 11:28:32 +01:00
Andre Richter
bd16dfe4b3
Demangle++: Pipe through rustfilt 2020-11-20 22:27:21 +01:00
Andre Richter
b30bc518c4
Switch to GCC objdump and nm
The GCC versions of `objdump` and `nm` seem to have better out-of-the-box
support (for AArch64). Demangling works better, and instructions in objdump are
presented as 4 bytes instead of 4 * 1 bytes, which helps a lot.

Hence, switch to the GCC versions for now until LLVM has caught up.
2020-11-01 15:58:05 +01:00
Andre Richter
224ac8d944
Use --headers for readelf 2020-07-21 17:47:43 +02:00
Andre Richter
98d5d79acf
Don't check in binaries anymore 2020-04-16 22:47:19 +02:00
Andre Richter
5a0d8de96b
Demangle in objdump 2020-04-15 23:38:44 +02:00
Andre Richter
bf8e6c36c7
Analyzer: Invoke cargo check through Makefile 2020-04-15 23:00:21 +02:00
Andre Richter
0a1616d8b2
Let cargo track changed files
This should enable incremental compilation monitored by cargo.
2020-04-14 23:16:35 +02:00
Andre Richter
a4266ba978
More Makefile fixes 2020-04-12 22:22:29 +02:00
Andre Richter
6eb9613ba2
Fix objcopy invocation 2020-04-12 11:54:13 +02:00
Andre Richter
089565762a
Makefiles: Docker USB passthrough in Linux only
Detect if we run on Linux. If so, dockerize Makefile targets that need access to
USB devices. If we run on anything else, attempt to execute natively.

This will enable non-Linux Unixes like macOS to run the chainboot target, given
they install the needed Ruby dependencies.
2020-04-11 12:22:52 +02:00
Andre Richter
792b208643
Missed xdoc -> doc earlier 2020-04-09 21:27:14 +02:00
Andre Richter
c4f9432e13
Remove xbuild. Use upstream aarch64 rust-std 🎉 🦀
`rustup target add aarch64-unknown-none-softfloat` is now a thing.
It is no longer required to build rust-std on-demand with `xbuild`.

This reduces compile-times significantly.
2020-04-07 23:17:48 +02:00
Andre Richter
e8d787f627
Refactor tutorial 02 2020-03-28 13:27:23 +01:00
Andre Richter
bb78c779ca
Introducing Minipush, a raspbootcom replacement.
Gets rid of compiled C++, uses Ruby 💎
2020-01-14 20:45:41 +01:00
Andre Richter
0e78932bf7
Treat clippy warnigs as error 2020-01-09 22:11:39 +01:00
Andre Richter
e690f8e7e4
Copyright bump to 2020 🎆 2020-01-02 00:41:03 +01:00
Andre Richter
9d77f46759
Some Makefile tweaks 2019-12-01 22:19:29 +01:00
Andre Richter
54137e8b38
Relicense as dual MIT OR Apache-2.0 2019-11-25 19:54:05 +01:00
Andre Richter
79a2a202b2
Make println! raw and an info! having the timestamp. 2019-11-13 09:11:05 +01:00
Andre Richter
1cc034b364
Makefile changes 2019-11-13 08:40:23 +01:00
Andre Richter
6119cf88b1
Actions: Add RPi4 build 2019-10-29 22:34:20 +01:00
Andre Richter
2fe2dcba6d
Add support for Raspberry Pi 4 🎉 2019-10-27 23:12:26 +01:00
Andre Richter
0ca114b408
Streamlining 2019-10-27 23:12:16 +01:00
Andre Richter
294538e323
Change to new aarch64-unknown-none-softfloat target 2019-10-27 23:10:45 +01:00
Andre Richter
d6accd6c69
Add code for tutorial 02 2019-10-27 23:09:36 +01:00