mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-24 09:51:54 +02:00
Strip trailing slash from the user-supplied LUFA_PATH directory, to prevent double slashes from appearing in the commands/output.
This commit is contained in:
@@ -40,7 +40,7 @@ ARCH ?= $(error Makefile ARCH value not set.)
|
||||
LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)
|
||||
|
||||
# Allow LUFA_ROOT_PATH to be overridden elsewhere to support legacy LUFA makefiles
|
||||
LUFA_ROOT_PATH ?= $(LUFA_PATH)
|
||||
LUFA_ROOT_PATH ?= $(patsubst %/,%,$(LUFA_PATH))
|
||||
|
||||
# Construct LUFA module source variables
|
||||
LUFA_SRC_USB = $(LUFA_ROOT_PATH)/Drivers/USB/Core/$(ARCH)/Device_$(ARCH).c \
|
||||
|
||||
Reference in New Issue
Block a user