linux fixes
This commit is contained in:
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
||||
"cmake.configureOnOpen": true,
|
||||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
|
||||
|
||||
"cmake.cmakePath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin\\cmake.exe",
|
||||
//"cmake.cmakePath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin\\cmake.exe",
|
||||
"cmake.configureSettings": {
|
||||
"BUILD_SIMULATOR": "ON"
|
||||
}
|
||||
|
||||
+13
-1
@@ -64,7 +64,7 @@ else()
|
||||
if(WIN32)
|
||||
set(FREERTOS_PORT "MSVC_MINGW" CACHE STRING "")
|
||||
else()
|
||||
set(FREERTOS_PORT "GCC/POSIX" CACHE STRING "")
|
||||
set(FREERTOS_PORT "GCC_POSIX" CACHE STRING "")
|
||||
endif()
|
||||
# Select FreeRTOS heap implementation (provides pvPortMalloc/vPortFree)
|
||||
set(FREERTOS_HEAP 4 CACHE STRING "FreeRTOS Heap Implementation")
|
||||
@@ -102,6 +102,18 @@ else()
|
||||
|
||||
FetchContent_MakeAvailable(FreeRTOS_Kernel wamr_runtime)
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Force -fPIC for FreeRTOS targets (required for linking into .so)
|
||||
# --------------------------------------------------------------------------
|
||||
if(NOT WIN32)
|
||||
if(TARGET freertos_kernel)
|
||||
set_target_properties(freertos_kernel PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
if(TARGET freertos_kernel_port)
|
||||
set_target_properties(freertos_kernel_port PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Nova64 Core Target
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
@@ -28,7 +28,7 @@ typedef struct {
|
||||
} nova64_framebuffer_t;
|
||||
|
||||
// Global instance access
|
||||
NOVA64_API nova64_framebuffer_t nova64_framebuffer;
|
||||
NOVA64_API extern nova64_framebuffer_t nova64_framebuffer;
|
||||
|
||||
// Function prototypes
|
||||
bool nova64_framebuffer_init(void);
|
||||
|
||||
Reference in New Issue
Block a user