User Tools

Site Tools


doc:howto:tce

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:tce [2024/09/12 19:10]
stefanbaur [Build system prerequisites for all variants] added squashfs-tools to crossbuild section
doc:howto:tce [2024/09/12 19:18] (current)
stefanbaur [Starting the Build] added info output
Line 495: Line 495:
  
  if (uname -m | grep -q 'i.86' || uname -m | grep -q 'x86_64' || uname -m | grep -q 'ppc64') ; then  if (uname -m | grep -q 'i.86' || uname -m | grep -q 'x86_64' || uname -m | grep -q 'ppc64') ; then
 +                echo "INFO: using host-architecture mksquashfs from outside instead of the target-architecture one inside chroot."
  # We need to do this as a background task, waiting for the mksquashfs executable to  # We need to do this as a background task, waiting for the mksquashfs executable to
  # appear in the changeroot; as the changeroot will only be created later on, once  # appear in the changeroot; as the changeroot will only be created later on, once
Line 556: Line 557:
      #needs switch from e.g. /bin/mksquashfs to $(which mksquashfs)      #needs switch from e.g. /bin/mksquashfs to $(which mksquashfs)
      sed -e "s#^.*mksquashfs#$(which mksquashfs)#g" -i \      sed -e "s#^.*mksquashfs#$(which mksquashfs)#g" -i \
 + ./chroot/tmp/filesystem.squashfs.temp
 +     # if the mksquashfs command was missing, add it
 +     grep -q mksquashfs ./chroot/tmp/filesystem.squashfs.temp || \
 + sed -e "s#^ #$(which mksquashfs) #g" -i \
  ./chroot/tmp/filesystem.squashfs.temp  ./chroot/tmp/filesystem.squashfs.temp
      # now let's make this executable      # now let's make this executable
doc/howto/tce.1726168223.txt.gz · Last modified: 2024/09/12 19:10 by stefanbaur