10 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
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
ed0292d4e9 Linuxize: Eliminate "-" in the generated patch names.
Allow users of the script to specify any patch name prefix, and users can
still specify "-" when they want. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2015-06-16 14:47:22 +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
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
b83c59cdca Linuxize: Add local declarations for script subfunctions.
All functions defined for the linuxizing scripts lack "local"
declarations.  This patch adds "local" for all such variables.  No
functional changes.  Lv Zheng.
2013-09-27 08:10:00 -07: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
Robert Moore
ac4b505600 Linux scripts: Update file permissions to add execute.
Simple change to add execute permission as the default.
2013-08-23 08:19:18 -07:00
Robert Moore
e4eeff5dba Linuxize scripts: Add an ACPICA release library.
This patch removes deprecated generate/linux/patches folder, moves useful
release scripts to the generate/linux folder, reduces code redundancy by
creating a script library libacpica.sh file under generate/linux folder.
Lv Zheng.
2013-08-22 08:33:00 -07:00