Fixed issues noted by voon, start of python script for bin to obj.

This commit is contained in:
James Goppert 2015-09-08 10:15:22 -04:00
parent bbf043e327
commit 9d18337647
5 changed files with 24 additions and 3 deletions

21
cmake/bin_to_object.py Executable file
View File

@ -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 :

View File

@ -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})

View File

@ -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()

View File

@ -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()