mirror of
https://github.com/pine64/blisp.git
synced 2026-09-21 14:01:29 +00:00
Compare commits
8
Commits
v0.0.4
..
1cf79c73ee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cf79c73ee | ||
|
|
448d81bfd3 | ||
|
|
7a85414ece | ||
|
|
c41d128e73 | ||
|
|
d2fef0af22 | ||
|
|
2203a250e3
|
||
|
|
713e444656 | ||
|
|
3b47993de7
|
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Upload results
|
- name: Upload results
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: blips-apple-x86_64.zip
|
name: blips-apple-universal.zip
|
||||||
path: |
|
path: |
|
||||||
build/tools/blisp/blisp
|
build/tools/blisp/blisp
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
+8
-1
@@ -1,4 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
|
||||||
project(blisp C)
|
project(blisp C)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
@@ -90,7 +91,13 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS libblisp libblisp_static DESTINATION lib)
|
include(GNUInstallDirs)
|
||||||
|
install(TARGETS libblisp libblisp_static
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
)
|
||||||
|
|
||||||
if(BLISP_BUILD_CLI)
|
if(BLISP_BUILD_CLI)
|
||||||
add_subdirectory(tools/blisp)
|
add_subdirectory(tools/blisp)
|
||||||
|
|||||||
@@ -94,3 +94,20 @@ Because this is done at the lowest level of serial communication, the
|
|||||||
displays aren't packet-aware or know about the chip's command set or such.
|
displays aren't packet-aware or know about the chip's command set or such.
|
||||||
This is really only useful for debugging systems-level issues withing
|
This is really only useful for debugging systems-level issues withing
|
||||||
the device or blisp itself.
|
the device or blisp itself.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
|
||||||
|
Depending on your current system security settings, modern versions of macOS requires all software to be notarised before you are able to execute it. This is specially true for software that is downloaded directly from the internet.
|
||||||
|
|
||||||
|
If that is the case, you will get an error that looks like the following:
|
||||||
|
> **“blisp” cannot be opened because the developer cannot be verified.**
|
||||||
|
>
|
||||||
|
> macOS cannot verify that this app is free from malware.
|
||||||
|
|
||||||
|
In that case, you will need to remove the *quarantine* flag that macOS adds to the executable. After that you should be able to run **blisp** as normal.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
xattr -d com.apple.quarantine blisp
|
||||||
|
```
|
||||||
|
|||||||
@@ -222,13 +222,13 @@ blisp_return_t blisp_flash_firmware() {
|
|||||||
|
|
||||||
if (ret != BLISP_OK) {
|
if (ret != BLISP_OK) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Failed to erase flash. Tried to erase from 0x%08X to 0x%08X\n",
|
"Failed to erase flash. Tried to erase from 0x%08lu to 0x%08lu\n",
|
||||||
parsed_file.payload_address,
|
parsed_file.payload_address,
|
||||||
parsed_file.payload_address + parsed_file.payload_length + 1);
|
parsed_file.payload_address + parsed_file.payload_length + 1);
|
||||||
goto exit2;
|
goto exit2;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Flashing the firmware %d bytes @ 0x%08X...\n",
|
printf("Flashing the firmware %lu bytes @ 0x%08lu...\n",
|
||||||
parsed_file.payload_length, parsed_file.payload_address);
|
parsed_file.payload_length, parsed_file.payload_address);
|
||||||
struct blisp_easy_transport data_transport =
|
struct blisp_easy_transport data_transport =
|
||||||
blisp_easy_transport_new_from_memory(parsed_file.payload,
|
blisp_easy_transport_new_from_memory(parsed_file.payload,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ file(GLOB_RECURSE sources
|
|||||||
)
|
)
|
||||||
list(APPEND ADD_SRCS ${sources})
|
list(APPEND ADD_SRCS ${sources})
|
||||||
|
|
||||||
add_library(file_parsers
|
add_library(file_parsers STATIC
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/bin/bin_file.c"
|
"${CMAKE_CURRENT_SOURCE_DIR}/bin/bin_file.c"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/dfu/dfu_file.c"
|
"${CMAKE_CURRENT_SOURCE_DIR}/dfu/dfu_file.c"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/dfu/dfu_crc.c"
|
"${CMAKE_CURRENT_SOURCE_DIR}/dfu/dfu_crc.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user