[rcw][PATCH 3/3] rcw.py: Append to pbi with a bytestring

Sean Anderson <[email protected]> Tue, 5 Apr 2022 12:35:05 -0400
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <[email protected]>
Regular strings cannot be concatenated with byte strings. This fixes the
following error:

> TypeError: can't concat str to bytes

Fixes: 7c47f30 ("Add support of Gen3 family SoCs")
Signed-off-by: Sean Anderson <[email protected]>
---

 rcw.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rcw.py b/rcw.py
index 42a11dc..fc58238 100755
--- a/rcw.py
+++ b/rcw.py
@@ -855,7 +855,7 @@ def create_source():
         l = len(pbi)
         # Deal reasonably with broken PBIs with, e.g., an extra LF
         # at the end
-        pbi += "\0\0\0"
+        pbi += b"\0\0\0"
         l += 3;
         l &= ~3;
         source += "\n.pbi\n"
-- 
2.35.1.1320.gc452695387.dirty