lite:micro:riscv32_mcu: Fix hidden symbol `__dso_handle' isn't defined.
For arduino sketch in riscv_mcu examples, this patch fix by declare the global variable `void* __dso_handle;`.
This commit is contained in:
parent
84b639d858
commit
823317cbce
16
tensorflow/lite/micro/arduino/abi.cc
Normal file
16
tensorflow/lite/micro/arduino/abi.cc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
void* __dso_handle;
|
@ -11,7 +11,8 @@ ifeq ($(TARGET), riscv32_mcu)
|
|||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
||||||
|
|
||||||
HELLO_WORLD_TEST_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
HELLO_WORLD_TEST_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
||||||
HELLO_WORLD_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
HELLO_WORLD_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
|
||||||
LIBWRAP_SYMS := malloc free \
|
LIBWRAP_SYMS := malloc free \
|
||||||
open lseek read write fstat stat close link unlink \
|
open lseek read write fstat stat close link unlink \
|
||||||
|
@ -10,8 +10,10 @@ ifeq ($(TARGET), riscv32_mcu)
|
|||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/entry.S \
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/entry.S \
|
||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
||||||
|
|
||||||
magic_wand_TEST_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
magic_wand_TEST_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
magic_wand_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
magic_wand_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
|
||||||
LIBWRAP_SYMS := malloc free \
|
LIBWRAP_SYMS := malloc free \
|
||||||
open lseek read write fstat stat close link unlink \
|
open lseek read write fstat stat close link unlink \
|
||||||
|
@ -10,8 +10,10 @@ ifeq ($(TARGET), riscv32_mcu)
|
|||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/entry.S \
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/entry.S \
|
||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
||||||
|
|
||||||
MICRO_SPEECH_TEST_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
MICRO_SPEECH_TEST_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
MICRO_SPEECH_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
MICRO_SPEECH_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
|
||||||
LIBWRAP_SYMS := malloc free \
|
LIBWRAP_SYMS := malloc free \
|
||||||
open lseek read write fstat stat close link unlink \
|
open lseek read write fstat stat close link unlink \
|
||||||
|
@ -10,8 +10,10 @@ ifeq ($(TARGET), riscv32_mcu)
|
|||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/entry.S \
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/entry.S \
|
||||||
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
$(MAKEFILE_DIR)/downloads/sifive_fe310_lib/bsp/env/freedom-e300-hifive1/init.c
|
||||||
|
|
||||||
person_detection_TEST_HDRS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
person_detection_TEST_HDRS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
person_detection_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS)
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
person_detection_SRCS += $(MICRO_FE310_LIBWRAP_SRCS) $(MICRO_FE310_BSP_ENV_SRCS) \
|
||||||
|
tensorflow/lite/micro/arduino/abi.cc
|
||||||
|
|
||||||
LIBWRAP_SYMS := malloc free \
|
LIBWRAP_SYMS := malloc free \
|
||||||
open lseek read write fstat stat close link unlink \
|
open lseek read write fstat stat close link unlink \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user