diff --git a/examples/blink/Makefile b/examples/blink/Makefile index 871a778..86a7f75 100644 --- a/examples/blink/Makefile +++ b/examples/blink/Makefile @@ -1,15 +1,15 @@ # Keep this first line. -TOP = ../.. +GOSSAMER_PATH = ../.. # If your firmware targets a specific board, specify it here, # or omit it and provide it on the command line (make BOARD=foo). BOARD=feather_low_energy # Leave this line here. -include $(TOP)/make.mk +include $(GOSSAMER_PATH)/make.mk SRCS += \ ./app.c \ # Finally, leave this line at the bottom of the file. -include $(TOP)/rules.mk +include $(GOSSAMER_PATH)/rules.mk diff --git a/examples/clock/Makefile b/examples/clock/Makefile index ccbd2b9..9189f08 100644 --- a/examples/clock/Makefile +++ b/examples/clock/Makefile @@ -1,12 +1,12 @@ # Keep this first line. -TOP = ../.. +GOSSAMER_PATH = ../.. # If your firmware targets a specific board, specify it here, # or omit it and provide it on the command line (make BOARD=foo). BOARD=feather_m0 # Leave this line here. -include $(TOP)/make.mk +include $(GOSSAMER_PATH)/make.mk # Add all your source files to compile after the app.c line. SRCS += \ @@ -14,4 +14,4 @@ SRCS += \ ../../drivers/lcd/oso_lcd.c \ # Finally, leave this line at the bottom of the file. -include $(TOP)/rules.mk +include $(GOSSAMER_PATH)/rules.mk diff --git a/examples/subway_serpent/Makefile b/examples/subway_serpent/Makefile index 92e45a1..5791ff0 100644 --- a/examples/subway_serpent/Makefile +++ b/examples/subway_serpent/Makefile @@ -1,12 +1,12 @@ # Keep this first line. -TOP = ../.. +GOSSAMER_PATH = ../.. # If your firmware targets a specific board, specify it here, # or omit it and provide it on the command line (make BOARD=foo). BOARD=feather_low_energy # Leave this line here. -include $(TOP)/make.mk +include $(GOSSAMER_PATH)/make.mk # Add all your source files to compile after the app.c line. SRCS += \ @@ -15,4 +15,4 @@ SRCS += \ ../../drivers/lcd/oso_lcd.c \ # Finally, leave this line at the bottom of the file. -include $(TOP)/rules.mk +include $(GOSSAMER_PATH)/rules.mk diff --git a/examples/weather_station/Makefile b/examples/weather_station/Makefile index 2462f10..1363ad0 100644 --- a/examples/weather_station/Makefile +++ b/examples/weather_station/Makefile @@ -1,12 +1,12 @@ # Keep this first line. -TOP = ../.. +GOSSAMER_PATH = ../.. # If your firmware targets a specific board, specify it here, # or omit it and provide it on the command line (make BOARD=foo). BOARD=feather_low_energy # Leave this line here. -include $(TOP)/make.mk +include $(GOSSAMER_PATH)/make.mk # Add all your source files to compile after the app.c line. SRCS += \ @@ -18,4 +18,4 @@ SRCS += \ ../../drivers/lcd/oso_lcd.c \ # Finally, leave this line at the bottom of the file. -include $(TOP)/rules.mk +include $(GOSSAMER_PATH)/rules.mk diff --git a/make.mk b/make.mk index 8e6bafc..4ef1e5a 100644 --- a/make.mk +++ b/make.mk @@ -2,7 +2,7 @@ BUILD = ./build BIN = firmware -include $(TOP)/boards/$(BOARD)/board.mk +include $(GOSSAMER_PATH)/boards/$(BOARD)/board.mk ############################################################################## .PHONY: all directory clean size @@ -42,8 +42,8 @@ endif CC = arm-none-eabi-gcc OBJCOPY = arm-none-eabi-objcopy SIZE = arm-none-eabi-size -UF2 = python3 $(TOP)/utils/uf2/uf2conv.py -DFU_CONV = $(TOP)/utils/dfu/dx1elf2dfu +UF2 = python3 $(GOSSAMER_PATH)/utils/uf2/uf2conv.py +DFU_CONV = $(GOSSAMER_PATH)/utils/dfu/dx1elf2dfu DFU_UTIL = dfu-util CFLAGS += -W -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations @@ -56,39 +56,39 @@ CFLAGS += -MD -MP -MT $(BUILD)/$(*F).o -MF $(BUILD)/$(@F).d LDFLAGS += -mcpu=cortex-m0plus -mthumb LDFLAGS += -Wl,--gc-sections -LDFLAGS += -Wl,--script=$(TOP)/chips/$(CHIP)/linker/$(LDSCRIPT).ld +LDFLAGS += -Wl,--script=$(GOSSAMER_PATH)/chips/$(CHIP)/linker/$(LDSCRIPT).ld LDFLAGS += -specs=nosys.specs LIBS += -lm INCLUDES += \ - -I$(TOP)/common/ \ - -I$(TOP)/peripherals/ \ - -I$(TOP)/drivers/ \ - -I$(TOP)/boards/$(BOARD)/ \ - -I$(TOP)/chips/$(CHIP)/include/ \ + -I$(GOSSAMER_PATH)/common/ \ + -I$(GOSSAMER_PATH)/peripherals/ \ + -I$(GOSSAMER_PATH)/drivers/ \ + -I$(GOSSAMER_PATH)/boards/$(BOARD)/ \ + -I$(GOSSAMER_PATH)/chips/$(CHIP)/include/ \ SRCS += \ - $(TOP)/chips/$(CHIP)/startup_$(CHIP).c \ - $(TOP)/chips/$(CHIP)/system_$(CHIP).c \ - $(TOP)/main.c \ - $(TOP)/common/delay.c \ - $(TOP)/peripherals/adc.c \ - $(TOP)/peripherals/dac.c \ - $(TOP)/peripherals/dma.c \ - $(TOP)/peripherals/eic.c \ - $(TOP)/peripherals/i2c.c \ - $(TOP)/peripherals/i2s.c \ - $(TOP)/peripherals/opamp.c \ - $(TOP)/peripherals/ptc.c \ - $(TOP)/peripherals/rtc.c \ - $(TOP)/peripherals/sercom.c \ - $(TOP)/peripherals/spi.c \ - $(TOP)/peripherals/tc.c \ - $(TOP)/peripherals/tcc.c \ - $(TOP)/peripherals/uart.c \ - $(TOP)/drivers/gfx/gfx.c \ - $(TOP)/drivers/gfx/sh1107.c \ + $(GOSSAMER_PATH)/chips/$(CHIP)/startup_$(CHIP).c \ + $(GOSSAMER_PATH)/chips/$(CHIP)/system_$(CHIP).c \ + $(GOSSAMER_PATH)/main.c \ + $(GOSSAMER_PATH)/common/delay.c \ + $(GOSSAMER_PATH)/peripherals/adc.c \ + $(GOSSAMER_PATH)/peripherals/dac.c \ + $(GOSSAMER_PATH)/peripherals/dma.c \ + $(GOSSAMER_PATH)/peripherals/eic.c \ + $(GOSSAMER_PATH)/peripherals/i2c.c \ + $(GOSSAMER_PATH)/peripherals/i2s.c \ + $(GOSSAMER_PATH)/peripherals/opamp.c \ + $(GOSSAMER_PATH)/peripherals/ptc.c \ + $(GOSSAMER_PATH)/peripherals/rtc.c \ + $(GOSSAMER_PATH)/peripherals/sercom.c \ + $(GOSSAMER_PATH)/peripherals/spi.c \ + $(GOSSAMER_PATH)/peripherals/tc.c \ + $(GOSSAMER_PATH)/peripherals/tcc.c \ + $(GOSSAMER_PATH)/peripherals/uart.c \ + $(GOSSAMER_PATH)/drivers/gfx/gfx.c \ + $(GOSSAMER_PATH)/drivers/gfx/sh1107.c \ ifdef TINYUSB_CDC CFLAGS += -DAPP_USES_TINYUSB -DCFG_TUD_CDC=$(TINYUSB_CDC) @@ -119,27 +119,27 @@ ifdef TINYUSB CFLAGS += -DAPP_USES_TINYUSB INCLUDES += \ - -I$(TOP)/drivers/tinyusb/src/ \ + -I$(GOSSAMER_PATH)/drivers/tinyusb/src/ \ SRCS += \ - $(TOP)/drivers/tinyusb/src/tusb.c \ - $(TOP)/drivers/tinyusb/src/common/tusb_fifo.c \ - $(TOP)/drivers/tinyusb/src/device/usbd.c \ - $(TOP)/drivers/tinyusb/src/device/usbd_control.c \ - $(TOP)/drivers/tinyusb/src/class/audio/audio_device.c \ - $(TOP)/drivers/tinyusb/src/class/cdc/cdc_device.c \ - $(TOP)/drivers/tinyusb/src/class/dfu/dfu_device.c \ - $(TOP)/drivers/tinyusb/src/class/dfu/dfu_rt_device.c \ - $(TOP)/drivers/tinyusb/src/class/hid/hid_device.c \ - $(TOP)/drivers/tinyusb/src/class/midi/midi_device.c \ - $(TOP)/drivers/tinyusb/src/class/msc/msc_device.c \ - $(TOP)/drivers/tinyusb/src/class/net/ecm_rndis_device.c \ - $(TOP)/drivers/tinyusb/src/class/net/ncm_device.c \ - $(TOP)/drivers/tinyusb/src/class/usbtmc/usbtmc_device.c \ - $(TOP)/drivers/tinyusb/src/class/video/video_device.c \ - $(TOP)/drivers/tinyusb/src/class/vendor/vendor_device.c \ - $(TOP)/drivers/tinyusb/src/portable/microchip/samd/dcd_samd.c \ - $(TOP)/peripherals/usb.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/tusb.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/common/tusb_fifo.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/device/usbd.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/device/usbd_control.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/audio/audio_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/cdc/cdc_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/dfu/dfu_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/dfu/dfu_rt_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/hid/hid_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/midi/midi_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/msc/msc_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/net/ecm_rndis_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/net/ncm_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/usbtmc/usbtmc_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/video/video_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/class/vendor/vendor_device.c \ + $(GOSSAMER_PATH)/drivers/tinyusb/src/portable/microchip/samd/dcd_samd.c \ + $(GOSSAMER_PATH)/peripherals/usb.c \ endif