Merge pull request #3118 from diondokter/rp-boot2-none
RP: add option to provide your own boot2
This commit is contained in:
commit
bce7c73a3a
2 changed files with 9 additions and 0 deletions
embassy-rp
|
@ -79,6 +79,14 @@ boot2-ram-memcpy = []
|
||||||
boot2-w25q080 = []
|
boot2-w25q080 = []
|
||||||
## Use boot2 with support for Winbond W25X10CL SPI flash.
|
## Use boot2 with support for Winbond W25X10CL SPI flash.
|
||||||
boot2-w25x10cl = []
|
boot2-w25x10cl = []
|
||||||
|
## Have embassy not provide the boot2 so you can use your own.
|
||||||
|
## Place your own in the ".boot2" section like:
|
||||||
|
## ```
|
||||||
|
## #[link_section = ".boot2"]
|
||||||
|
## #[used]
|
||||||
|
## static BOOT2: [u8; 256] = [0; 256]; // Provide your own with e.g. include_bytes!
|
||||||
|
## ```
|
||||||
|
boot2-none = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
embassy-sync = { version = "0.6.0", path = "../embassy-sync" }
|
embassy-sync = { version = "0.6.0", path = "../embassy-sync" }
|
||||||
|
|
|
@ -226,6 +226,7 @@ macro_rules! select_bootloader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "boot2-none"))]
|
||||||
select_bootloader! {
|
select_bootloader! {
|
||||||
"boot2-at25sf128a" => BOOT_LOADER_AT25SF128A,
|
"boot2-at25sf128a" => BOOT_LOADER_AT25SF128A,
|
||||||
"boot2-gd25q64cs" => BOOT_LOADER_GD25Q64CS,
|
"boot2-gd25q64cs" => BOOT_LOADER_GD25Q64CS,
|
||||||
|
|
Loading…
Add table
Reference in a new issue