Skip to content

Commit

Permalink
integration/builder: avoid symlinks
Browse files Browse the repository at this point in the history
use make -C dst_dir -f src_dir/Makefile (thanks Robert)

Symlinks were not convenient on Windows since required scripts to be run as administrator
enjoy-digital committed Mar 4, 2016
1 parent 3ac69f3 commit 74a5525
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions misoc/integration/builder.py
Original file line number Diff line number Diff line change
@@ -101,15 +101,9 @@ def _generate_software(self):
for name, src_dir in self.software_packages:
dst_dir = os.path.join(self.output_dir, "software", name)
os.makedirs(dst_dir, exist_ok=True)
src = os.path.join(src_dir, "Makefile")
dst = os.path.join(dst_dir, "Makefile")
try:
os.remove(dst)
except FileNotFoundError:
pass
os.symlink(src, dst)
makefile = os.path.join(src_dir, "Makefile")
if self.compile_software:
subprocess.check_call(["make", "-C", dst_dir])
subprocess.check_call(["make", "-C", dst_dir, "-f", makefile])

def _initialize_rom(self):
bios_file = os.path.join(self.output_dir, "software", "bios",

0 comments on commit 74a5525

Please sign in to comment.