-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from RusPiRo/feature/aarch64
Feature/aarch64
- Loading branch information
Showing
17 changed files
with
655 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
[package] | ||
name = "ruspiro-interrupt" | ||
authors = ["Andre Borrmann <[email protected]>"] | ||
version = "0.2.1" # remember to update html_root_url | ||
description = "Providing a simple and convinient way to implement interrupt handler for Raspberry Pi interrupts." | ||
version = "0.3.0" # remember to update html_root_url | ||
description = """ | ||
Providing a simple and convinient way to implement interrupt handler for Raspberry Pi interrupts. | ||
""" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.2.1" | ||
documentation = "https://docs.rs/ruspiro-interrupt/0.2.1" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.3.0" | ||
documentation = "https://docs.rs/ruspiro-interrupt/0.3.0" | ||
readme = "README.md" | ||
keywords = ["RusPiRo", "baremetal", "raspberrypi", "interrupt"] | ||
categories = ["no-std", "embedded"] | ||
|
@@ -19,10 +21,10 @@ maintenance = { status = "actively-developed" } | |
|
||
[dependencies] | ||
paste = "0.1.5" | ||
ruspiro-register = "0.1" | ||
ruspiro-interrupt-core = { path = "./core", version = "0.2" } | ||
ruspiro-register = { path = "../register", version = "0.3" } | ||
ruspiro-interrupt-core = { path = "./core", version = "0.3" } | ||
ruspiro-interrupt-macros = { path = "./macros", version = "0.2" } | ||
ruspiro-singleton = "0.2" | ||
ruspiro-singleton = { path = "../singleton", version = "0.3" } | ||
|
||
[features] | ||
default = ["ruspiro_pi3"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
set +ev | ||
|
||
if [ $# -eq 0 ] | ||
then | ||
echo "not enough parameter given" | ||
exit 1 | ||
fi | ||
|
||
# check which aarch version to build | ||
if [ $1 = "64" ] | ||
then | ||
# aarch64 | ||
export CFLAGS='-march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53' | ||
export RUSTFLAGS='-C linker=aarch64-elf-gcc -C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+neon -C link-arg=-nostartfiles -C opt-level=3 -C debuginfo=0' | ||
if [ "$2" = "" ] | ||
then | ||
export CC='aarch64-elf-gcc' | ||
export AR='aarch64-elf-ar' | ||
fi | ||
cargo xbuild --target aarch64-unknown-linux-gnu --release | ||
elif [ $1 = "32" ] | ||
then | ||
# aarch32 | ||
export CFLAGS='-mfpu=neon-fp-armv8 -mfloat-abi=hard -march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53' | ||
export RUSTFLAGS='-C linker=arm-eabi-gcc.exe -C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+v8,+vfp3,+d16,+thumb2,+neon -C link-arg=-nostartfiles -C opt-level=3 -C debuginfo=0' | ||
if [ -z "$2" ] | ||
then | ||
export CC='arm-eabi-gcc.exe' | ||
export AR='arm-eabi-ar.exe' | ||
fi | ||
cargo xbuild --target armv7-unknown-linux-gnueabihf --release | ||
else | ||
echo 'provide the archtitecture to be build. Use either "build.sh 32" or "build.sh 64"' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
[package] | ||
name = "ruspiro-interrupt-core" | ||
authors = ["Andre Borrmann <[email protected]>"] | ||
version = "0.2.0" # remember to update html_root_url | ||
description = "Interrupt core functions to globally enable/disable interrupts on Raspberry Pi" | ||
version = "0.3.0" # remember to update html_root_url | ||
description = """ | ||
Interrupt core functions to globally enable/disable interrupts on Raspberry Pi | ||
""" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.2.1/core" | ||
documentation = "https://docs.rs/ruspiro-interrupt-core/0.2.0" | ||
repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v0.3.0/core" | ||
documentation = "https://docs.rs/ruspiro-interrupt-core/0.3.0" | ||
readme = "README.md" | ||
keywords = ["RusPiRo", "baremetal", "raspberrypi", "interrupt"] | ||
categories = ["no-std", "embedded"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.