m5stack / CoreMP135_buildroot-external-st

External Buildroot tree for STMicroelectronics boards configurations
MIT License
7 stars 2 forks source link

Error unzipping 7-zip in tools/creat_coremp135_buidlroot_image.sh #1

Closed nnn112358 closed 2 weeks ago

nnn112358 commented 3 weeks ago

overview:

Error occurs in tools/creat_coremp135_buidlroot_image.sh.

Cause of a problem

./creat_coremp135_buidlroot_image.sh

Before correction

    [ -d 'dl' ] || 7z e dl.7z

7-zip ignores directories within the archive and unzips all files into the same directory. This causes the above error.

My Revised

    [ -d 'dl' ] || 7z x dl.7z

x extracts the archive while preserving the directory, so this is usually used.

Error symptoms

$ cd tools/
$ ./creat_coremp135_buidlroot_image.sh

Extracting archive: dl.7z
--
Path = dl.7z
Type = 7z
Physical Size = 1523684957
Headers Size = 74271
Method = LZMA2:24
Solid = +
Blocks = 1

Would you like to replace the existing file:
  Path:     ./.lock
  Size:     0 bytes
  Modified: 2024-04-12 16:55:02
with the file from archive:
  Path:     arm-trusted-firmware/.lock
  Size:     0 bytes
  Modified: 2024-04-12 16:55:02
? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? ^