Skip to content

Instantly share code, notes, and snippets.

@Samdal
Samdal / nios2_make_build.sh
Last active January 17, 2024 23:31
generate nios2 build files
#!/usr/bin/env sh
# ------------------
# NOTE:
# you need to have certain binary files in your path
# see below, most of them are in your quartus/bin and nios2eds/bin and nios2eds/sdk2/bin
# for the compiler itself, it resides in nios2eds/bin/gnu/H-x86_64-pc-linux-gnu/bin/
# for me my path currently contains
# +- /opt/intelFPGA/21.1/nios2eds/bin
@Samdal
Samdal / Makefile
Last active August 16, 2023 06:09
General purpose Makefile for C projects
# General purpose Makefile for C projects
# options
CC = gcc
DEBUGGER = gdb
LINKER = $(CC)
CFLAGS = -std=c99 -O0 -pthread
LFLAGS = -ldl -lm -lpthread
# directories