Fix build profiles
This commit is contained in:
parent
c2e3f1bec3
commit
b6d9a71b59
1
firmware/Cargo.lock
generated
1
firmware/Cargo.lock
generated
|
|
@ -6853,6 +6853,7 @@ checksum = "a0f368519fc6c85fc1afdb769fb5a51123f6158013e143656e25a3485a0d401c"
|
|||
[[package]]
|
||||
name = "spectre-api-sys"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/Limeth/spectre-api-sys?rev=9e844eb056c3dfee8286ac21ec40fa689a8b8aa2#9e844eb056c3dfee8286ac21ec40fa689a8b8aa2"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"cc",
|
||||
|
|
|
|||
|
|
@ -5,3 +5,22 @@ default-members = []
|
|||
|
||||
[workspace.dependencies]
|
||||
spectre-api-sys = { git = "https://github.com/Limeth/spectre-api-sys", rev = "9e844eb056c3dfee8286ac21ec40fa689a8b8aa2" }
|
||||
|
||||
|
||||
[profile.dev.package.esp-storage]
|
||||
opt-level = 3
|
||||
|
||||
[profile.dev]
|
||||
# Rust debug is too slow.
|
||||
# For debug builds always builds with some optimization
|
||||
opt-level = "s"
|
||||
lto = 'thin'
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
debug-assertions = false
|
||||
incremental = false
|
||||
lto = 'thin'
|
||||
opt-level = 3
|
||||
overflow-checks = false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[target.'cfg(all(any(target_arch = "riscv32", target_arch = "xtensa"), target_os = "none"))']
|
||||
# runner = "espflash flash --monitor"
|
||||
runner = "probe-rs run --chip esp32s3 --preverify"
|
||||
runner = "espflash flash --monitor"
|
||||
# runner = "probe-rs run --chip esp32s3 --preverify"
|
||||
|
||||
[build]
|
||||
target = "xtensa-esp32s3-none-elf"
|
||||
|
|
|
|||
|
|
@ -126,25 +126,3 @@ indoc = "2.0.7"
|
|||
name = "acid-firmware"
|
||||
test = false
|
||||
bench = false
|
||||
|
||||
[profile.release-with-debug]
|
||||
inherits = "release"
|
||||
debug = true
|
||||
|
||||
|
||||
[profile.dev.package.esp-storage]
|
||||
opt-level = 3
|
||||
|
||||
[profile.dev]
|
||||
# Rust debug is too slow.
|
||||
# For debug builds always builds with some optimization
|
||||
opt-level = "s"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
debug-assertions = false
|
||||
incremental = false
|
||||
lto = 'thin'
|
||||
opt-level = 3
|
||||
overflow-checks = false
|
||||
|
|
|
|||
|
|
@ -46,6 +46,17 @@ Then compile the firmware with:
|
|||
$env:XKBCOMMON_BUILD_DIR="libxkbcommon/build-debug"; cargo build
|
||||
```
|
||||
|
||||
## Debugging via alternative UART pins
|
||||
|
||||
Connect your serial debugger's TX to GPIO5 and its RX to GPIO12.
|
||||
On Linux, listen to the serial stream using:
|
||||
|
||||
```sh
|
||||
tio -m INLCRNL /dev/ttyUSB1
|
||||
```
|
||||
|
||||
On Windows, use PuTTY with a baudrate of 115200.
|
||||
|
||||
### Creating keymaps
|
||||
|
||||
To generate an English (US) keymap, the following command may be used:
|
||||
|
|
|
|||
|
|
@ -26,7 +26,11 @@ pub mod file;
|
|||
pub unsafe extern "C" fn __xkbc_fopen(filename: *const c_char, mode: *const c_char) -> *mut FILE {
|
||||
warn!(
|
||||
"The xkbcommon library is attempting to open a file at path: {:?}",
|
||||
unsafe { CStr::from_ptr(filename) }
|
||||
if filename.is_null() {
|
||||
None
|
||||
} else {
|
||||
Some(unsafe { CStr::from_ptr(filename) })
|
||||
}
|
||||
);
|
||||
null_mut()
|
||||
}
|
||||
|
|
|
|||
0
firmware/libsodium-compile.sh
Normal file → Executable file
0
firmware/libsodium-compile.sh
Normal file → Executable file
0
firmware/libxkbcommon-compile.sh
Normal file → Executable file
0
firmware/libxkbcommon-compile.sh
Normal file → Executable file
0
firmware/redefine-syms.sh
Normal file → Executable file
0
firmware/redefine-syms.sh
Normal file → Executable file
0
firmware/spectre-api-compile.sh
Normal file → Executable file
0
firmware/spectre-api-compile.sh
Normal file → Executable file
Loading…
Reference in a new issue