Skip to content

Commit ca4e1bf

Browse files
committed
Add esp32init prototype
esp32init purpose is to load the application from an application partition. Signed-off-by: Davide Bettio <[email protected]>
1 parent e54a2e1 commit ca4e1bf

File tree

3 files changed

+398
-0
lines changed

3 files changed

+398
-0
lines changed

libs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ add_subdirectory(estdlib/src)
2525
add_subdirectory(eavmlib/src)
2626
add_subdirectory(alisp/src)
2727
add_subdirectory(etest/src)
28+
add_subdirectory(esp32boot)
2829

2930
if (Elixir_FOUND)
3031
add_subdirectory(exavmlib/lib)

libs/esp32boot/CMakeLists.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# This file is part of AtomVM.
3+
#
4+
# Copyright 2023 Davide Bettio <[email protected]>
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
#
20+
21+
project(esp32boot)
22+
23+
include(BuildErlang)
24+
25+
if (Elixir_FOUND)
26+
pack_runnable(esp32boot esp32init eavmlib estdlib alisp exavmlib)
27+
else()
28+
pack_runnable(esp32boot esp32init eavmlib estdlib alisp)
29+
endif()

0 commit comments

Comments
 (0)