-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #934 from aussiegeek/atto3
Add BYD Atto 3
- Loading branch information
Showing
5 changed files
with
499 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
vehicle/OVMS.V3/components/vehicle_byd_atto3/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
set(srcs) | ||
set(include_dirs) | ||
|
||
if (CONFIG_OVMS_VEHICLE_BYD_ATTO3) | ||
list(APPEND srcs "src/vehicle_byd_atto3.cpp") | ||
list(APPEND include_dirs "src") | ||
endif () | ||
|
||
# requirements can't depend on config | ||
idf_component_register(SRCS ${srcs} | ||
INCLUDE_DIRS ${include_dirs} | ||
PRIV_REQUIRES "main" | ||
WHOLE_ARCHIVE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# | ||
# Main component makefile. | ||
# | ||
# This Makefile can be left empty. By default, it will take the sources in the | ||
# src/ directory, compile them and link them into lib(subdirectory_name).a | ||
# in the build directory. This behaviour is entirely configurable, | ||
# please read the ESP-IDF documents if you need to do this. | ||
# | ||
|
||
ifdef CONFIG_OVMS_VEHICLE_BYD_ATTO3 | ||
COMPONENT_ADD_INCLUDEDIRS:=src | ||
COMPONENT_SRCDIRS:=src | ||
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive | ||
endif |
Oops, something went wrong.