Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07e4b7d170 |
No files matched your search
@@ -13,20 +13,20 @@ check_firmware_capabilities.py accepts capabilities listed in
|
||||
MESHCORE_LOCAL_OMIT_CAPABILITIES as deliberately omitted, and fails if a
|
||||
listed one is still present.
|
||||
---
|
||||
local_build.sh | 17 +++++++++++++++++
|
||||
local_build.sh | 20 ++++++++++++++++++++
|
||||
scripts/check_firmware_capabilities.py | 19 +++++++++++++++++++
|
||||
2 files changed, 36 insertions(+)
|
||||
2 files changed, 39 insertions(+)
|
||||
|
||||
diff --git a/local_build.sh b/local_build.sh
|
||||
index 5f0987a0d..ff30faeb4 100755
|
||||
index 5f0987a0d..839950b90 100755
|
||||
--- a/local_build.sh
|
||||
+++ b/local_build.sh
|
||||
@@ -37,6 +37,23 @@ case "${2:-}" in
|
||||
@@ -37,6 +37,26 @@ case "${2:-}" in
|
||||
*companion*) LOCAL_BUILD_FLAGS="${LOCAL_BUILD_FLAGS} -DBLE_PIN_CODE=123456" ;;
|
||||
esac
|
||||
|
||||
+# Hazelwood RAK4631 repeaters (KM-Test, Treebeard): no display, GPS, INA, RS232
|
||||
+# or KISS host; Treebeard's only sensor is a RAK1901 (SHTC3). Dropping the rest
|
||||
+# Hazelwood RAK4631 repeaters (KM-Test, Treebeard): no display, GPS, INA, RS232,
|
||||
+# KISS host or radio presets; Treebeard's only sensor is a RAK1901 (SHTC3). Dropping the rest
|
||||
+# shrinks the image by ~100 KB, which leaves more in-place room for LoRa OTA
|
||||
+# deltas. The env name must stay as is: it is the OTA target id (05F5FFAE).
|
||||
+# Upstream qualification still expects these features from the env name, so
|
||||
@@ -34,6 +34,9 @@ index 5f0987a0d..ff30faeb4 100755
|
||||
+case "${2:-}" in
|
||||
+ RAK_4631_repeater_unified_lora_ota)
|
||||
+ LOCAL_BUILD_FLAGS="${LOCAL_BUILD_FLAGS} -UDISPLAY_CLASS -UENV_INCLUDE_GPS -UWITH_RS232_BRIDGE -UMESH_ENABLE_HOST_KISS"
|
||||
+ # Named radio presets and the optional OTA transfer diagnostics (CLI) aren't
|
||||
+ # used here; leaving them out keeps the image, and so its OTA deltas, smaller.
|
||||
+ LOCAL_BUILD_FLAGS="${LOCAL_BUILD_FLAGS} -DMESH_ENABLE_RADIO_PRESETS=0 -DOTA_TRANSFER_DIAGNOSTICS=0"
|
||||
+ for sensor in AHTX0 BME280 BME680 BME680_BSEC BMP085 BMP280 INA219 INA226 INA260 INA3221 LPS22HB MLX90614 RAK12035 SHT4X VL53L0X; do
|
||||
+ LOCAL_BUILD_FLAGS="${LOCAL_BUILD_FLAGS} -UENV_INCLUDE_${sensor}"
|
||||
+ done
|
||||
|
||||
@@ -8,23 +8,27 @@ Builds on newer upstream code kept the same -hz.N label because N counted
|
||||
only local commits, so KM-Test's v1.18.0.2-hz.1 and the CI release of a
|
||||
later upstream were indistinguishable. The identifier is now -hz.U.L: U
|
||||
upstream commits past the version tag, L local firmware-code commits.
|
||||
|
||||
U counts from the earliest tag carrying the version, so a later tag on the
|
||||
same version (w12-v1.18.0.2-preview3 after the alphas) does not reset it and
|
||||
make newer builds sort as older.
|
||||
---
|
||||
local_build.sh | 18 +++++++++++++-----
|
||||
local_build.sh | 26 +++++++++++++++++++++-----
|
||||
local_version.py | 2 +-
|
||||
2 files changed, 14 insertions(+), 6 deletions(-)
|
||||
2 files changed, 22 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/local_build.sh b/local_build.sh
|
||||
index ff30faeb4..73d66f912 100755
|
||||
index 839950b90..edfb3a027 100755
|
||||
--- a/local_build.sh
|
||||
+++ b/local_build.sh
|
||||
@@ -68,9 +68,12 @@ cd "$(dirname "$0")"
|
||||
@@ -71,9 +71,12 @@ cd "$(dirname "$0")"
|
||||
# VERSION follows the fork's own numbering: the highest vX.Y.Z.W tag reachable
|
||||
# from HEAD (e.g. v1.17.1.10 from rak4631-full-companion-v1.17.1.10-preview3).
|
||||
# Local code changes add an identifier; build settings (untracked files) don't:
|
||||
-# -hz.N N of your own commits that change firmware code relative to the
|
||||
-# maintainer's fork (upstream/keymindCascade; origin is the personal
|
||||
-# Gitea copy, so @{upstream} would hide them)
|
||||
+# -hz.U.L U upstream commits past the vX.Y.Z.W tag(s) in the maintainer's fork
|
||||
+# -hz.U.L U upstream commits past the first vX.Y.Z.W tag in the maintainer's fork
|
||||
+# (upstream/keymindCascade; origin is the personal Gitea copy, so
|
||||
+# @{upstream} would hide them) and L of your own commits that change
|
||||
+# firmware code. U grows with every upstream pull, so builds on newer
|
||||
@@ -33,17 +37,25 @@ index ff30faeb4..73d66f912 100755
|
||||
# .dirty uncommitted edits to tracked firmware code
|
||||
# Merge commits and the build-setup files below don't count: they change
|
||||
# settings, not code. Edit LOCAL_FW_SETUP_PATHS if you add more setup files.
|
||||
@@ -90,8 +93,13 @@ LOCAL_FW_SETUP_PATHS=":(exclude)local_build.sh :(exclude)local_version.py :(excl
|
||||
@@ -93,8 +96,21 @@ LOCAL_FW_SETUP_PATHS=":(exclude)local_build.sh :(exclude)local_version.py :(excl
|
||||
# shellcheck disable=SC2086 # intentional word-splitting of the pathspec list
|
||||
local_commits=$(git rev-list --count --no-merges "${LOCAL_FW_UPSTREAM_REF}..HEAD" \
|
||||
-- . $LOCAL_FW_SETUP_PATHS 2>/dev/null || echo 0)
|
||||
-if [ "$local_commits" -gt 0 ]; then
|
||||
- local_id="-hz.${local_commits}"
|
||||
+# Every tag carrying this version is excluded, so U counts from the newest of them.
|
||||
+# U counts from the earliest tag carrying this version (the one furthest back), so
|
||||
+# it only grows: a later tag on the same version (e.g. a new preview) doesn't reset it.
|
||||
+upstream_base=$(git merge-base HEAD "${LOCAL_FW_UPSTREAM_REF}" 2>/dev/null || git rev-parse HEAD)
|
||||
+# shellcheck disable=SC2046 # one ^tag argument per tag
|
||||
+upstream_commits=$(git rev-list --count "$upstream_base" \
|
||||
+ $(git tag --merged "$upstream_base" | grep -F "v${fork_version}" | sed 's/^/^/') 2>/dev/null || echo 0)
|
||||
+version_tags=$(git tag --merged "$upstream_base" | grep -F "v${fork_version}" || true)
|
||||
+if [ -z "$version_tags" ]; then
|
||||
+ upstream_commits=$(git rev-list --count "$upstream_base" 2>/dev/null || echo 0)
|
||||
+else
|
||||
+ upstream_commits=0
|
||||
+ for tag in $version_tags; do
|
||||
+ n=$(git rev-list --count "$upstream_base" "^$tag" 2>/dev/null || echo 0)
|
||||
+ [ "$n" -gt "$upstream_commits" ] && upstream_commits=$n
|
||||
+ done
|
||||
+fi
|
||||
+if [ "$upstream_commits" -gt 0 ] || [ "$local_commits" -gt 0 ]; then
|
||||
+ local_id="-hz.${upstream_commits}.${local_commits}"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user