diff --git a/01_wait_forever/Cargo.toml b/01_wait_forever/Cargo.toml index 0595aa57..0f798fcb 100644 --- a/01_wait_forever/Cargo.toml +++ b/01_wait_forever/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/02_runtime_init/Cargo.toml b/02_runtime_init/Cargo.toml index 0595aa57..0f798fcb 100644 --- a/02_runtime_init/Cargo.toml +++ b/02_runtime_init/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/03_hacky_hello_world/Cargo.toml b/03_hacky_hello_world/Cargo.toml index 0595aa57..0f798fcb 100644 --- a/03_hacky_hello_world/Cargo.toml +++ b/03_hacky_hello_world/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/04_zero_overhead_abstraction/Cargo.toml b/04_zero_overhead_abstraction/Cargo.toml index b0b0e9fb..51745543 100644 --- a/04_zero_overhead_abstraction/Cargo.toml +++ b/04_zero_overhead_abstraction/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/04_zero_overhead_abstraction/README.md b/04_zero_overhead_abstraction/README.md index 2721ea34..c7ff8a5f 100644 --- a/04_zero_overhead_abstraction/README.md +++ b/04_zero_overhead_abstraction/README.md @@ -13,7 +13,7 @@ diff -uNr 03_hacky_hello_world/Cargo.toml 04_zero_overhead_abstraction/Cargo.toml --- 03_hacky_hello_world/Cargo.toml +++ 04_zero_overhead_abstraction/Cargo.toml -@@ -15,3 +15,8 @@ +@@ -18,3 +18,8 @@ ##-------------------------------------------------------------------------------------------------- [dependencies] diff --git a/05_safe_globals/Cargo.toml b/05_safe_globals/Cargo.toml index b0b0e9fb..51745543 100644 --- a/05_safe_globals/Cargo.toml +++ b/05_safe_globals/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/06_drivers_gpio_uart/Cargo.toml b/06_drivers_gpio_uart/Cargo.toml index afa9688b..b8906da1 100644 --- a/06_drivers_gpio_uart/Cargo.toml +++ b/06_drivers_gpio_uart/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/06_drivers_gpio_uart/README.md b/06_drivers_gpio_uart/README.md index 11601304..1bd8b26a 100644 --- a/06_drivers_gpio_uart/README.md +++ b/06_drivers_gpio_uart/README.md @@ -105,7 +105,7 @@ Miniterm 1.0 diff -uNr 05_safe_globals/Cargo.toml 06_drivers_gpio_uart/Cargo.toml --- 05_safe_globals/Cargo.toml +++ 06_drivers_gpio_uart/Cargo.toml -@@ -7,8 +7,8 @@ +@@ -10,8 +10,8 @@ # The features section is used to select the target board. [features] default = [] @@ -116,7 +116,7 @@ diff -uNr 05_safe_globals/Cargo.toml 06_drivers_gpio_uart/Cargo.toml ##-------------------------------------------------------------------------------------------------- ## Dependencies -@@ -16,6 +16,9 @@ +@@ -19,6 +19,9 @@ [dependencies] diff --git a/07_uart_chainloader/Cargo.toml b/07_uart_chainloader/Cargo.toml index afa9688b..b8906da1 100644 --- a/07_uart_chainloader/Cargo.toml +++ b/07_uart_chainloader/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/08_timestamps/Cargo.toml b/08_timestamps/Cargo.toml index afa9688b..b8906da1 100644 --- a/08_timestamps/Cargo.toml +++ b/08_timestamps/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/09_hw_debug_JTAG/Cargo.toml b/09_hw_debug_JTAG/Cargo.toml index afa9688b..b8906da1 100644 --- a/09_hw_debug_JTAG/Cargo.toml +++ b/09_hw_debug_JTAG/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/10_privilege_level/Cargo.toml b/10_privilege_level/Cargo.toml index afa9688b..b8906da1 100644 --- a/10_privilege_level/Cargo.toml +++ b/10_privilege_level/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/11_virtual_mem_part1_identity_mapping/Cargo.toml b/11_virtual_mem_part1_identity_mapping/Cargo.toml index afa9688b..b8906da1 100644 --- a/11_virtual_mem_part1_identity_mapping/Cargo.toml +++ b/11_virtual_mem_part1_identity_mapping/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/12_exceptions_part1_groundwork/Cargo.toml b/12_exceptions_part1_groundwork/Cargo.toml index afa9688b..b8906da1 100644 --- a/12_exceptions_part1_groundwork/Cargo.toml +++ b/12_exceptions_part1_groundwork/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/13_integrated_testing/Cargo.toml b/13_integrated_testing/Cargo.toml index cd196bd9..5d57cf35 100644 --- a/13_integrated_testing/Cargo.toml +++ b/13_integrated_testing/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/13_integrated_testing/README.md b/13_integrated_testing/README.md index 69114d1e..ed84d533 100644 --- a/13_integrated_testing/README.md +++ b/13_integrated_testing/README.md @@ -797,7 +797,7 @@ diff -uNr 12_exceptions_part1_groundwork/.cargo/config.toml 13_integrated_testin diff -uNr 12_exceptions_part1_groundwork/Cargo.toml 13_integrated_testing/Cargo.toml --- 12_exceptions_part1_groundwork/Cargo.toml +++ 13_integrated_testing/Cargo.toml -@@ -15,11 +15,38 @@ +@@ -18,11 +18,38 @@ ##-------------------------------------------------------------------------------------------------- [dependencies] diff --git a/14_exceptions_part2_peripheral_IRQs/Cargo.toml b/14_exceptions_part2_peripheral_IRQs/Cargo.toml index cd196bd9..5d57cf35 100644 --- a/14_exceptions_part2_peripheral_IRQs/Cargo.toml +++ b/14_exceptions_part2_peripheral_IRQs/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/15_virtual_mem_part2_mmio_remap/Cargo.toml b/15_virtual_mem_part2_mmio_remap/Cargo.toml index cd196bd9..5d57cf35 100644 --- a/15_virtual_mem_part2_mmio_remap/Cargo.toml +++ b/15_virtual_mem_part2_mmio_remap/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/X1_JTAG_boot/Cargo.toml b/X1_JTAG_boot/Cargo.toml index 33dbda85..8a1a364e 100644 --- a/X1_JTAG_boot/Cargo.toml +++ b/X1_JTAG_boot/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Andre Richter "] edition = "2018" +[profile.release] +lto = true + # The features section is used to select the target board. [features] default = [] diff --git a/X1_JTAG_boot/jtag_boot_rpi3.img b/X1_JTAG_boot/jtag_boot_rpi3.img index 38fba536..064b41a4 100755 Binary files a/X1_JTAG_boot/jtag_boot_rpi3.img and b/X1_JTAG_boot/jtag_boot_rpi3.img differ diff --git a/X1_JTAG_boot/jtag_boot_rpi4.img b/X1_JTAG_boot/jtag_boot_rpi4.img index 242b8159..44e2fb79 100755 Binary files a/X1_JTAG_boot/jtag_boot_rpi4.img and b/X1_JTAG_boot/jtag_boot_rpi4.img differ