Skip to content

Commit

Permalink
Merge kirkstone-next into kirkstone
Browse files Browse the repository at this point in the history
  • Loading branch information
merchelmtq committed Aug 10, 2023
2 parents e48b570 + 3c3737a commit 43b35fe
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 159 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@ files in git the submodule for meta-tq (meta layers meta-tq and meta-dumpling).

## Next Release

## kirkstone.TQ.ARM.BSP.0009

### Module BSP Revisions

* kirkstone.TQMa8.BSP.SW.0092

### Fixed

* meta-tq:
* TQMa8x/TQMa8Xx[4,S]: fix LPI2C driver in linux-imx-tq 5.15


### Changed

* meta-tq:
* TQMa8x/TQMa8Xx[4,S]: update SCU to new version (no functional change)
* TQMLS104xA / TQMLS1088A: update to kernel based on 6.1.y
* TQMLS104xA / TQMLS1088A: recipe adjusments for linux 6.1.y

## kirkstone.TQ.ARM.BSP.0008

### Module BSP Revisions
Expand Down
55 changes: 34 additions & 21 deletions ci/git-archive-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
#
###############################################################################

# DEBUGGING
### set -e
set -e
set -C # noclobber

# TRAP SIGNALS
trap 'cleanup' QUIT EXIT

trap 'error_abort $LINENO' ERR

# For security reasons, explicitly set the internal field separator
# to newline, space, tab
OLD_IFS=$IFS
Expand Down Expand Up @@ -64,11 +65,25 @@ function cleanup () {
return 0
}

function error_abort () {
echo "error at $1"
cleanup
}

function debug() {
[ ${VERBOSE} -eq 1 ] && echo $@
return 0
}

function error () {
echo $1 >&2
}

function exit_error () {
error "$2"
exit $1
}

function usage () {
echo "Usage is as follows:"
echo
Expand Down Expand Up @@ -113,7 +128,9 @@ function version () {
}

function rm_file () {
[ -f ${1} ] && rm ${1}
if [ -f ${1} ]; then
rm -f ${1}
fi
}

function main () {
Expand Down Expand Up @@ -185,12 +202,11 @@ function main () {

# Validate parameters; error early, error often.
if [ ${SEPARATE} -eq 1 -a ! -d ${OUT_FILE} ]; then
echo "When creating multiple archives, your destination must be a directory."
echo "If it's not, you risk being surprised when your files are overwritten."
error "When creating multiple archives, your destination must be a directory."
error "If it's not, you risk being surprised when your files are overwritten."
exit -1
elif [ `git config -l | grep -q '^core\.bare=false'; echo $?` -ne 0 ]; then
echo "${PROGRAM} must be run from a git working copy (i.e., not a bare repository)."
exit -2
exit_error -2 "${PROGRAM} must be run from a git working copy (i.e., not a bare repository)."
fi

if [ "${TREEISH}" == "${COMMIT}" ]; then
Expand All @@ -201,21 +217,17 @@ function main () {
HEAD_STAMP=$(git log -1 --pretty=%H);
COMMIT_STAMP=$(git log ${COMMIT} -1 --pretty=%H);
if [ "$HEAD_STAMP" != "${COMMIT}_STAMP" ]; then
echo -n "temp branch is currently in use but is not what should be archived, give up ...";
exit -3;
exit_error -3 "temp branch is currently in use but is not what should be archived, give up ...";
fi
echo -n "use current branch HEAD ...";
else
echo "check for tmp_release_${COMMIT} ..."
git branch | grep "tmp_release_${COMMIT}" > /dev/null;
ret=$?
echo "ret $ret ..."
if [ $ret -eq 0 ]; then
if git branch | grep "tmp_release_${COMMIT}" > /dev/null; then
echo "tmp_release_${COMMIT} exists ..."
HEAD_STAMP=$(git log "tmp_release_${COMMIT}" -1 --pretty=%H);
COMMIT_STAMP=$(git log ${COMMIT} -1 --pretty=%H);
if [ "$HEAD_STAMP" != "${COMMIT}_STAMP" ]; then
echo "temp branch exists but is not what should be archived, give up ...";
error "temp branch exists but is not what should be archived, give up ...";
git log "tmp_release_${COMMIT}" -1 --pretty=%H;
git log ${COMMIT} -1 --pretty=%H;
exit -4;
Expand All @@ -239,9 +251,9 @@ function main () {

rm_file "${TMPDIR}/$(basename "$(pwd)").${FORMAT}"

git archive --format=${FORMAT} --prefix="$PREFIX" ${TREEISH} > ${TMPDIR}/$(basename "$(pwd)").${FORMAT}

debug "done"
if ! git archive --format="${FORMAT}" --prefix="${PREFIX}" ${TREEISH} > "${TMPDIR}/$(basename "$(pwd)").${FORMAT}"; then
error_exit -6 "creating superproject archive failed"
fi

echo ${TMPDIR}/$(basename "$(pwd)").${FORMAT} >| ${TMPFILE} # clobber on purpose
superfile=$(head -n 1 ${TMPFILE})
Expand Down Expand Up @@ -317,9 +329,11 @@ function main () {
# TODO: SEPARATE=1 case not tested - should fail???
#
while read file; do
mv "$file" "${OUT_FILE}"
if [ $DO_TARGZ -eq 1 ]; then
gzip "${OUT_FILE}";
mv "${file}" "${OUT_FILE}"
if [ "${DO_TARGZ}" -eq "1" ]; then
if ! gzip "${OUT_FILE}"; then
exit_error -5 "gzip error for ${OUT_FILE}, give up ..."
fi
fi
done < ${TMPFILE}

Expand Down Expand Up @@ -347,4 +361,3 @@ function main () {
}

main "$@"
# exit $?
21 changes: 18 additions & 3 deletions ci/git-revision-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
# Usage:
# git-revision-name.sh [ PREFERRED-TAG ]

# DEBUGGING
### set -e
set -e
set -C # noclobber

# For security reasons, explicitly set the internal field separator
Expand All @@ -23,9 +22,24 @@ OLD_IFS="$IFS"
IFS='
'

# TRAP SIGNALS
trap 'cleanup' QUIT EXIT

trap 'error_abort $LINENO' ERR

function cleanup () {
IFS="${OLD_IFS}"
return 0
}

function error_abort () {
cleanup
echo "error at $1"
}

# Internal variables and initializations.
readonly PROGRAM="$(basename "$0")"
readonly VERSION=0.2
readonly VERSION=0.3

# Create a place to store our work's progress
function main () {
Expand All @@ -49,6 +63,7 @@ function main () {
else
STAMP="git-g${GITHEAD:0:12}"
fi

echo "${STAMP}"
}

Expand Down
88 changes: 0 additions & 88 deletions ci/poky-version-check.sh

This file was deleted.

0 comments on commit 43b35fe

Please sign in to comment.