Skip to content
Snippets Groups Projects
Commit cf72d36a authored by Luca Erbetta's avatar Luca Erbetta :rocket:
Browse files

[SBS] Now correctly uses SRC_PATH

parent b7a2513e
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ LIBS := {SBS_PROJECT_LIBS}
## List here additional include directories (in the form -Iinclude_dir)
##
INCLUDE_DIRS := -I$(SBS_BASE)/libs -I$(SBS_BASE)/libs/miosix-kernel/miosix \
-I$(SBS_BASE)/src/shared -Isrc/boards {SBS_PROJECT_INCLUDES}
{SBS_PROJECT_INCLUDES}
##############################################################################
## You should not need to modify anything below ##
......
......@@ -176,18 +176,18 @@ def build_makefile(template, board, bname):
"BIN_NAME": board['bin']
}
rmap["PROJECT_INCLUDES"] = ""
rmap["PROJECT_INCLUDES"] = "-I" + projconf["SRC_PATH"].strip() + " "
rmap["PROJECT_LIBS"] = ""
rmap["PROJECT_SUBDIRS"] = ""
for incl in incllist:
rmap["PROJECT_INCLUDES"] += incl + " "
rmap["PROJECT_INCLUDES"] += incl.strip() + " "
for lib in liblist:
rmap["PROJECT_LIBS"] += lib + " "
rmap["PROJECT_LIBS"] += lib.strip() + " "
for sd in subdirs:
rmap["PROJECT_SUBDIRS"] += sd + " "
rmap["PROJECT_SUBDIRS"] += sd.strip() + " "
for i in rmap:
template = template.replace("{SBS_%s}" % i , rmap[i])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment