Skip to content

Commit

Permalink
Updated compressing binary in A15.
Browse files Browse the repository at this point in the history
In A15, its using gzip binary instead of minigzip.

Tests: Prepared EB, it is successfull.

Author Tracked-On: NA
Author Signed-off-by: Ankit Agarwal <[email protected]>

Tracked-On: OAM-124594
Signed-off-by: Tanuj Tekriwal <[email protected]>
  • Loading branch information
ankithbti52509 authored and tanujtekriwal committed Sep 11, 2024
1 parent 516c4ea commit b48061c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions releasetools/intel_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def GetFastbootImage(unpack_dir, info_dict=None):
shutil.rmtree(ramdisk_tmp)
raise exc

cmd2 = ["minigzip"]
cmd2 = ["gzip"]
try:
p2 = common.Run(
cmd2, stdin=p1.stdout, stdout=ramdisk_img.file.fileno())
Expand All @@ -613,7 +613,7 @@ def GetFastbootImage(unpack_dir, info_dict=None):
p2.communicate()
p1.wait()
assert p1.returncode == 0, "mkbootfs of fastboot ramdisk failed"
assert p2.returncode == 0, "minigzip of fastboot ramdisk failed"
assert p2.returncode == 0, "gzip of fastboot ramdisk failed"

# use MKBOOTIMG from environ, or "mkbootimg" if empty or not set
mkbootimg = os.getenv('MKBOOTIMG') or "mkbootimg"
Expand Down
4 changes: 2 additions & 2 deletions tasks/liveimage.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $(live_ramdisk): \
$(INSTALLED_RAMDISK_TARGET) \
$(MKBOOTFS) \
$(live_initrc) \
| $(MINIGZIP) $(ACP) \
| $(GZIP) $(ACP) \

$(hide) mkdir -p $(dir $@)
$(hide) rm -rf $(ramdisk_dir)
Expand All @@ -63,7 +63,7 @@ $(live_ramdisk): \
$(hide) echo "import init.live.rc" >> $(ramdisk_dir)/init.rc
$(hide) sed -i -r 's/^[\t ]*(mount_all|mount yaffs|mount ext).*//g' $(ramdisk_dir)/init*.rc
$(hide) $(ACP) $(live_initrc) $(ramdisk_dir)
$(hide) $(MKBOOTFS) $(ramdisk_dir) | $(MINIGZIP) > $@
$(hide) $(MKBOOTFS) $(ramdisk_dir) | $(GZIP) > $@

$(live_bootimage): \
$(INTEL_PATH_BUILD)/tasks/liveimage.mk \
Expand Down

0 comments on commit b48061c

Please sign in to comment.