1. Apr 21, 2023
  2. Apr 17, 2023
  3. Apr 16, 2023
    • Masahiro Yamada's avatar
      kbuild: do not create intermediate *.tar for tar packages · 3c65a270
      Masahiro Yamada authored
      Commit 05e96e96
      
       ("kbuild: use git-archive for source package
      creation") split the compression as a separate step to factor out
      the common build rules.
      
      With the previous commit, we got back to the situation where source
      tarballs are compressed on-the-fly.
      There is no reason to keep the separate compression rules.
      
      Generate the comressed tar packages directly.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      3c65a270
    • Masahiro Yamada's avatar
      kbuild: do not create intermediate *.tar for source tarballs · f8d94c4e
      Masahiro Yamada authored
      Since commit 05e96e96
      
       ("kbuild: use git-archive for source package
      creation"), a source tarball is created in two steps; create *.tar file
      then compress it. I split the compression as a separate rule because I
      just thought 'git archive' supported only gzip.
      
      For other compression algorithms, I could pipe the two commands:
      
        $ git archive HEAD | xz > linux.tar.xz
      
      I read git-archive(1) carefully, and I realized GIT had provided a
      more elegant way:
      
        $ git -c tar.tar.xz.command=xz archive -o linux.tar.xz HEAD
      
      This commit uses 'tar.tar.*.command' configuration to specify the
      compression backend so we can compress a source tarball on-the-fly.
      
      GIT commit 767cf4579f0e ("archive: implement configurable tar filters")
      is more than a decade old, so it should be available on almost all build
      environments.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      f8d94c4e