-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from zouxiaoh/iotg_ipu6
release for imx390 on MTL, kernel 6.6
- Loading branch information
Showing
37 changed files
with
9,150 additions
and
596 deletions.
There are no files selected for viewing
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
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,42 @@ | ||
# CheckFortifySource.cmake | ||
function(check_fortify_source output_variable) | ||
# Create a simple C++ source file to check _FORTIFY_SOURCE | ||
set(CHECK_SOURCE_CODE "#include <stdio.h> | ||
#ifndef _FORTIFY_SOURCE | ||
#define _FORTIFY_SOURCE 0 | ||
#endif | ||
int main(){printf(\"%d\", _FORTIFY_SOURCE);return 0;}") | ||
|
||
# Set the full path for the source file | ||
set(SOURCE_FILE_NAME "${CMAKE_BINARY_DIR}/check_fortify_source.c") | ||
file(WRITE "${SOURCE_FILE_NAME}" "${CHECK_SOURCE_CODE}") | ||
|
||
# Try to compile the source file | ||
try_compile(FORTIFY_SOURCE_COMPILED | ||
"${CMAKE_BINARY_DIR}/temp" "${SOURCE_FILE_NAME}" | ||
COMPILE_DEFINITIONS "-O2" | ||
COPY_FILE "${CMAKE_BINARY_DIR}/check_fortify_source.out" | ||
OUTPUT_VARIABLE COMPILE_OUTPUT | ||
) | ||
|
||
# Check if compilation was successful | ||
if(FORTIFY_SOURCE_COMPILED) | ||
# Run the compiled program to get the value of _FORTIFY_SOURCE | ||
execute_process(COMMAND "${CMAKE_BINARY_DIR}/check_fortify_source.out" | ||
RESULT_VARIABLE RUN_RESULT | ||
OUTPUT_VARIABLE FORTIFY_SOURCE_VALUE | ||
ERROR_QUIET | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
if(RUN_RESULT EQUAL 0) | ||
# Set the variable outside the function | ||
set(${output_variable} "${FORTIFY_SOURCE_VALUE}" PARENT_SCOPE) | ||
else() | ||
message(STATUS "Failed to run the compiled test program.") | ||
set(${output_variable} "" PARENT_SCOPE) | ||
endif() | ||
else() | ||
message(STATUS "Compilation failed; _FORTIFY_SOURCE is not defined.") | ||
message(STATUS "Compiler output: ${COMPILE_OUTPUT}") | ||
set(${output_variable} "" PARENT_SCOPE) | ||
endif() | ||
endfunction() |
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
Binary file renamed
BIN
+196 KB
config/linux/ipu6ep/IMX390_HDR_TGL.aiqb → config/linux/ipu6ep/IMX390_HDR_ADL.aiqb
Binary file not shown.
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
Oops, something went wrong.