Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into update-cve2
Browse files Browse the repository at this point in the history
  • Loading branch information
LuigiGiuffrida98 committed Mar 19, 2024
2 parents 818823d + decfda0 commit d8a5406
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion hw/fpga/constraints/pynq-z2/constraints.xdc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
create_clock -add -name sys_clk_pin -period 10.00 -waveform {0 5} [get_ports {clk_i}];
create_clock -add -name sys_clk_pin -period 8.00 -waveform {0 5} [get_ports {clk_i}];
24 changes: 12 additions & 12 deletions sw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ FILE(GLOB_RECURSE new_list FOLLOW_SYMLINKS ${SOURCE_PATH}*.h)
SET(dir_list_str "")
FOREACH(file_path ${new_list})
SET(add 0) # This variable is set to 1 if the file_pth needs to be added to the list
if(${file_path} MATCHES "${ROOT_PROJECT}device/")
if(${file_path} MATCHES "${ROOT_PROJECT}device/target/") # Add it if its not in target, or if its in target/${TARGET}
if(${file_path} MATCHES "${ROOT_PROJECT}device/target/${TARGET}")
if(${file_path} MATCHES "${SOURCE_PATH}device/")
if(${file_path} MATCHES "${SOURCE_PATH}device/target/") # Add it if its not in target, or if its in target/${TARGET}
if(${file_path} MATCHES "${SOURCE_PATH}device/target/${TARGET}")
SET(add 1)
endif()
else()
SET(add 1)
endif()
elseif(${file_path} MATCHES ${PROJECT})
elseif(${file_path} MATCHES ${SOURCE_PATH}applications/${PROJECT}/)
SET(add 1)
elseif( ( ${file_path} MATCHES "${ROOT_PROJECT}freertos/" ) AND ( ${PROJECT} MATCHES "freertos" ) )
elseif( ( ${file_path} MATCHES "${SOURCE_PATH}freertos/" ) AND ( ${PROJECT} MATCHES "freertos" ) )
SET(add 1)
elseif( ${file_path} MATCHES "${ROOT_PROJECT}external/" )
elseif( ${file_path} MATCHES "${SOURCE_PATH}external/" )
SET(add 1)
endif()

Expand Down Expand Up @@ -124,14 +124,14 @@ SET( c_dir_list "" )
SET( app_found 0 )
FOREACH(file_path IN LISTS new_list)
SET(add 0) # This variable is set to 1 if the file_pth needs to be added to the list
if(${file_path} MATCHES "${ROOT_PROJECT}device/")
if(${file_path} MATCHES "${SOURCE_PATH}device/")
SET(add 1)
elseif( ${file_path} MATCHES "${ROOT_PROJECT}external/" )
elseif( ${file_path} MATCHES "${SOURCE_PATH}external/" )
SET(add 1)
elseif( ( ${file_path} MATCHES "/${PROJECT}/" ) AND ( NOT ${file_path} MATCHES ${MAINFILE} ) )
SET(add 1)
elseif( ( ${file_path} MATCHES "/${PROJECT}/" ) AND ( ${file_path} MATCHES ${MAINFILE} ) )
elseif( ${file_path} MATCHES "${SOURCE_PATH}applications/${PROJECT}/.*${MAINFILE}\." ) # look for main.*
SET(app_found 1)
elseif( ${file_path} MATCHES "${SOURCE_PATH}applications/${PROJECT}/" ) # other sources
SET(add 1)
endif()

if( add EQUAL 1 ) # If the file path mathced one of the criterion, add it to the list
Expand All @@ -155,7 +155,7 @@ if( app_found EQUAL 0 )
SET(add 0) # This variable is set to 1 if the file_pth needs to be added to the list
if(${file_path} MATCHES "${ROOT_PROJECT}device/")
SET(add 1)
elseif( ( ${file_path} MATCHES "/${PROJECT}/" ) AND ( NOT ${file_path} MATCHES ${MAINFILE} ) )
elseif( ( ${file_path} MATCHES "${ROOT_PROJECT}/applications/${PROJECT}/" ) AND ( NOT ${file_path} MATCHES "${ROOT_PROJECT}applications/${PROJECT}/.*${MAINFILE}\." ) )
SET(add 1)
endif()

Expand Down

0 comments on commit d8a5406

Please sign in to comment.