<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/BaseTools/Scripts/BinToPcd.py, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2024-08-01T11:04:09+00:00</updated>
<entry>
<title>BaseTools/Scripts/BinToPcd.py: Update regex strings to use raw strings.</title>
<updated>2024-08-01T11:04:09+00:00</updated>
<author>
<name>Antaeus Kleinert-Strand</name>
<email>59579659+antklein@users.noreply.github.com</email>
</author>
<published>2023-10-26T22:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=71b9bda1ace32a479d471f26b0e516d0618053bc'/>
<id>urn:sha1:71b9bda1ace32a479d471f26b0e516d0618053bc</id>
<content type='text'>
With Python 3.12 invalid escape sequences now generate warning messages.
This change fixes the problem exposed by the warning message.

```
BaseTools/Scripts\BinToPcd.py:40: SyntaxWarning: invalid escape sequence
BaseTools\Scripts\BinToPcd.py:46: SyntaxWarning: invalid escape sequence
```

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: BinToPcd: Remove xdrlib dependency</title>
<updated>2024-06-30T23:45:58+00:00</updated>
<author>
<name>Joey Vagedes</name>
<email>joey.vagedes@gmail.com</email>
</author>
<published>2024-06-26T21:04:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8c09d862bfb034e00b6b3bc37fe37243c866dd3a'/>
<id>urn:sha1:8c09d862bfb034e00b6b3bc37fe37243c866dd3a</id>
<content type='text'>
The xdrlib dependency was removed in commit
5cadb8ce2148979b6c464f6da5a8cd97425c5165 but the actual import of the
module was not removed. This commit removes the import of xdrlib and
sorts the imports.

Signed-off-by: Joey Vagedes &lt;joey.vagedes@gmail.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: BinToPcd: Resolve xdrlib deprecation</title>
<updated>2023-08-02T05:23:00+00:00</updated>
<author>
<name>Joey Vagedes</name>
<email>joey.vagedes@gmail.com</email>
</author>
<published>2023-06-27T16:27:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5cadb8ce2148979b6c464f6da5a8cd97425c5165'/>
<id>urn:sha1:5cadb8ce2148979b6c464f6da5a8cd97425c5165</id>
<content type='text'>
Removes the dependency on xdrlib and replaces it with custom logic to
pack a per the xdr requirements. Necessary as xdrlib is being deprecated
in python 3.13.

Cc: Rebecca Cran &lt;rebecca@bsdio.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Bob Feng &lt;bob.c.feng@intel.com&gt;
Cc: Yuwei Chen &lt;yuwei.chen@intel.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Joey Vagedes &lt;joeyvagedes@gmail.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: Replace BSD License with BSD+Patent License</title>
<updated>2019-04-09T16:10:20+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2019-04-03T23:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2e351cbe8e190271b3716284fc1076551d005472'/>
<id>urn:sha1:2e351cbe8e190271b3716284fc1076551d005472</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=1373

Replace BSD 2-Clause License with BSD+Patent License.  This change is
based on the following emails:

  https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
  https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html

RFCs with detailed process for the license change:

  V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
  V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
  V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Bob Feng &lt;bob.c.feng@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/BinToPcd: Open output file as text file</title>
<updated>2018-08-06T02:48:35+00:00</updated>
<author>
<name>Kinney, Michael D</name>
<email>/o=Intel/ou=Americas01/cn=Workers/cn=Kinney, Michael D</email>
</author>
<published>2018-08-03T20:47:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=cd3a42640acdb4f5ac14ac19f22ede002124920c'/>
<id>urn:sha1:cd3a42640acdb4f5ac14ac19f22ede002124920c</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=1069

Undo changes from following commit:

https://github.com/tianocore/edk2/commit/83964ebc5e74549d6efc7134af19150a0b2079aa

Change the open mode for the output file from 'wb' to 'w' so the
output file is written as a text file and not a binary file.

This resolves the issue where the text file was not writable from
Python 3.x and also removes b'' from output file when the string
was encoded as a bytearray.

Cc: YanYan Sun &lt;yanyan.sun@intel.com&gt;
Cc: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Tested-by:YanYan Sun &lt;yanyan.sun@intel.com&gt;
Reviewed-by: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/BinToPcd: Encode string returned from ByteArray()</title>
<updated>2018-08-03T01:42:27+00:00</updated>
<author>
<name>Kinney, Michael D</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2018-08-02T21:22:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=83964ebc5e74549d6efc7134af19150a0b2079aa'/>
<id>urn:sha1:83964ebc5e74549d6efc7134af19150a0b2079aa</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=1069

The ByteArray() method returns a string with the hex bytes of
a PCD value.  Make sure the string is always encoded as a string,
so it can be used to build a complete PCD statement string and be
written out to a file.  This change is required for Python 3.x
compatibility.

Cc: YanYan Sun &lt;yanyan.sun@intel.com&gt;
Cc: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue</title>
<updated>2018-08-01T22:27:56+00:00</updated>
<author>
<name>Kinney, Michael D</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2018-07-31T16:24:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=76c09700edc67686b29662e81a3ca7d947594ce5'/>
<id>urn:sha1:76c09700edc67686b29662e81a3ca7d947594ce5</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=1042

Convert Buffer to type bytearray before converting to a
string of hex byte values so the type of items in Buffer is
consistent for both Python 2.7.x and Python 3.x.

Cc: YanYan Sun &lt;yanyan.sun@intel.com&gt;
Cc: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: Adjust the spaces around commas and colons</title>
<updated>2018-06-27T08:33:25+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2018-06-25T10:31:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ccaa7754a29728df0a7485932aab4909f6be116a'/>
<id>urn:sha1:ccaa7754a29728df0a7485932aab4909f6be116a</id>
<content type='text'>
Based on "futurize -f lib2to3.fixes.fix_ws_comma"

Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
Reviewed-by: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: Refactor python print statements</title>
<updated>2018-06-27T08:33:21+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2018-06-25T10:31:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=72443dd25014a8b6209895640af36dec33da51e0'/>
<id>urn:sha1:72443dd25014a8b6209895640af36dec33da51e0</id>
<content type='text'>
Refactor print statements to be compatible with python 3.
Based on "futurize -f libfuturize.fixes.fix_print_with_import"

Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
Reviewed-by: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/BinToPcd: Follow PEP-8 indent of 4 spaces</title>
<updated>2018-06-14T22:43:40+00:00</updated>
<author>
<name>Kinney, Michael D</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2018-06-09T05:35:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0c805f4f8fe705d7c40c32afb2d09a26bc956ee1'/>
<id>urn:sha1:0c805f4f8fe705d7c40c32afb2d09a26bc956ee1</id>
<content type='text'>
https://www.python.org/dev/peps/pep-0008/

Cc: Yanyan Sun &lt;yanyan.sun@intel.com&gt;
Cc: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Contributed-under: TianoCore Contribution Agreement 1.1
Reviewed-by: Yonghong Zhu &lt;yonghong.zhu@intel.com&gt;
</content>
</entry>
</feed>
