Skip to content

Commit

Permalink
rename TOP variable to GOSSAMER_PATH for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Jul 10, 2024
1 parent 64d066d commit 5a86380
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 60 deletions.
6 changes: 3 additions & 3 deletions examples/blink/Makefile
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions examples/clock/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# 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 += \
./app.c \
../../drivers/lcd/oso_lcd.c \

# Finally, leave this line at the bottom of the file.
include $(TOP)/rules.mk
include $(GOSSAMER_PATH)/rules.mk
6 changes: 3 additions & 3 deletions examples/subway_serpent/Makefile
Original file line number Diff line number Diff line change
@@ -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 += \
Expand All @@ -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
6 changes: 3 additions & 3 deletions examples/weather_station/Makefile
Original file line number Diff line number Diff line change
@@ -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 += \
Expand All @@ -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
96 changes: 48 additions & 48 deletions make.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5a86380

Please sign in to comment.