mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
**New features** - Created a devicetree DTS and YAML parser in Python - Created new modules: - TactilityKernel (LGPL v3.0 license) - Platforms/PlatformEsp32 (LGPL v3.0 license) - Platforms/PlatformPosix (LGPL v3.0 license) - Tests/TactilityKernelTests Most boards have a placeholder DTS file, while T-Lora Pager has a few devices attached. **Licenses** Clarified licenses and copyrights better. - Add explanation about the intent behind them. - Added explanation about licenses for past and future subprojects - Added more details explanations with regards to the logo usage - Copied licenses to subprojects to make it more explicit
59 lines
2.0 KiB
Bash
Executable File
59 lines
2.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# Usage: release-sdk.sh [target_path]
|
|
# Example: release.sh release/TactilitySDK
|
|
# Description: Releases the current build files as an SDK in the specified folder.
|
|
#
|
|
|
|
target_path=$1
|
|
|
|
mkdir -p $target_path
|
|
|
|
build_dir=`pwd`
|
|
library_path=$target_path/Libraries
|
|
|
|
cp version.txt $target_path
|
|
|
|
# TactilityC
|
|
tactility_library_path=$library_path/TactilityC
|
|
mkdir -p $tactility_library_path/Binary
|
|
cp build/esp-idf/TactilityC/libTactilityC.a $tactility_library_path/Binary/
|
|
mkdir -p $tactility_library_path/Include
|
|
find_target_dir="$build_dir/$tactility_library_path"
|
|
cp TactilityC/Include/* "$find_target_dir/Include"
|
|
cp TactilityC/*.txt "$find_target_dir"
|
|
cp TactilityC/*.md "$find_target_dir"
|
|
|
|
# TactilityFreeRtos
|
|
tactilityfreertos_library_path=$library_path/TactilityFreeRtos
|
|
mkdir -p "$tactilityfreertos_library_path/Include"
|
|
find_target_dir="$build_dir/$tactilityfreertos_library_path"
|
|
cp -r TactilityFreeRtos/Include/* "$find_target_dir/Include"
|
|
cp TactilityFreeRtos/*.txt "$find_target_dir"
|
|
cp TactilityFreeRtos/*.md "$find_target_dir"
|
|
|
|
# lvgl
|
|
lvgl_library_path=$library_path/lvgl
|
|
mkdir -p "$lvgl_library_path/Binary"
|
|
mkdir -p "$lvgl_library_path/Include"
|
|
cp build/esp-idf/lvgl/liblvgl.a "$lvgl_library_path/Binary/"
|
|
find_target_dir="$build_dir/$lvgl_library_path"
|
|
cd Libraries/lvgl
|
|
find src/ -name '*.h' | cpio -pdm "$find_target_dir/Include"
|
|
cd -
|
|
cp Libraries/lvgl/lvgl.h "$find_target_dir/Include"
|
|
cp Libraries/lvgl/lv_version.h "$find_target_dir/Include"
|
|
cp Libraries/lvgl/LICENCE.txt "$lvgl_library_path/LICENSE.txt"
|
|
cp Libraries/lvgl/src/lv_conf_kconfig.h "$lvgl_library_path/Include/lv_conf.h"
|
|
|
|
# elf_loader
|
|
elf_loader_library_path="$library_path/elf_loader"
|
|
mkdir -p "$elf_loader_library_path"
|
|
cp Libraries/elf_loader/elf_loader.cmake "$elf_loader_library_path/"
|
|
cp Libraries/elf_loader/license.txt "$elf_loader_library_path/"
|
|
|
|
cp Buildscripts/CMake/TactilitySDK.cmake "$target_path/"
|
|
cp Buildscripts/CMake/CMakeLists.txt "$target_path/"
|
|
printf '%s' "$ESP_IDF_VERSION" >> "$target_path/idf-version.txt"
|