diff options
| author | hathach <[email protected]> | 2019-05-14 13:59:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-14 13:59:45 +0700 |
| commit | 8094bdce23a72264e54641ec4c34189935829251 (patch) | |
| tree | 27f3cb6cbb233743280e231339dc9460e16f439c /examples | |
| parent | 62f0eb16d6549db084c5e8661fa2b76e7bc1a9a4 (diff) | |
makefile clean up
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_hid/Makefile | 3 | ||||
| -rw-r--r-- | examples/device/cdc_msc_hid_freertos/Makefile | 3 | ||||
| -rw-r--r-- | examples/device/hid_generic_inout/Makefile | 3 | ||||
| -rw-r--r-- | examples/device/msc_dual_lun/Makefile | 3 | ||||
| -rw-r--r-- | examples/make.mk | 3 |
5 files changed, 3 insertions, 12 deletions
diff --git a/examples/device/cdc_msc_hid/Makefile b/examples/device/cdc_msc_hid/Makefile index 4ff3371dc..69b633fea 100644 --- a/examples/device/cdc_msc_hid/Makefile +++ b/examples/device/cdc_msc_hid/Makefile @@ -9,7 +9,4 @@ INC += \ EXAMPLE_SOURCE += $(wildcard src/*.c) SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) -# Board source -SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c - include ../../rules.mk diff --git a/examples/device/cdc_msc_hid_freertos/Makefile b/examples/device/cdc_msc_hid_freertos/Makefile index 3a39f4601..7401f355a 100644 --- a/examples/device/cdc_msc_hid_freertos/Makefile +++ b/examples/device/cdc_msc_hid_freertos/Makefile @@ -11,9 +11,6 @@ INC += \ EXAMPLE_SOURCE += $(wildcard src/*.c) SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) -# Board source -SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c - # FreeRTOS source SRC_C += \ lib/FreeRTOS/Source/list.c \ diff --git a/examples/device/hid_generic_inout/Makefile b/examples/device/hid_generic_inout/Makefile index 4ff3371dc..69b633fea 100644 --- a/examples/device/hid_generic_inout/Makefile +++ b/examples/device/hid_generic_inout/Makefile @@ -9,7 +9,4 @@ INC += \ EXAMPLE_SOURCE += $(wildcard src/*.c) SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) -# Board source -SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c - include ../../rules.mk diff --git a/examples/device/msc_dual_lun/Makefile b/examples/device/msc_dual_lun/Makefile index 59eeacf4d..5a455078e 100644 --- a/examples/device/msc_dual_lun/Makefile +++ b/examples/device/msc_dual_lun/Makefile @@ -9,7 +9,4 @@ INC += \ EXAMPLE_SOURCE += $(wildcard src/*.c) SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) -# Board source -SRC_C += hw/bsp/$(BOARD)/board_$(BOARD).c - include ../../rules.mk diff --git a/examples/make.mk b/examples/make.mk index d76f611fb..d972c1fea 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -31,6 +31,9 @@ BUILD = build-$(BOARD) # Board specific include $(TOP)/hw/bsp/$(BOARD)/board.mk +# Include all source C in board folder +SRC_C += $(subst $(TOP)/,,$(wildcard $(TOP)/hw/bsp/$(BOARD)/*.c)) + # Compiler Flags CFLAGS += \ -fsingle-precision-constant \ |
