Skip to content

Commit 50953e1

Browse files
committed
package_core: update version in platform.txt, mark core as BETA
1 parent e274dd4 commit 50953e1

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

extra/package_core.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# to any core package archive.
33
#
44
# NOTE: board-specific entries in the 'firmwares/' and 'variants/' directories
5-
# are automatically added by package.sh depending on the information in
6-
# 'boards.txt', so they should not be included here.
5+
# are automatically added by package_core.sh depending on the information
6+
# in 'boards.txt', so they should not be included here.
77

88
boards.txt
9-
platform.txt
9+
# platform.txt is added by package_core.sh
1010
programmers.txt
1111
LICENSE
1212
README.md

extra/package_core.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ fi
1515
PACKAGE=ArduinoCore-zephyr
1616
VERSION=$1
1717

18+
# create a temporary platform.txt file with the correct version
19+
TEMP_PLATFORM=$(mktemp -p . | sed 's/\.\///')
20+
sed -e "s/^version=.*/version=${VERSION}/" platform.txt > ${TEMP_PLATFORM}
21+
1822
TEMP_LIST=$(mktemp)
23+
echo ${TEMP_PLATFORM} > ${TEMP_LIST}
1924

2025
# import a basic list of files and directories
21-
cat extra/package_core.inc | sed -e 's/\s*#.*//' | grep -v '^\s*$' > ${TEMP_LIST}
26+
cat extra/package_core.inc | sed -e 's/\s*#.*//' | grep -v '^\s*$' >> ${TEMP_LIST}
2227

2328
# add the board-specific files
2429
extra/get_board_details.sh | jq -cr '.[]' | while read -r item; do
@@ -28,5 +33,5 @@ extra/get_board_details.sh | jq -cr '.[]' | while read -r item; do
2833
done
2934
cat ${TEMP_LIST}
3035
mkdir -p distrib
31-
tar -cjhf distrib/${PACKAGE}-${VERSION}.tar.bz2 -X extra/package_core.exc -T ${TEMP_LIST} --transform "s,^,${PACKAGE}/,"
32-
rm -f ${TEMP_LIST}
36+
tar -cjhf distrib/${PACKAGE}-${VERSION}.tar.bz2 -X extra/package_core.exc -T ${TEMP_LIST} --transform "s,${TEMP_PLATFORM},platform.txt," --transform "s,^,${PACKAGE}/,"
37+
rm -f ${TEMP_LIST} ${TEMP_PLATFORM}

extra/zephyr-core-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"platforms": [
55
{
6-
"name": "Arduino Zephyr Boards",
6+
"name": "Arduino Zephyr Boards (BETA)",
77
"architecture": "zephyr",
88
"version": "__CORE_TAG__",
99
"category": "Arduino",

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Arduino Zephyr llext Core and platform.
1+
# Arduino Zephyr (BETA) Core and platform.
22
#
33
# For more info:
44
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
55

6-
name=Arduino Zephyr Boards
6+
name=Arduino Zephyr Boards (BETA)
77
version=9.9.9
88

99
# Compile variables

0 commit comments

Comments
 (0)