03-19-2018 05:46 AM
After changing the Makefile I got an error when I rebuild the app. The problem are these lines:
$(error "ERROR: PETALINUX environment variable not set. Change to the root of your PetaLinux install and source the settings.sh file")
So first I check if the environment variable is set with the command "echo $PETALINUX" and i got as feedback "/homer/user/PetaLinux". So I think is set.
Next I checked the Makefile if there was a mistake, but there isn't a tab or blank in front of the lines.
So it should be right.
After checking some forums I found no solution, so any idea?
03-20-2018 02:20 AM
Can you please provide the Makefile and application thats causing this issue?
03-20-2018 02:48 AM
It is a zynq system and I create a normal application with
"petalinux-create -t apps --name <APP_Name> --enable".
I get the error when I modificate the Makefile for the default application.
The Makefile looks like this:
$(error "Error: PETALINUX environment variable not set. Change to the root of your PetaLinux install, and source the settings.sh file")
APP = testapp
# Add any other object files to this list below
APP_OBJS = testapp.o \
all: build install
$(CC) $(LDFLAGS) -o $@ $(APP_OBJS) $(LDLIBS)
-rm -f $(APP) *.elf *.gdb *.o
.PHONY: install image
$(TARGETINST) -d $(APP) /bin/$(APP)
$(CC) -c $(CFLAGS) -o $@ $<
@echo "Quick reference for various supported build targets for $(INSTANCE)."
@echo " clean clean out build objects"
@echo " all build $(INSTANCE) and install to rootfs host copy"
@echo " build build subsystem"
@echo " install install built objects to rootfs host copy"