9 Commits

Author SHA1 Message Date
Lv Zheng
36884941bd Linuxize: Refine commit ID handling
The previous fix only helps to restore release automation, but the
generated Linux upstream patch contains wrong formatted commit links. This
patch enhances the previous fix by splitting commit name from full commit
ID. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2016-12-27 15:46:27 +08:00
Lv Zheng
bfb70f26ce linuxize: cut commit ID now has conflicts breaking linuxize process
Following error can be seen in linuxize process:
  error: short SHA1 07630ad9 is ambiguous.
  error: short SHA1 07630ad9 is ambiguous.
  fatal: ambiguous argument '07630ad9': unknown revision or path not in the working tree.
  Use '--' to separate paths from revisions
Fixing this by stop cutting commit IDs into 8-digits.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2016-12-09 16:02:37 +08:00
Lv Zheng
e97f20f3d6 Fix ACPICA release issues for recent distros
Several issues were found in recent cygwin/ubuntu distros:

1. Newer git implements "-c" with different meaning, removes it;
2. "tempfile" is mostly debian specific command, replaces it with
   "mktemp -u", the latter is more portable.

Singed-off-by: Lv Zheng <lv.zheng@intel.com>
2016-10-14 22:09:39 +08:00
Lv Zheng
8a51692d6e Linuxize: Fix several issues in the gen-patch.sh.
It is detected by Paul that the generated patch contains Data instead of
Date. Also we need "Fixed-by" and "Original-by" keywords for SOB blocks.

Reported-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2015-01-27 09:48:05 +08:00
Lv Zheng
a612f666bd Linuxize: Add upstream commit ID in the generated patches.
This patch adds support to add ACPICA upstream Commit ID/Author in the
generated linuxized patches. This format follows Linux stable material
format. The modifications include:
1. distiguish COMMITTER, AUTHOR, MAINTAINER:
   1. COMMITTER is automatically extracted using "git config --get";
   2. AUTHOR is automatically extracted using "git log --format=%aN <%aE>";
   3. MAINTAINER is fixed in make-patches.sh, currently it is
      "Bob Moore <robert.moore@intel.com>".
2. add AUTHOR and COMMIT ID information to form the ACPICA release patch
   header.
3. automatically correct "Robert Moore <Robert.Moore@intel.com>" to
   "Bob Moore <bob.moore@intel.com>".
4. automatically remove last empty lines in the patch description.
5. automatically append unique Signed-off-by for AUTHOR, NAINTAINER and
   COMMITTER.
6. automatically add commit URL before SOBs and add "-l" option to be ready
   for changing the host of the repo.
7. fix the issue that the default "commit ID" for gen-patch.sh is not
   implemented.
8. distiguish upstream generation and local generation using "-u" option.
The generated patch format with upstream commit ID is ACKed by the Linux
ACPI maintainer. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-12-11 14:28:21 +08:00
Robert Moore
3f4da4257d AcpiSrc: Add support for patch files.
This change add support to invoke necessary conversions on patch
descriptions in the release process so that human intervention can be reduced.

After applying, data types/structures and mixed case words will be
converted.  It reduces human intervention greatly but we still need to
check the URL address fields (From/Signed-off-by/Buglink/Reported-by/
Tested-by/Original-by/etc.) after conversion as there are low
possibilities that they are matched to the target conversion types.
Lv Zheng.
2014-01-10 14:06:33 -08:00
Robert Moore
1097e067b9 Linux: Consistently use the bash shell for linuxize scripts.
This patch changes "sh" to "bash" as there are only limitted
shell clones tested for the linuxize scripts.  Lv Zheng.
2013-11-14 08:43:05 -08:00
Robert Moore
ef9997164a Update scripts to use "." instead of "source".
Improves portability of the various scripts. Lv Zheng.
2013-11-08 08:11:48 -08:00
Robert Moore
a7b23d6256 Linuxize: Split git-extract.sh into two scripts.
This patch splits git-extract.sh so that the changes made in the
scripts can be linuxized into patches. Lv Zheng.
2013-09-18 12:41:12 -07:00