14 changed files with 0 additions and 211 deletions
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
include(configs/nuttx_px4fmu-common_apm) |
||||
|
||||
list(APPEND config_module_list |
||||
drivers/boards/aerofc-v1 |
||||
drivers/aerofc_adc |
||||
lib/rc |
||||
|
||||
# replace stm32 tone_alarm with a dummy one |
||||
modules/dummy |
||||
) |
||||
|
||||
list(REMOVE_ITEM config_module_list |
||||
drivers/stm32/adc |
||||
drivers/stm32/tone_alarm |
||||
systemcmds/bl_update |
||||
systemcmds/mtd |
||||
systemcmds/usb_connected |
||||
systemcmds/otp |
||||
) |
||||
|
||||
list(REMOVE_ITEM config_extra_builtin_cmds |
||||
sercon |
||||
) |
@ -1,61 +0,0 @@
@@ -1,61 +0,0 @@
|
||||
include(nuttx/px4_impl_nuttx) |
||||
|
||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake) |
||||
|
||||
set(config_module_list |
||||
platforms/common |
||||
platforms/nuttx |
||||
platforms/nuttx/px4_layer |
||||
modules/param |
||||
# |
||||
# Board support modules |
||||
# |
||||
drivers/device |
||||
drivers/stm32 |
||||
drivers/stm32/adc |
||||
drivers/stm32/tone_alarm |
||||
drivers/led |
||||
drivers/px4fmu |
||||
|
||||
# |
||||
# System commands |
||||
# |
||||
systemcmds/bl_update |
||||
systemcmds/mixer |
||||
systemcmds/perf |
||||
systemcmds/reboot |
||||
systemcmds/top |
||||
systemcmds/nshterm |
||||
systemcmds/mtd |
||||
systemcmds/ver |
||||
systemcmds/usb_connected |
||||
systemcmds/otp |
||||
|
||||
# |
||||
# Library modules |
||||
# |
||||
modules/systemlib |
||||
modules/systemlib/mixer |
||||
modules/uORB |
||||
) |
||||
|
||||
set(config_extra_builtin_cmds |
||||
sercon |
||||
ArduPilot |
||||
) |
||||
|
||||
set(config_extra_libs |
||||
${APM_PROGRAM_LIB} |
||||
) |
||||
|
||||
add_custom_target(sercon) |
||||
set_target_properties(sercon PROPERTIES |
||||
MAIN "sercon" |
||||
STACK "2048" |
||||
) |
||||
|
||||
add_custom_target(ArduPilot) |
||||
set_target_properties(ArduPilot PROPERTIES |
||||
MAIN "ArduPilot" |
||||
STACK "4096" |
||||
) |
@ -1,11 +0,0 @@
@@ -1,11 +0,0 @@
|
||||
include(configs/nuttx_px4fmu-common_apm) |
||||
|
||||
list(APPEND config_module_list |
||||
drivers/boards/px4fmu-v1 |
||||
drivers/px4io |
||||
) |
||||
|
||||
set(config_io_board |
||||
px4io-v1 |
||||
) |
||||
|
@ -1,11 +0,0 @@
@@ -1,11 +0,0 @@
|
||||
include(configs/nuttx_px4fmu-common_apm) |
||||
|
||||
list(APPEND config_module_list |
||||
drivers/boards/px4fmu-v2 |
||||
drivers/pwm_input |
||||
drivers/px4io |
||||
) |
||||
|
||||
set(config_io_board |
||||
px4io-v2 |
||||
) |
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
include(configs/nuttx_px4fmu-common_apm) |
||||
|
||||
list(APPEND config_module_list |
||||
drivers/boards/px4fmu-v2 |
||||
drivers/pwm_input |
||||
drivers/px4io |
||||
drivers/oreoled |
||||
) |
||||
|
||||
set(config_io_board |
||||
px4io-v2 |
||||
) |
@ -1,7 +0,0 @@
@@ -1,7 +0,0 @@
|
||||
include(configs/nuttx_px4fmu-common_apm) |
||||
|
||||
list(APPEND config_module_list |
||||
drivers/boards/px4fmu-v4 |
||||
drivers/pwm_input |
||||
lib/rc |
||||
) |
@ -1,11 +0,0 @@
@@ -1,11 +0,0 @@
|
||||
include(configs/nuttx_px4fmu-common_apm) |
||||
|
||||
list(APPEND config_module_list |
||||
drivers/boards/px4fmu-v4pro |
||||
drivers/pwm_input |
||||
drivers/px4io |
||||
) |
||||
|
||||
set(config_io_board |
||||
px4io-v2 |
||||
) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,57 +0,0 @@
@@ -1,57 +0,0 @@
|
||||
#!/usr/bin/env python |
||||
''' |
||||
Add git hashes to .px4 file for PX4/Pixhawk build |
||||
Written by Jon Challinger January 2015 |
||||
''' |
||||
|
||||
import json |
||||
import sys |
||||
import os |
||||
import posixpath |
||||
import subprocess |
||||
import argparse |
||||
|
||||
parser = argparse.ArgumentParser() |
||||
|
||||
parser.add_argument('input_file') |
||||
parser.add_argument('output_file') |
||||
|
||||
parser.add_argument('--ardupilot') |
||||
parser.add_argument('--px4') |
||||
parser.add_argument('--nuttx') |
||||
parser.add_argument('--uavcan') |
||||
|
||||
args = parser.parse_args() |
||||
|
||||
f = open(args.input_file,'r') |
||||
fw_json = json.load(f) |
||||
f.close() |
||||
|
||||
if args.ardupilot is not None: |
||||
try: |
||||
fw_json["ardupilot_git_hash"] = subprocess.check_output(["git", "--git-dir", posixpath.join(args.ardupilot,".git"), "rev-parse", "HEAD"]).strip().decode('ascii') |
||||
except: |
||||
print("Failed to get apm hash") |
||||
|
||||
if args.px4 is not None: |
||||
try: |
||||
fw_json["px4_git_hash"] = subprocess.check_output(["git", "--git-dir", posixpath.join(args.px4,".git"), "rev-parse", "HEAD"]).strip().decode('ascii') |
||||
except: |
||||
print("Failed to get px4 hash") |
||||
|
||||
if args.nuttx is not None: |
||||
try: |
||||
fw_json["nuttx_git_hash"] = subprocess.check_output(["git", "--git-dir", posixpath.join(args.nuttx,".git"), "rev-parse", "HEAD"]).strip().decode('ascii') |
||||
except: |
||||
print("Failed to get nuttx hash") |
||||
|
||||
if args.uavcan is not None: |
||||
try: |
||||
fw_json["uavcan_git_hash"] = subprocess.check_output(["git", "--git-dir", posixpath.join(args.uavcan,".git"), "rev-parse", "HEAD"]).strip().decode('ascii') |
||||
except: |
||||
print("Failed to get uavcan hash") |
||||
|
||||
f=open(args.output_file,'w') |
||||
json.dump(fw_json,f,indent=4) |
||||
f.truncate() |
||||
f.close() |
Loading…
Reference in new issue