From a457a452393308047e9b958906048049ac798081 Mon Sep 17 00:00:00 2001 From: px4dev Date: Wed, 20 Mar 2013 23:55:30 -0700 Subject: Pass the module name in to the module makefile. Refer to the module command name with MODULE_COMMAND to avoid confusion with the module's actual name. --- makefiles/firmware.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'makefiles/firmware.mk') diff --git a/makefiles/firmware.mk b/makefiles/firmware.mk index 9128da8c5..dad57d531 100644 --- a/makefiles/firmware.mk +++ b/makefiles/firmware.mk @@ -218,6 +218,7 @@ $(MODULE_OBJS): $(GLOBAL_DEPS) $(NUTTX_CONFIG_HEADER) MODULE_WORK_DIR=$(dir $@) \ MODULE_OBJ=$@ \ MODULE_MK=$(mkfile) \ + MODULE_NAME=$(lastword $(subst /, ,$(@D))) \ module # make a list of phony clean targets for modules -- cgit v1.2.3