SalimTerryLi
4 years ago
committed by
GitHub
13 changed files with 209 additions and 7 deletions
@ -0,0 +1,50 @@
@@ -0,0 +1,50 @@
|
||||
name: Linux ARM64 Targets |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- 'master' |
||||
pull_request: |
||||
branches: |
||||
- '*' |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ubuntu-latest |
||||
container: px4io/px4-dev-aarch64:latest |
||||
strategy: |
||||
matrix: |
||||
config: [ |
||||
scumaker_pilotpi_arm64, |
||||
] |
||||
steps: |
||||
- uses: actions/checkout@v1 |
||||
with: |
||||
token: ${{secrets.ACCESS_TOKEN}} |
||||
|
||||
- name: Prepare ccache timestamp |
||||
id: ccache_cache_timestamp |
||||
shell: cmake -P {0} |
||||
run: | |
||||
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) |
||||
message("::set-output name=timestamp::${current_date}") |
||||
- name: ccache cache files |
||||
uses: actions/cache@v2 |
||||
with: |
||||
path: ~/.ccache |
||||
key: ${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} |
||||
restore-keys: ${{matrix.config}}-ccache- |
||||
- name: setup ccache |
||||
run: | |
||||
mkdir -p ~/.ccache |
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf |
||||
echo "compression = true" >> ~/.ccache/ccache.conf |
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf |
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf |
||||
ccache -s |
||||
ccache -z |
||||
|
||||
- name: make ${{matrix.config}} |
||||
run: make ${{matrix.config}} |
||||
- name: ccache post-run |
||||
run: ccache -s |
@ -0,0 +1,93 @@
@@ -0,0 +1,93 @@
|
||||
add_definitions( |
||||
-D__PX4_LINUX |
||||
) |
||||
|
||||
px4_add_board( |
||||
VENDOR scumaker |
||||
MODEL pilotpi |
||||
LABEL arm64 |
||||
PLATFORM posix |
||||
ARCHITECTURE cortex-a53 |
||||
ROMFSROOT px4fmu_common |
||||
TOOLCHAIN aarch64-linux-gnu |
||||
TESTING |
||||
DRIVERS |
||||
adc/ads1115 |
||||
#barometer # all available barometer drivers |
||||
barometer/ms5611 |
||||
batt_smbus |
||||
camera_capture |
||||
camera_trigger |
||||
differential_pressure # all available differential pressure drivers |
||||
distance_sensor # all available distance sensor drivers |
||||
gps |
||||
#imu # all available imu drivers |
||||
imu/invensense/icm42688p |
||||
imu/invensense/icm42605 |
||||
#magnetometer # all available magnetometer drivers |
||||
magnetometer/hmc5883 |
||||
magnetometer/isentek/ist8310 |
||||
pca9685_pwm_out |
||||
pwm_out_sim |
||||
rc_input |
||||
#telemetry # all available telemetry drivers |
||||
MODULES |
||||
airspeed_selector |
||||
attitude_estimator_q |
||||
battery_status |
||||
camera_feedback |
||||
commander |
||||
dataman |
||||
ekf2 |
||||
events |
||||
fw_att_control |
||||
fw_pos_control_l1 |
||||
land_detector |
||||
landing_target_estimator |
||||
load_mon |
||||
local_position_estimator |
||||
logger |
||||
mavlink |
||||
mc_att_control |
||||
mc_hover_thrust_estimator |
||||
mc_pos_control |
||||
mc_rate_control |
||||
#micrortps_bridge |
||||
navigator |
||||
rc_update |
||||
rover_pos_control |
||||
sensors |
||||
temperature_compensation |
||||
sih |
||||
#simulator |
||||
vmount |
||||
vtol_att_control |
||||
SYSTEMCMDS |
||||
dyn |
||||
esc_calib |
||||
led_control |
||||
mixer |
||||
motor_ramp |
||||
param |
||||
perf |
||||
pwm |
||||
sd_bench |
||||
shutdown |
||||
tests # tests and test runner |
||||
#top |
||||
topic_listener |
||||
tune_control |
||||
ver |
||||
work_queue |
||||
EXAMPLES |
||||
dyn_hello # dynamically loading modules example |
||||
fixedwing_control # Tutorial code from https://px4.io/dev/example_fixedwing_control |
||||
hello |
||||
#hwtest # Hardware test |
||||
#matlab_csv_serial |
||||
px4_mavlink_debug # Tutorial code from http://dev.px4.io/en/debug/debug_values.html |
||||
px4_simple_app # Tutorial code from http://dev.px4.io/en/apps/hello_sky.html |
||||
rover_steering_control # Rover example app |
||||
uuv_example_app |
||||
work_item |
||||
) |
@ -0,0 +1,42 @@
@@ -0,0 +1,42 @@
|
||||
# arm-linux-gnueabihf-gcc toolchain |
||||
|
||||
set(CMAKE_SYSTEM_NAME Linux) |
||||
set(CMAKE_SYSTEM_PROCESSOR arm) |
||||
set(CMAKE_SYSTEM_VERSION 1) |
||||
|
||||
set(triple aarch64-linux-gnu) |
||||
set(CMAKE_LIBRARY_ARCHITECTURE ${triple}) |
||||
set(TOOLCHAIN_PREFIX ${triple}) |
||||
|
||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) |
||||
set(CMAKE_C_COMPILER_TARGET ${triple}) |
||||
|
||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++) |
||||
set(CMAKE_CXX_COMPILER_TARGET ${triple}) |
||||
|
||||
set(CMAKE_ASM_COMPILER ${TOOLCHAIN_PREFIX}-gcc) |
||||
|
||||
# compiler tools |
||||
find_program(CMAKE_AR ${TOOLCHAIN_PREFIX}-gcc-ar) |
||||
find_program(CMAKE_GDB ${TOOLCHAIN_PREFIX}-gdb) |
||||
find_program(CMAKE_LD ${TOOLCHAIN_PREFIX}-ld) |
||||
find_program(CMAKE_LINKER ${TOOLCHAIN_PREFIX}-ld) |
||||
find_program(CMAKE_NM ${TOOLCHAIN_PREFIX}-gcc-nm) |
||||
find_program(CMAKE_OBJCOPY ${TOOLCHAIN_PREFIX}-objcopy) |
||||
find_program(CMAKE_OBJDUMP ${TOOLCHAIN_PREFIX}-objdump) |
||||
find_program(CMAKE_RANLIB ${TOOLCHAIN_PREFIX}-gcc-ranlib) |
||||
find_program(CMAKE_STRIP ${TOOLCHAIN_PREFIX}-strip) |
||||
|
||||
set(CMAKE_FIND_ROOT_PATH get_file_component(${CMAKE_C_COMPILER} PATH)) |
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) |
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
||||
|
||||
# os tools |
||||
foreach(tool grep make) |
||||
string(TOUPPER ${tool} TOOL) |
||||
find_program(${TOOL} ${tool}) |
||||
if(NOT ${TOOL}) |
||||
message(FATAL_ERROR "could not find ${tool}") |
||||
endif() |
||||
endforeach() |
Loading…
Reference in new issue