os: name rtc_drv unambigously (ref #2190)

This commit is contained in:
Stefan Kalkowski 2019-05-04 00:28:02 +02:00 committed by Christian Helmuth
parent 2e68fae2ec
commit d9143f805e
6 changed files with 12 additions and 9 deletions

View File

@ -0,0 +1,5 @@
TARGET = linux_rtc_drv
REQUIRES = x86
LIBS = lx_hybrid
include $(REP_DIR)/src/drivers/rtc/target.inc

View File

@ -1,12 +1,5 @@
TARGET = rtc_drv
REQUIRES = x86
SRC_CC = main.cc
LIBS = base
# enforce hybrid prg on Linux
ifeq ($(filter-out $(SPECS),linux),)
LIBS = lx_hybrid
SRC_CC += linux.cc
else
LIBS = base
SRC_CC += rtc.cc
endif
include $(REP_DIR)/src/drivers/rtc/target.inc

View File

@ -0,0 +1,5 @@
SRC_CC = main.cc rtc.cc
INC_DIR += $(REP_DIR)/src/drivers/rtc
vpath main.cc $(REP_DIR)/src/drivers/rtc
vpath rtc.cc $(PRG_DIR)