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:
Christian Helmuth 2017-05-26 16:57:44 +02:00
parent adb26b5216
commit febfb3bfe6
2 changed files with 7 additions and 3 deletions

View File

@ -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)/..

View File

@ -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)/..