fix cmake
This commit is contained in:
parent
1098761fcb
commit
dc22624775
|
@ -37,12 +37,7 @@ ENDIF()
|
|||
|
||||
# Build target
|
||||
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
||||
COMMAND ${CMAKE_OBJCOPY} --output-format=binary ${CMAKE_BINARY_DIR}/${PROJECT_NAME}${SUFFIX} --remove-section .iodata ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.bin
|
||||
DEPENDS ${PROJECT_NAME}
|
||||
COMMENT "Generating .bin file ...")
|
||||
|
||||
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
||||
COMMAND ${CMAKE_OBJCOPY} --output-format=binary ${CMAKE_BINARY_DIR}/${PROJECT_NAME}${SUFFIX} --only-section .iodata ${CMAKE_BINARY_DIR}/${PROJECT_NAME}_iodata.bin
|
||||
COMMAND ${CMAKE_OBJCOPY} --output-format=binary ${CMAKE_BINARY_DIR}/${PROJECT_NAME}${SUFFIX} ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.bin
|
||||
DEPENDS ${PROJECT_NAME}
|
||||
COMMENT "Generating .bin file ...")
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@ SECTIONS
|
|||
PROVIDE( _heap_end = _ram_end - (1024*1024));
|
||||
|
||||
/* Data store in IO MEMORY */
|
||||
.iodata (0x40600000- (1024*1024)):
|
||||
.iodata (_io_end- (1024*1024)):
|
||||
{
|
||||
. = ALIGN(64);
|
||||
PROVIDE( _iodata = ABSOLUTE(.) );
|
||||
|
|
|
@ -1378,7 +1378,6 @@ int kpu_load_kmodel(kpu_model_context_t *ctx, const uint8_t *buffer)
|
|||
}
|
||||
uintptr_t base_addr = (uintptr_t)buffer_iomem;
|
||||
const kpu_kmodel_header_t *header = (const kpu_kmodel_header_t *)buffer_iomem;
|
||||
printf("header = %p %x %x\n", header, header->version, header->arch);
|
||||
if(header->version == 3 && header->arch == 0)
|
||||
{
|
||||
ctx->is_nncase = 0;
|
||||
|
|
Loading…
Reference in New Issue