Skip to content

Commit

Permalink
Merge pull request #1 from BMorgan1296/BMorgan1296-patch-1-1
Browse files Browse the repository at this point in the history
Fix for demo.py make routine and enjoy-digital#2169
  • Loading branch information
BMorgan1296 authored Jan 29, 2025
2 parents c213c42 + add318b commit cd5dbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/software/demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():

# Compile demo
build_path = args.build_path if os.path.isabs(args.build_path) else os.path.join("..", args.build_path)
os.system(f"export BUILD_DIR={build_path} && {'export WITH_CXX=1 &&' if args.with_cxx else ''} cd demo && make")
os.system(f"export BUILD_DIR={build_path} && {'export WITH_CXX=1 &&' if args.with_cxx else ''} cd demo && make clean && make") # Clean demo before make to handle case when switching to a different CPU.

# Copy demo.bin
os.system("cp demo/demo.bin ./")
Expand Down

0 comments on commit cd5dbd2

Please sign in to comment.