-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imx93-var-som: Add in missing .sh/.cmake files for recent examples
The examples added in afb270a are missing the proper .sh and .cmake files due to a previous error in the .gitignore file. Add these files back in. Signed-off-by: Ken Sloat <[email protected]>
- Loading branch information
Ken Sloat
committed
Aug 19, 2023
1 parent
91e61cf
commit 07ec9c0
Showing
120 changed files
with
4,470 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
boards/som_mx93/driver_examples/canfd/interrupt_transfer/armgcc/build_all.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=debug . | ||
make -j 32 | ||
|
||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=release . | ||
make -j 32 | ||
|
7 changes: 7 additions & 0 deletions
7
boards/som_mx93/driver_examples/canfd/interrupt_transfer/armgcc/build_debug.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=debug . | ||
make -j 2>&1 | tee build_log.txt |
7 changes: 7 additions & 0 deletions
7
boards/som_mx93/driver_examples/canfd/interrupt_transfer/armgcc/build_release.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=release . | ||
make -j 2>&1 | tee build_log.txt |
3 changes: 3 additions & 0 deletions
3
boards/som_mx93/driver_examples/canfd/interrupt_transfer/armgcc/clean.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
rm -rf debug release CMakeFiles | ||
rm -rf Makefile cmake_install.cmake CMakeCache.txt |
2 changes: 2 additions & 0 deletions
2
boards/som_mx93/driver_examples/canfd/interrupt_transfer/armgcc/config.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# config to select component, the format is CONFIG_USE_${component} | ||
set(CONFIG_USE_driver_lpuart_MIMX9352 true) |
191 changes: 191 additions & 0 deletions
191
boards/som_mx93/driver_examples/canfd/interrupt_transfer/armgcc/flags.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
IF(NOT DEFINED FPU) | ||
SET(FPU "-mfloat-abi=hard -mfpu=fpv5-sp-d16") | ||
ENDIF() | ||
|
||
IF(NOT DEFINED SPECS) | ||
SET(SPECS "--specs=nano.specs --specs=nosys.specs") | ||
ENDIF() | ||
|
||
IF(NOT DEFINED DEBUG_CONSOLE_CONFIG) | ||
SET(DEBUG_CONSOLE_CONFIG "-DSDK_DEBUGCONSOLE=1") | ||
ENDIF() | ||
|
||
SET(CMAKE_ASM_FLAGS_DEBUG " \ | ||
${CMAKE_ASM_FLAGS_DEBUG} \ | ||
-DDEBUG \ | ||
-D__STARTUP_CLEAR_BSS \ | ||
-D__STARTUP_INITIALIZE_NONCACHEDATA \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-mthumb \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mapcs \ | ||
-std=gnu99 \ | ||
${FPU} \ | ||
") | ||
SET(CMAKE_ASM_FLAGS_RELEASE " \ | ||
${CMAKE_ASM_FLAGS_RELEASE} \ | ||
-DNDEBUG \ | ||
-D__STARTUP_CLEAR_BSS \ | ||
-D__STARTUP_INITIALIZE_NONCACHEDATA \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-mthumb \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mapcs \ | ||
-std=gnu99 \ | ||
${FPU} \ | ||
") | ||
SET(CMAKE_C_FLAGS_DEBUG " \ | ||
${CMAKE_C_FLAGS_DEBUG} \ | ||
-DDEBUG \ | ||
-DCPU_MIMX9352DVUXM_cm33 \ | ||
-DSDK_I2C_BASED_COMPONENT_USED=1 \ | ||
-DBOARD_USE_ADP5585=1 \ | ||
-DFLEXCAN_WAIT_TIMEOUT=1000 \ | ||
-DMCUXPRESSO_SDK \ | ||
-g \ | ||
-O0 \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-mthumb \ | ||
-MMD \ | ||
-MP \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mapcs \ | ||
-std=gnu99 \ | ||
${FPU} \ | ||
${DEBUG_CONSOLE_CONFIG} \ | ||
") | ||
SET(CMAKE_C_FLAGS_RELEASE " \ | ||
${CMAKE_C_FLAGS_RELEASE} \ | ||
-DNDEBUG \ | ||
-DCPU_MIMX9352DVUXM_cm33 \ | ||
-DSDK_I2C_BASED_COMPONENT_USED=1 \ | ||
-DBOARD_USE_ADP5585=1 \ | ||
-DFLEXCAN_WAIT_TIMEOUT=1000 \ | ||
-DMCUXPRESSO_SDK \ | ||
-Os \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-mthumb \ | ||
-MMD \ | ||
-MP \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mapcs \ | ||
-std=gnu99 \ | ||
${FPU} \ | ||
${DEBUG_CONSOLE_CONFIG} \ | ||
") | ||
SET(CMAKE_CXX_FLAGS_DEBUG " \ | ||
${CMAKE_CXX_FLAGS_DEBUG} \ | ||
-DDEBUG \ | ||
-DMCUXPRESSO_SDK \ | ||
-g \ | ||
-O0 \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-mthumb \ | ||
-MMD \ | ||
-MP \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mapcs \ | ||
-fno-rtti \ | ||
-fno-exceptions \ | ||
${FPU} \ | ||
${DEBUG_CONSOLE_CONFIG} \ | ||
") | ||
SET(CMAKE_CXX_FLAGS_RELEASE " \ | ||
${CMAKE_CXX_FLAGS_RELEASE} \ | ||
-DNDEBUG \ | ||
-DMCUXPRESSO_SDK \ | ||
-Os \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-mthumb \ | ||
-MMD \ | ||
-MP \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mapcs \ | ||
-fno-rtti \ | ||
-fno-exceptions \ | ||
${FPU} \ | ||
${DEBUG_CONSOLE_CONFIG} \ | ||
") | ||
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG " \ | ||
${CMAKE_EXE_LINKER_FLAGS_DEBUG} \ | ||
-g \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mthumb \ | ||
-mapcs \ | ||
-Xlinker \ | ||
--gc-sections \ | ||
-Xlinker \ | ||
-static \ | ||
-Xlinker \ | ||
-z \ | ||
-Xlinker \ | ||
muldefs \ | ||
-Xlinker \ | ||
-Map=output.map \ | ||
-Wl,--print-memory-usage \ | ||
${FPU} \ | ||
${SPECS} \ | ||
-T${ProjDirPath}/MIMX9352_cm33_ram.ld -static \ | ||
") | ||
SET(CMAKE_EXE_LINKER_FLAGS_RELEASE " \ | ||
${CMAKE_EXE_LINKER_FLAGS_RELEASE} \ | ||
-mcpu=cortex-m33 \ | ||
-Wall \ | ||
-fno-common \ | ||
-ffunction-sections \ | ||
-fdata-sections \ | ||
-ffreestanding \ | ||
-fno-builtin \ | ||
-mthumb \ | ||
-mapcs \ | ||
-Xlinker \ | ||
--gc-sections \ | ||
-Xlinker \ | ||
-static \ | ||
-Xlinker \ | ||
-z \ | ||
-Xlinker \ | ||
muldefs \ | ||
-Xlinker \ | ||
-Map=output.map \ | ||
-Wl,--print-memory-usage \ | ||
${FPU} \ | ||
${SPECS} \ | ||
-T${ProjDirPath}/MIMX9352_cm33_ram.ld -static \ | ||
") |
15 changes: 15 additions & 0 deletions
15
boards/som_mx93/driver_examples/canfd/ping_pong_buffer_transfer/armgcc/build_all.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=debug . | ||
make -j 32 | ||
|
||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=release . | ||
make -j 32 | ||
|
7 changes: 7 additions & 0 deletions
7
boards/som_mx93/driver_examples/canfd/ping_pong_buffer_transfer/armgcc/build_debug.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=debug . | ||
make -j 2>&1 | tee build_log.txt |
7 changes: 7 additions & 0 deletions
7
boards/som_mx93/driver_examples/canfd/ping_pong_buffer_transfer/armgcc/build_release.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
if [ -d "CMakeFiles" ];then rm -rf CMakeFiles; fi | ||
if [ -f "Makefile" ];then rm -f Makefile; fi | ||
if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi | ||
if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi | ||
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=release . | ||
make -j 2>&1 | tee build_log.txt |
3 changes: 3 additions & 0 deletions
3
boards/som_mx93/driver_examples/canfd/ping_pong_buffer_transfer/armgcc/clean.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
rm -rf debug release CMakeFiles | ||
rm -rf Makefile cmake_install.cmake CMakeCache.txt |
2 changes: 2 additions & 0 deletions
2
boards/som_mx93/driver_examples/canfd/ping_pong_buffer_transfer/armgcc/config.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# config to select component, the format is CONFIG_USE_${component} | ||
set(CONFIG_USE_driver_lpuart_MIMX9352 true) |
Oops, something went wrong.