Commit c3dfc587 authored by Dean Camera's avatar Dean Camera
Browse files

Fix invalid Event name rule in demo/project makefiles.

parent e53c120a
...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
showliboptions: showliboptions:
@echo @echo
@echo ---- Compile Time Library Options ---- @echo ---- Compile Time Library Options ----
......
...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
showliboptions: showliboptions:
@echo @echo
@echo ---- Compile Time Library Options ---- @echo ---- Compile Time Library Options ----
......
...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
showliboptions: showliboptions:
@echo @echo
@echo ---- Compile Time Library Options ---- @echo ---- Compile Time Library Options ----
......
...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,11 +504,11 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
showliboptions: showliboptions:
@echo @echo
@echo ---- Compile Time Library Options ---- @echo ---- Compile Time Library Options ----
......
...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -506,7 +506,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -506,7 +506,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -517,7 +517,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -517,7 +517,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -505,7 +505,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -505,7 +505,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -509,7 +509,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -509,7 +509,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -503,7 +503,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -503,7 +503,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -505,7 +505,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -505,7 +505,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -503,7 +503,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -503,7 +503,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -503,7 +503,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -503,7 +503,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -505,7 +505,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -505,7 +505,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -504,7 +504,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
...@@ -502,7 +502,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst: ...@@ -502,7 +502,7 @@ $(LUFA_PATH)/LUFA/LUFA_Events.lst:
checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst checkinvalidevents: $(LUFA_PATH)/LUFA/LUFA_Events.lst
@echo @echo
@echo Checking for invalid events... @echo Checking for invalid events...
@$(shell) avr-nm $(TARGET).elf | sed -n -e 's/^.*EVENT_/EVENT_/p' | \ @$(shell) avr-nm $(OBJ) | sed -n -e 's/^.*EVENT_/EVENT_/p' | \
grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true grep -F -v --file=$(LUFA_PATH)/LUFA/LUFA_Events.lst > InvalidEvents.tmp || true
@sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp @sed -n -e 's/^/ WARNING - INVALID EVENT NAME: /p' InvalidEvents.tmp
@if test -s InvalidEvents.tmp; then exit 1; fi @if test -s InvalidEvents.tmp; then exit 1; fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment