Skip to content

Commit

Permalink
Ensure that the interrupt vector table does not get included when bui…
Browse files Browse the repository at this point in the history
…lding for host (e.g. when used in a build script)
  • Loading branch information
summivox committed Aug 20, 2023
1 parent c751cda commit 4989035
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion raltool/src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ name."#
}
}

#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
#(fn #names();)*
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1011.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1015.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1021.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1051.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1052.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1061.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1062.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1064.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1176_cm4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down
2 changes: 1 addition & 1 deletion src/imxrt1176_cm7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
self as u16
}
}
#[cfg(feature = "rt")]
#[cfg(all(feature = "rt", target_os = "none"))]
mod _vectors {
extern "C" {
fn DMA0_DMA16();
Expand Down

0 comments on commit 4989035

Please sign in to comment.