-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating libcore for architecture #22
Comments
This is actually not limited to libcore. Each rust crate is compiled for a specific target, so, in fact, all the drivers and common kernel components need to be recompiled as well. Simiarly, applications may need to be compiled with different GCC targets, so they too need to be recompiled. Ideally the build directory could maximize artifact sharing by splitting have a separate build directory per chip and platform (so multiple platforms using the same chip could reuse a compiled libcore and lib-chipname. But a separate build directory for each platform would be a good start. |
Duplicate of #30 |
* kernel works * OXID-48-Implement-deferred-tasks-for-uart (tock#15) * deferred tasks for uart and io.rs panic added * NOP added to arch/wasm * NOP asm operation added for wasm * Update arch/wasm/src/lib.rs Co-authored-by: Alexandru Radovici <alexandru.radovici@wyliodrin.com> * Update lib.rs * cargo.toml deno-wasm optimization removed --------- Co-authored-by: Alexandru Radovici <alexandru.radovici@wyliodrin.com> * PROCESS_PRINTER fix * nvic added * alarm working * Update lib.rs * comments fixes * alarm_test moved to examples directory * deno function calls update * updated the architecture and added multiple timers * interrupts readme added to deno chip * added deno formatter * Update ci.yml * cleanup * classes comments added * Update ci.yml --------- Co-authored-by: Alexandru Radovici <alexandru.radovici@oxidos.io> Co-authored-by: Alexandru Radovici <alexandru.radovici@wyliodrin.com>
Makefile for libcore is currently broken if you build for more than one platform There are two platforms, let's just say one is cortex-m0 and cortex-m4 (different thumb versions). Triple does not match for core lib. The error output:
This is caused by copying libcore to build directory without appending any triple specific value. A quick fix would be to copy libcore to a platform specific build directory or just define libcore.rlib as phony target.
A better one might be to come up with a schema from target.json file. What shall we consider, arch, llvm-target?
The text was updated successfully, but these errors were encountered: