Skip to content

Commit

Permalink
bookworm linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcypress committed Jun 22, 2024
1 parent a2ea161 commit 47fea82
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ jobs:
./upico.service
./upico
outPath: upico_${{ github.ref_name }}.cm4.tar.gz
- name: CM4 Bookworm Build
run: cross build --release --target=armv7-unknown-linux-musleabihf --no-default-features --features cm4-bookworm
- name: Copy CM4 Bookworm binary
run : cp -f ./target/armv7-unknown-linux-musleabihf/release/upico upico
- name: Compress CM4 Bookworm Build
uses: a7ul/tar-action@v1.1.0
with:
command: c
files: |
./readme.md
./LICENSE-MIT
./LICENSE-APACHE
./install.sh
./upico.service
./upico
outPath: upico_${{ github.ref_name }}.cm4-bookworm.tar.gz
- name: A06 Build
run: cross build --release --target=armv7-unknown-linux-musleabihf --no-default-features --features a06
- name: Copy A06 binary
Expand Down Expand Up @@ -104,4 +120,5 @@ jobs:
files: |
upico_${{ github.ref_name }}.r01.tar.gz
upico_${{ github.ref_name }}.cm4.tar.gz
upico_${{ github.ref_name }}.cm4-bookworm.tar.gz
upico_${{ github.ref_name }}.a06.tar.gz
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ serde = { version = "1.0.188", features = ["serde_derive"] }

[features]
default = ["cm4"]
r01 = []
cm4 = []
a06 = []
a04 = []
a06 = []
cm4 = []
cm4-bookworm = []
r01 = []

[profile.release]
strip = true
Expand Down
14 changes: 14 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ pub mod platform {
pub const PIN_USB_OCP: usize = 20;
}

#[cfg(feature = "cm4-bookworm")]
pub mod platform {
pub const AUX_SWITCH: bool = true;
pub const OCP_REPORTING: bool = true;
pub const PIN_PICO_BOOT: usize = 2;
pub const PIN_VDD_EN: usize = 25;
pub const PIN_USB_EN: usize = 29;
pub const PIN_PICO_RUN: usize = 22;
pub const PIN_AUX_EN: usize = 27;
pub const PIN_AUX_OCP: usize = 11;
pub const PIN_VDD_OCP: usize = 6;
pub const PIN_USB_OCP: usize = 28;
}

#[cfg(feature = "a06")]
pub mod platform {
pub const OCP_REPORTING: bool = false;
Expand Down

0 comments on commit 47fea82

Please sign in to comment.