Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Define PIKSI_HW in top-level makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmcnamee committed Apr 7, 2016
1 parent b39858e commit 4e31d57
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ else
MAKEFLAGS += PRN=$(PRN)
endif

ifeq ($(PIKSI_HW),)
PIKSI_HW=v2
endif

MAKEFLAGS += PIKSI_HW=$(PIKSI_HW)

ifeq ($(PIKSI_HW),v2)
CMAKEFLAGS += -DCMAKE_SYSTEM_PROCESSOR=cortex-m4
endif

ifeq ($(PIKSI_HW),v3)
CMAKEFLAGS += -DCMAKE_SYSTEM_PROCESSOR=cortex-a9
endif

.PHONY: all tests firmware docs hitl .FORCE

all: firmware # tests
Expand Down

0 comments on commit 4e31d57

Please sign in to comment.