Skip to content

Commit 2a1390d

Browse files
committed
Merge branch 'feature/mcume' of github.com:esp-cpp/esp-box-emu into feature/mcume
2 parents e66ce09 + 4a60e9d commit 2a1390d

File tree

155 files changed

+47149
-637917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+47149
-637917
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [finger563]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v2
13+
with:
14+
submodules: 'recursive'
15+
16+
- name: Build Examples
17+
uses: espressif/esp-idf-ci-action@v1
18+
with:
19+
esp_idf_version: release-v5.2
20+
target: esp32s3
21+
path: '.'

.github/workflows/package_main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Package Main
2+
3+
on:
4+
push:
5+
branches: [main]
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
continue-on-error: false
14+
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v2
18+
with:
19+
submodules: 'recursive'
20+
21+
- name: Build Main Code
22+
uses: espressif/esp-idf-ci-action@v1
23+
with:
24+
esp_idf_version: release-v5.2
25+
target: esp32s3
26+
path: '.'
27+
command: './patches.sh && idf.py build'
28+
29+
- name: Upload Build Outputs
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: build-artifacts
33+
path: |
34+
build/bootloader/bootloader.bin
35+
build/partition_table/partition-table.bin
36+
build/esp-box-emu.bin
37+
build/flash_args
38+
39+
- name: Attach files to release
40+
uses: softprops/action-gh-release@v1
41+
if: ${{ github.event.release && github.event.action == 'published' }}
42+
with:
43+
files: |
44+
build/esp-box-emu.bin
45+
build/bootloader/bootloader.bin
46+
build/partition_table/partition-table.bin
47+
build/flash_args
48+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Static analysis
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
static_analysis:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v2
12+
with:
13+
submodules: 'recursive'
14+
15+
- name: Run static analysis
16+
uses: esp-cpp/StaticAnalysis@master
17+
with:
18+
# Do not build the project and do not use cmake to generate compile_commands.json
19+
use_cmake: false
20+
21+
# Use the 5.2 release version since it's what we build with
22+
esp_idf_version: release/v5.2
23+
24+
# (Optional) cppcheck args
25+
cppcheck_args: -i$GITHUB_WORKSPACE/lib -i$GITHUB_WORKSPACE/components/gbc/gnuboy -i$GITHUB_WORKSPACE/components/nes/nofrendo -i$GITHUB_WORKSPACE/components/gui/generated -i$GITHUB_WORKSPACE/components/menu/generated -i$GITHUB_WORKSPACE/components/jpegdec -i$GITHUB_WORKSPACE/components/codec -i$GITHUB_WORKSPACE/components/espp --force --enable=all --inline-suppr --inconclusive --platform=mips32 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ sdkconfig.old
3737
**/squareline/backup
3838
flash_data/
3939
*-backups/
40+
managed_components/
41+
dependencies.lock

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "components/jpegdec"]
55
path = components/jpegdec
66
url = git@github.com:bitbank2/JPEGDEC
7-
[submodule "components/jpegenc"]
8-
path = components/jpegenc
9-
url = git@github.com:esp-cpp/JPEGENC

CMakeLists.txt

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,59 @@ set(GBC_COMPONENTS "gbc")
1919
set(SMS_COMPONENTS "sms")
2020

2121
### SNES ###
22-
set(SNES_COMPONENTS "snes")
22+
# set(SNES_COMPONENTS "snes")
2323

2424
### MSX ###
25-
set(MSX_COMPONENTS "msx")
25+
# set(MSX_COMPONENTS "msx")
2626

2727
### DOOM ###
28-
set(DOOM_COMPONENTS "doom")
28+
# set(DOOM_COMPONENTS "doom")
2929

3030
add_compile_definitions(BOARD_HAS_PSRAM)
3131

32+
# if NES_COMPONENTS is set, add compile definitions for the NES
33+
if(NES_COMPONENTS)
34+
add_compile_definitions(ENABLE_NES)
35+
endif()
36+
37+
# if GBC_COMPONENTS is set, add compile definitions for the GBC
38+
if(GBC_COMPONENTS)
39+
add_compile_definitions(ENABLE_GBC)
40+
endif()
41+
42+
# if SMS_COMPONENTS is set, add compile definitions for the SMS
43+
if(SMS_COMPONENTS)
44+
add_compile_definitions(ENABLE_SMS)
45+
endif()
46+
47+
# if SNES_COMPONENTS is set, add compile definitions for the SNES
48+
if(SNES_COMPONENTS)
49+
add_compile_definitions(ENABLE_SNES)
50+
endif()
51+
52+
# if MSX_COMPONENTS is set, add compile definitions for the MSX
53+
if(MSX_COMPONENTS)
54+
add_compile_definitions(ENABLE_MSX)
55+
endif()
56+
57+
# if DOOM_COMPONENTS is set, add compile definitions for the DOOM
58+
if(DOOM_COMPONENTS)
59+
add_compile_definitions(ENABLE_DOOM)
60+
endif()
61+
3262
# make the components list for the emulators we want
3363
set(EMULATOR_COMPONENTS
3464
${NES_COMPONENTS}
3565
${GBC_COMPONENTS}
3666
${SMS_COMPONENTS}
37-
# ${SNES_COMPONENTS}
38-
# ${MSX_COMPONENTS}
39-
# ${DOOM_COMPONENTS}
67+
${SNES_COMPONENTS}
68+
${MSX_COMPONENTS}
69+
${DOOM_COMPONENTS}
4070
)
4171

4272
set(
4373
COMPONENTS
44-
"main esptool_py esp_lcd esp_psram task format display display_drivers monitor esp-idf-cxx ${EMULATOR_COMPONENTS} box-emu-hal gui menu"
74+
"main esptool_py esp_lcd esp_psram task format display display_drivers monitor timer ${EMULATOR_COMPONENTS} box-emu-hal gui menu"
4575
CACHE STRING
4676
"List of components to include"
4777
)

0 commit comments

Comments
 (0)