Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/build-classic1s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
fi

if [ "${{ matrix.build_type }}" = "qa" ]; then
export FIRMWARE_QA=1
export FIRMWARE_QA=0
export PRODUCTION=0
export BOOTLOADER_QA=1
SIGN_SCRIPT="./legacy/debug_signing/sign_onekey_qa.py"
Expand All @@ -97,6 +97,20 @@ jobs:

if [ "${{ matrix.bitcoin_only }}" = "0" ]; then
cp ./legacy/bootloader/classic1s_bootloader*Stable*.bin ${{ matrix.artifact_suffix }}

if [ "${{ matrix.build_type }}" = "qa" ]; then
nix-shell --run "poetry run $SIGN_SCRIPT \
./legacy/intermediate_fw/classic1s_boot_update*.bin \
-S 1:${{ secrets.SECRET_QA_KEY_1 }} \
-S 2:${{ secrets.SECRET_QA_KEY_2 }} \
-S 3:${{ secrets.SECRET_QA_KEY_3 }} \
-S 4:${{ secrets.SECRET_QA_KEY_4 }}"

cp ./legacy/intermediate_fw/classic1s_boot_update*qa.signed.bin ${{ matrix.artifact_suffix }}
else
cp ./legacy/intermediate_fw/classic1s_boot_update*.bin ${{ matrix.artifact_suffix }}
fi

./legacy/script/hash.py -t bootloader -f ${{ matrix.artifact_suffix }}/classic1s_bootloader*Stable*.bin > ${{ matrix.artifact_suffix }}/hash.txt
./legacy/script/hash.py -t firmware -f ${{ matrix.artifact_suffix }}/classic1s.*Stable*.bin >> ${{ matrix.artifact_suffix }}/hash.txt
else
Expand Down
2 changes: 1 addition & 1 deletion legacy/firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BUILD_COMMIT=$(shell git rev-parse HEAD | cut -c1-7)
ifneq ($(BITCOIN_ONLY),1)
NAME=classic1s.$(FIRMWARE_BUILD_VERSION)-Stable-$(BUILD_COMMIT)
else
NAME=classic1s.$(FIRMWARE_BUILD_VERSION)-Stable-bc-only-$(BUILD_COMMIT)
NAME=classic1s.$(FIRMWARE_BUILD_VERSION)-Stable-btc-$(BUILD_COMMIT)
endif
else
NAME=classic1s.$(FIRMWARE_BUILD_VERSION)-Alpha-$(BUILD_ID)
Expand Down
2 changes: 2 additions & 0 deletions legacy/firmware/bl_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ void check_and_replace_bootloader(bool shutdown_on_replace) {
"detected.", NULL, "Shutdown your OneKey",
"contact our support.", NULL);
delay_ms(1000);
#if PRODUCTION
shutdown();
#endif
}

if (is_mode_unprivileged()) {
Expand Down
Loading