Fix source file location in RPi GPIO driver
The explicit relative location of the file instructed both target builds to generate ../main.o which gloriously fails with parallel builds. The produced range of error messages was astonishing ranging from "file truncated" to "TLS reference in ../main.o mismatches non-TLS reference in ../main.o".
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
TARGET = foc_gpio_drv
|
||||
REQUIRES = rpi
|
||||
SRC_CC += ../main.cc
|
||||
LIBS += base
|
||||
SRC_CC += main.cc
|
||||
LIBS = base
|
||||
INC_DIR += $(PRG_DIR) $(PRG_DIR)/..
|
||||
|
||||
vpath main.cc $(PRG_DIR)/..
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
TARGET = hw_gpio_drv
|
||||
REQUIRES = rpi
|
||||
SRC_CC += ../main.cc
|
||||
SRC_CC += main.cc
|
||||
LIBS = base
|
||||
INC_DIR += $(PRG_DIR) $(PRG_DIR)/..
|
||||
|
||||
vpath main.cc $(PRG_DIR)/..
|
||||
|
||||
Reference in New Issue
Block a user