Skip to content

Commit

Permalink
Merge pull request #934 from aussiegeek/atto3
Browse files Browse the repository at this point in the history
Add BYD Atto 3
  • Loading branch information
dexterbg committed Sep 16, 2023
2 parents fbb768b + 05f25c2 commit 847ae62
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vehicle/OVMS.V3/components/vehicle_byd_atto3/CMakeLists.txt
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)
14 changes: 14 additions & 0 deletions vehicle/OVMS.V3/components/vehicle_byd_atto3/component.mk
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

0 comments on commit 847ae62

Please sign in to comment.