Skip to content

Instantly share code, notes, and snippets.

@sameo
Last active November 29, 2018 14:43
Show Gist options
  • Save sameo/8e8aeb62ea7567301c5d97ea9fd3937f to your computer and use it in GitHub Desktop.
Save sameo/8e8aeb62ea7567301c5d97ea9fd3937f to your computer and use it in GitHub Desktop.
QEMU upstream submission scripts

Get maintainers

git diff --cached | ./scripts/get_maintainer.pl --nol | cut -d '(' -f 1 | awk '$0="Cc: "$0' | sed -e 's/[[:space:]]*$//'

git-request-pull

git request-pull upstream/master https://github.com/intel/nemu topic/upstream/acpi

git-format-patch

git format-patch --cover upstream/master -v2 -o upstream-`date +%Y-%m-%d-%H-%M`

git-send-email

git send-email --suppress-cc=self --to=qemu-devel@nongnu.org upstream-`date +%Y-%m-%d-%H`

git-publish

git publish --suppress-cc=self --base topic/upstream/master

git-backport-diff

git backport-diff -r origin/master..review_sameo_acpi_v4 -u review_sameo_acpi_v3

checkpatch

for i in ls upstream-2018-11-01-10-55/*.patch; do ./scripts/checkpatch.pl $i; done

Tests

make check

ACPI tests

make check-qtest-x86_64 GTESTER_OPTIONS="-p /x86_64/acpi

Checklist

  • for i in ls upstream-2018-11-01-10-55/*.patch; do ./scripts/checkpatch.pl $i; done
  • ./configure && make -j nproc
  • ./minimal-qemu-pc-userspace.sh
  • git send-email --dry-run --suppress-cc=self --to=qemu-devel@nongnu.org upstream-date +%Y-%m-%d-%H``
  • git send-email --suppress-cc=all --to=samuel.ortiz@intel.com upstream-date +%Y-%m-%d-%H``
  • Patch set version
  • backport-diff addition
  • make check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment