Skip to content

Commit be88fea

Browse files
committed
step
1 parent c54658f commit be88fea

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

extra/artifacts/zephyr_unoq.exc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libraries/Ethernet
2-
libraries/Storage
3-
libraries/WiFi
4-
libraries/Zephyr_SDRAM
1+
libraries/Ethernet/
2+
libraries/Storage/
3+
libraries/WiFi/
4+
libraries/Zephyr_SDRAM/

extra/package_core.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ cat platform.txt > ${TEMP_PLATFORM}
5959
sed -ie "s/^version=.*/version=$(extra/get_core_version.sh)/" ${TEMP_PLATFORM}
6060

6161
declutter_file() {
62-
# remove comments and empty lines
62+
# remove comments, whitespace at EOL, '/' dir terminators and empty lines
6363
[ -f "$1" ] || return 0
64-
cat "$1" | sed -e 's/\s*#.*//' | grep -v '^\s*$'
64+
cat "$1" | sed -e 's/\s*#.*//' -e 's/\s*$//' -e 's/\/$//' | grep -v '^\s*$'
6565
}
6666

6767
# create the list of files and directories to include
@@ -70,6 +70,7 @@ echo ${TEMP_BOARDS} >> ${TEMP_INC}
7070
echo ${TEMP_PLATFORM} >> ${TEMP_INC}
7171
declutter_file extra/artifacts/_common.inc >> ${TEMP_INC}
7272
declutter_file extra/artifacts/$ARTIFACT.inc >> ${TEMP_INC}
73+
declutter_file extra/artifacts/$ARTIFACT.only >> ${TEMP_INC}
7374
for variant in $INCLUDED_VARIANTS ; do
7475
echo "- ${variant}"
7576
echo "variants/${variant}/" >> ${TEMP_INC}
@@ -84,6 +85,9 @@ done
8485
TEMP_EXC=$(mktemp -p . | sed 's/\.\///')
8586
declutter_file extra/artifacts/_common.exc >> ${TEMP_EXC}
8687
declutter_file extra/artifacts/$ARTIFACT.exc >> ${TEMP_EXC}
88+
for f in ls extra/artifacts/*.only | grep -v "$ARTIFACT.only" ; do
89+
declutter_file $f >> ${TEMP_EXC}
90+
done
8791

8892
mkdir -p $(dirname ${OUTPUT_FILE})
8993
tar -cjhf ${OUTPUT_FILE} -X ${TEMP_EXC} -T ${TEMP_INC} \

0 commit comments

Comments
 (0)