make: move spi_flash.c to source/platform
This commit is contained in:
parent
b1d94ce1d0
commit
b168422d8a
4 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,6 @@ LIBS += -l$(OPENCM3_LIBNAME)
|
||||||
STLINK_PORT ?= :4242
|
STLINK_PORT ?= :4242
|
||||||
|
|
||||||
obj-y += source/core/spi.o
|
obj-y += source/core/spi.o
|
||||||
obj-y += source/drivers/spi_flash.o
|
|
||||||
|
|
||||||
$(OPENCM3_DIR)/lib/lib$(OPENCM3_LIBNAME).a:
|
$(OPENCM3_DIR)/lib/lib$(OPENCM3_LIBNAME).a:
|
||||||
@if [ ! -e libopencm3/.git ]; then \
|
@if [ ! -e libopencm3/.git ]; then \
|
||||||
|
|
|
@ -22,7 +22,6 @@ LIBS += -l$(OPENCM3_LIBNAME)
|
||||||
STLINK_PORT ?= :4242
|
STLINK_PORT ?= :4242
|
||||||
|
|
||||||
obj-y += source/core/spi.o
|
obj-y += source/core/spi.o
|
||||||
obj-y += source/drivers/spi_flash.o
|
|
||||||
|
|
||||||
$(OPENCM3_DIR)/lib/lib$(OPENCM3_LIBNAME).a:
|
$(OPENCM3_DIR)/lib/lib$(OPENCM3_LIBNAME).a:
|
||||||
@if [ ! -e libopencm3/.git ]; then \
|
@if [ ! -e libopencm3/.git ]; then \
|
||||||
|
|
|
@ -1 +1,6 @@
|
||||||
|
ifeq ($(TARGET),host)
|
||||||
|
else
|
||||||
|
obj-y += source/platform/spi_flash.o
|
||||||
|
endif
|
||||||
|
|
||||||
-include source/platform/$(TARGET)/Makefile
|
-include source/platform/$(TARGET)/Makefile
|
||||||
|
|
Loading…
Add table
Reference in a new issue