Altera_Forum
Honored Contributor
10 years agoCompile a makefile using arm-linux-gnueabihf compiler
I have downloaded SoC EDS tool which includes DS-5 as well. However, I have been trying to compile the simple "Hello world" but it does not compile and make it. I want to put this into my DE1 SoC FPGA Cyclone V board which run liunx. when I put the command $make it gives me this error:
make: *** no rule to make target 'arm-linux-gnueabihf-' , needed by 'my-first-hps' . Stop. this is the make file: # ------------------------------------------------------------------------------- TARGET = my_first_hps CROSS_COMPILE = arm-linux-gnueabihf- CFLAGS= -g -Wall -l ${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib/include LDFLAGS= -g -Wall CC=$(CROSS_COMPILE)gcc ARCH=arm build:$(TARGET) $(TARGET):main.o $(CC)$(LDFLAGS) $^ -o $@ %.o: %.c $(CC)$(CFLAGS) -c $< -o $@ .PHONY:clean clean: rm -f $(TARGET)*.a.*o*~# --------------------------------------------------------------------------------- thanks for any help