Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (26 sloc) 848 Bytes
SDK_DIR ?= sdk
FIRMWARE ?= generic-node
VERSION ?= vdev
BC_LED_STRIP_TYPE_RGBW = 4
BC_LED_STRIP_TYPE_RGB = 3
override MODULE_POWER ?= 0
override BATTERY_MINI ?= 0
override LED_STRIP_COUNT ?= 144
override LED_STRIP_TYPE ?= $(BC_LED_STRIP_TYPE_RGBW)
CFLAGS += -D'BC_SCHEDULER_MAX_TASKS=64'
CFLAGS += -D'MODULE_POWER=$(MODULE_POWER)'
CFLAGS += -D'LED_STRIP_COUNT=$(LED_STRIP_COUNT)'
CFLAGS += -D'LED_STRIP_TYPE=$(LED_STRIP_TYPE)'
CFLAGS += -D'BATTERY_MINI=$(BATTERY_MINI)'
CFLAGS += -D'FIRMWARE="$(FIRMWARE)"'
CFLAGS += -D'VERSION="$(VERSION)"'
-include sdk/Makefile.mk
.PHONY: all
all: sdk
@$(MAKE) -s debug
.PHONY: sdk
sdk:
@if [ ! -f $(SDK_DIR)/Makefile.mk ]; then echo "Initializing Git submodules..."; git submodule update --init; fi
.PHONY: update
update: sdk
@echo "Updating Git submodules..."; git submodule update --remote --merge
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.