Skip to content

Commit 5fbd8a3

Browse files
committed
extra/package.sh: rename to package_core, exclude unwanted files
1 parent e8606ed commit 5fbd8a3

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/package_core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
run: |
4848
./extra/build_all.sh -f
4949
50-
- name: Package
50+
- name: Package core
5151
run: |
52-
./extra/package.sh ${{ env.CORE_TAG }}
52+
./extra/package_core.sh ${{ env.CORE_TAG }}
5353
5454
- name: Archive core
5555
uses: actions/upload-artifact@v4

extra/package_core.exc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file contains all the files that must *never* be added to core package
2+
# archives. Excluding a file here has precedence over files listed in the
3+
# 'package.inc' list or automatically included by the 'package.sh' script.
4+
5+
CMakeLists.txt
6+
llext-edk/Makefile.cflags
7+
llext-edk/cmake.cflags
File renamed without changes.

extra/package.sh renamed to extra/package_core.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -z "$1" ]; then
88
fi
99

1010
if [ ! -f platform.txt ]; then
11-
echo "Launch this script from the root core folder as ./extra/package.sh VERSION"
11+
echo "Launch this script from the root core folder as ./extra/package_core.sh VERSION"
1212
exit 2
1313
fi
1414

@@ -18,7 +18,7 @@ VERSION=$1
1818
TEMP_LIST=$(mktemp)
1919

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

2323
# add the board-specific files
2424
extra/get_board_details.sh | jq -cr '.[]' | while read -r item; do
@@ -27,5 +27,5 @@ extra/get_board_details.sh | jq -cr '.[]' | while read -r item; do
2727
ls firmwares/zephyr-${variant}.* >> ${TEMP_LIST}
2828
done
2929
cat ${TEMP_LIST}
30-
tar -cjhf ${PACKAGE}-${VERSION}.tar.bz2 -T ${TEMP_LIST} --transform "s,^,${PACKAGE}/,"
30+
tar -cjhf ${PACKAGE}-${VERSION}.tar.bz2 -X extra/package_core.exc -T ${TEMP_LIST} --transform "s,^,${PACKAGE}/,"
3131
rm -f ${TEMP_LIST}

0 commit comments

Comments
 (0)