Skip to content

Commit

Permalink
Merge pull request #75 from arturum1/master
Browse files Browse the repository at this point in the history
Update IOBSOC submodule and `IS_FPGA` accordingly
  • Loading branch information
jjts authored Jan 25, 2024
2 parents 575fcfe + 5de949c commit 959c650
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions iob_soc_opencryptolinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ def _post_setup(cls):
)
# Set custom ethernet CONSOLE_CMD
contents.append(
"""
f"""
### Launch minicom if running Linux
ifeq ($(shell grep -o rootfs.cpio.gz ../iob_soc_opencryptolinux_mem.config),rootfs.cpio.gz)
ifeq ($(shell grep -o rootfs.cpio.gz ../{cls.name}_mem.config),rootfs.cpio.gz)
ifneq ($(wildcard minicom_linux_script.txt),)
SCRIPT_STR:=-S minicom_linux_script.txt
# Set TERM variable to linux-c-nc (needed to run in non-interactive mode https://stackoverflow.com/a/49077622)
TERM_STR:=TERM=linux-c-nc
endif
# Set a capture file and print its contents (to work around minicom clearing the screen)
LOG_STR:=-C minicom_out.log || cat minicom_out.log
endif
# Set HOME to current (fpga) directory (needed because minicom always reads the '.minirc.*' config file from HOME)
HOME_STR:=HOME=$$(pwd)
# Always exit with code 0 (since linux is terminated with CTRL-C)
Expand Down
6 changes: 3 additions & 3 deletions software/sw_build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ iob_soc_opencryptolinux_firmware.bin: ../../software/iob_soc_opencryptolinux_fir
Image rootfs.cpio.gz:
cp $(OS_DIR)/$@ .

ifeq ($(IS_FPGA),1)
fw_jump.bin iob_soc.dtb:
cp $(FPGA_TOOL)/$(BOARD)/$@ .
if [ "$(FPGA_TOOL)" != "" ]; then\
cp $(FPGA_TOOL)/$(BOARD)/$@ .;\
fi
# Set targets as PHONY to ensure that they are copied even if $(BOARD) is changed
.PHONY: fw_jump.bin iob_soc.dtb
endif

../../software/%.bin:
make -C ../../ fw-build
Expand Down
2 changes: 1 addition & 1 deletion submodules/OS
Submodule OS updated 1 files
+1 −1 Makefile

0 comments on commit 959c650

Please sign in to comment.