rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # Makefile for MT66xx/MT33xx gps driver |
| 2 | |
| 3 | ############################################################## |
| 4 | # Common settings |
| 5 | ############################################################## |
| 6 | |
| 7 | |
| 8 | ############################################################## |
| 9 | # Platform specific |
| 10 | ############################################################## |
| 11 | |
| 12 | |
| 13 | ############################################################## |
| 14 | # Compile settings |
| 15 | ############################################################## |
| 16 | |
| 17 | all: driver |
| 18 | |
| 19 | driver: |
| 20 | +cd $(DRIVER_DIR) && make -C $(LINUX_SRC) M=$(DRIVER_DIR) MODULE_NAME=$(MODULE_NAME) PLATFORM_FLAGS="$(PLATFORM_FLAGS)" PLATFORM=${PLATFORM} modules |
| 21 | |
| 22 | |
| 23 | clean: driver_clean |
| 24 | |
| 25 | |
| 26 | driver_clean: |
| 27 | cd $(DRIVER_DIR) && make -C $(LINUX_SRC) M=$(DRIVER_DIR) MODULE_NAME=$(MODULE_NAME) clean |
| 28 | if [ -e $(DRIVER_DIR)/$(MODULE_NAME).ko ]; then rm $(DRIVER_DIR)/$(MODULE_NAME).ko; fi; |
| 29 | |
| 30 | |
| 31 | .PHONY: all clean driver driver_clean |
| 32 | |