File tree Expand file tree Collapse file tree 5 files changed +28
-17
lines changed Expand file tree Collapse file tree 5 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 20
20
21
21
- name : Change Owner of Container Working Directory
22
22
run : chown root:root .
23
-
24
- - name : build bootloader
25
- run : cd fw && make bl RELEASE=1 BOARD=${{matrix.board}}
26
23
- name : build firmware
27
- run : cd fw && make app RELEASE=1 BOARD=${{matrix.board}}
28
- - name : build ota
29
- run : cd fw/application && make ota RELEASE=1 APP_VERSION=$GITHUB_RUN_NUMBER BOARD=${{matrix.board}}
30
- - name : build all
31
- run : cd fw/application && make full RELEASE=1 APP_VERSION=$GITHUB_RUN_NUMBER BOARD=${{matrix.board}}
24
+ run : cd fw && make all RELEASE=1 APP_VERSION=$GITHUB_RUN_NUMBER BOARD=${{matrix.board}}
32
25
- name : upload bootloader
33
26
uses : actions/upload-artifact@v3
34
27
with :
Original file line number Diff line number Diff line change 4
4
5
5
You could download the latest develop build from Github Actions
6
6
7
- https://github.com/impeeza /pixl.js/actions/workflows/pixl.js-fw.yml
7
+ https://github.com/solosky /pixl.js/actions
8
8
9
9
10
10
## Build with customized Docker image
11
11
12
12
You could build the firmware using customized Docker image.
13
13
14
14
```
15
+ # create containers
15
16
docker run -it --rm solosky/nrf52-sdk:latest
17
+
18
+ # init repository
16
19
root@b10d54636088:/builds# git clone https://github.com/solosky/pixl.js
17
20
root@b10d54636088:/builds# cd pixl.js
18
21
root@b10d54636088:/builds/pixl.js# git submodule update --init --recursive
19
- root@b10d54636088:/builds/pixl.js# cd fw && make all
20
- root@b10d54636088:/builds/pixl.js/fw# cd application && make full ota
22
+
23
+ # build LCD version
24
+ root@b10d54636088:/builds/pixl.js# cd fw && make all BOARD=LCD RELEASE=1
25
+
26
+ # build OLED version
27
+ root@b10d54636088:/builds/pixl.js# cd fw && make all BOARD=OLED RELEASE=1
28
+
21
29
```
22
30
23
31
The firmware is fw/_ build/pixjs_all.hex,ota package is fw/_ build/pixjs_ota_vXXXX.zip
Original file line number Diff line number Diff line change 4
4
5
5
您可以从Github Actions下载最新的构建开发版本。
6
6
7
- https://github.com/impeeza /pixl.js/actions/workflows/pixl.js-fw.yml
7
+ https://github.com/solosky /pixl.js/actions
8
8
9
9
10
10
## 使用定制的Docker镜像进行构建
11
11
12
12
您可以使用定制的Docker镜像构建固件。
13
13
14
14
```
15
+ # 创建容器
15
16
docker run -it --rm solosky/nrf52-sdk:latest
17
+
18
+ # 下载代码
16
19
root@b10d54636088:/builds# git clone https://github.com/solosky/pixl.js
17
20
root@b10d54636088:/builds# cd pixl.js
18
21
root@b10d54636088:/builds/pixl.js# git submodule update --init --recursive
19
- root@b10d54636088:/builds/pixl.js# cd fw && make all
20
- root@b10d54636088:/builds/pixl.js/fw# cd application && make full ota
22
+
23
+ # 构建LCD固件
24
+ root@b10d54636088:/builds/pixl.js# cd fw && make all BOARD=LCD RELEASE=1
25
+
26
+ # 构建OLED固件
27
+ root@b10d54636088:/builds/pixl.js# cd fw && make all BOARD=OLED RELEASE=1
21
28
```
22
29
23
30
构建好的固件在 fw/_ build/pixjs_all.hex,ota package is fw/_ build/pixjs_ota_vXXXX.zip
Original file line number Diff line number Diff line change 1
1
.PHONY : app bl clean
2
2
3
- all : bl app
3
+ all : bl app ota
4
4
5
5
bl :
6
6
@$(MAKE ) -C bootloader/
7
7
8
8
app :
9
9
@$(MAKE ) -C application/
10
10
11
+ ota :
12
+ @$(MAKE ) -C application/ full ota
13
+
11
14
clean :
12
15
@rm -rf _build/
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ U8G2_ROOT := ../components/u8g2/csrc
9
9
CHAMELEON_ROOT :=$(COMP_DIR ) /chameleon-ultra/firmware
10
10
11
11
APP_VERSION ?= 1
12
- RELEASE ?= 0
12
+ RELEASE ?= 1
13
13
BOARD ?= OLED
14
14
15
15
$(OUTPUT_DIRECTORY ) /pixljs.out : \
@@ -300,7 +300,6 @@ SRC_FILES += \
300
300
$(PROJ_DIR ) /i18n/hu_HU.c \
301
301
$(PROJ_DIR ) /i18n/de_DE.c \
302
302
$(PROJ_DIR ) /i18n/fr_FR.c \
303
- $(PROJ_DIR ) /i18n/hu_HU.c \
304
303
$(PROJ_DIR ) /i18n/ja_JP.c \
305
304
$(PROJ_DIR ) /i18n/nl_NL.c \
306
305
$(PROJ_DIR ) /i18n/pt_BR.c \
@@ -714,6 +713,7 @@ sdk_config:
714
713
715
714
version :
716
715
@cd ../ && python3 scripts/version_gen.py
716
+ @echo build: BOARD=$(BOARD ) RELEASE=$(RELEASE ) APP_VERSION=$(APP_VERSION )
717
717
718
718
settingsgen :
719
719
nrfutil settings generate --family NRF52 --application $(OUTPUT_DIRECTORY ) /pixljs.hex --application-version $(APP_VERSION ) --bootloader-version 1 --bl-settings-version 1 $(OUTPUT_DIRECTORY ) /settings.hex
You can’t perform that action at this time.
0 commit comments