forked from Archive/PX4-Autopilot
Fixed issues noted by voon, start of python script for bin to obj.
This commit is contained in:
parent
bbf043e327
commit
9d18337647
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env python
|
||||
"""
|
||||
This converts a binary imagge to an object file
|
||||
"""
|
||||
from __future__ import print_function
|
||||
import subprocess
|
||||
import argparse
|
||||
import os
|
||||
|
||||
#pylint: disable=invalid-name
|
||||
parser = argparse.ArgumentParser(description='Convert bin to obj.')
|
||||
parser.add_argument('--c-flags', required=True)
|
||||
parser.add_argument('--c-compiler', required=True)
|
||||
parser.add_argument('--nm', required=True)
|
||||
args = parser.parse_args()
|
||||
|
||||
#TODO write function
|
||||
|
||||
exit(0)
|
||||
|
||||
# vim: set et ft=python fenc= ff=unix sts=4 sw=4 ts=4 :
|
|
@ -389,7 +389,7 @@ endfunction()
|
|||
#
|
||||
function(px4_add_upload)
|
||||
px4_parse_function_args(
|
||||
NAME px4_generate_messages
|
||||
NAME px4_add_upload
|
||||
ONE_VALUE OS BOARD OUT BUNDLE
|
||||
REQUIRED OS BOARD OUT BUNDLE
|
||||
ARGN ${ARGN})
|
||||
|
|
|
@ -143,7 +143,7 @@ function(px4_nuttx_generate_builtin_commands)
|
|||
math(EXPR command_count "${command_count}+1")
|
||||
endif()
|
||||
endforeach()
|
||||
configure_file(${CMAKE_SOURCE_DIR}/cmake/builtin_commands.c.cmake
|
||||
configure_file(${CMAKE_SOURCE_DIR}/cmake/builtin_commands.c.in
|
||||
${OUT})
|
||||
endfunction()
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ function(px4_qurt_generate_builtin_commands)
|
|||
math(EXPR command_count "${command_count}+1")
|
||||
endif()
|
||||
endforeach()
|
||||
configure_file(${CMAKE_SOURCE_DIR}/cmake/builtin_commands.c.cmake
|
||||
configure_file(${CMAKE_SOURCE_DIR}/cmake/builtin_commands.c.in
|
||||
${OUT})
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in New Issue