mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
Fixed issues noted by voon, start of python script for bin to obj.
This commit is contained in:
21
cmake/bin_to_object.py
Executable file
21
cmake/bin_to_object.py
Executable 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 :
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user