Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Disabling Interrupts

Hi again,

Working through my problems at a good pace here, and I have now found myself a bit confused trying to incorporate the asm/irq.h from the com.microtronix.nios2linux.uClibc_1.4.0 library into my project. Inclusion of some headers from this lib don't pose an issue. However, when trying to access this one in particular I can't seem to alleviate the abundance of compilation errors.

I think I'm missing something in my Makefile, which follows:

# #  configurable options#   - set DEBUG = 1 to turn on debugging support# 
DEBUG = 1
PROJ_NAME = CFrst
INSTALL_DIR = 
PROGS := $(PROJ_NAME).exe
ECLIPSE_WORKSPACE := /cygdrive/c/Data/DCSU
KERNEL_PROJECT := kernel_2s60
BUILDDIR := $(ECLIPSE_WORKSPACE)/$(KERNEL_PROJECT)/build/include
CFLAGS += -O0 -g -I$(BUILDDIR)
# #  You should not need to modify anything beyond this point# # TOPDIR = ..
include Rules.mak
ifeq '$(DEBUG)' '1'
    PROGS += $(PROGS:.exe=.gdb)
endif
all: $(PROGS)
.PHONY: clean
clean:
    -rm -f *. *.elf *.gdb *.bin *.exe
.PHONY: install
install: all
ifeq "$(INSTALL_DIR)" ""
    $(error No installation directory specified)
endif
    mkdir -p $(INSTALL_DIR)/bin
    install -v $(filter %.exe, $(PROGS)) $(INSTALL_DIR)/bin

Any suggestions?

Thanks much,

Matt
No RepliesBe the first to reply