1. 16 3月, 2023 1 次提交
  2. 15 3月, 2023 3 次提交
  3. 26 2月, 2023 5 次提交
    • M
      kbuild: deb-pkg: improve the usability of source package · 3ab18a62
      Masahiro Yamada 提交于
      Improve the source package support in case the dpkg-buildpackage is
      directly used to build binary packages.
      
      For cross-compiling, you can set CROSS_COMPILE via the environment
      variable, but it is better to set it automatically - set it to
      ${DEB_HOST_GNU_TYPE}- if we are cross-compiling but not from the top
      Makefile.
      
      The generated source package may be carried to a different build
      environment, which may have a different compiler installed.
      Run olddefconfig first to set new CONFIG options to their default
      values without prompting.
      
      Take KERNELRELEASE and KBUILD_BUILD_VERSION from the version field of
      debian/changelog in case it is updated afterwards.
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      3ab18a62
    • M
      kbuild: deb-pkg: fix binary-arch and clean in debian/rules · c5bf2efb
      Masahiro Yamada 提交于
      The clean target needs ARCH=${ARCH} to clean up the tree for the correct
      architecture. 'make (bin)deb-pkg' skips cleaning, but the preclean hook
      may be executed if dpkg-buildpackage is directly used.
      
      The binary-arch target does not need KERNELRELEASE because it is not
      updated during the installation. KBUILD_BUILD_VERSION is not needed
      either because binary-arch does not build vmlinux.
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      c5bf2efb
    • M
      kbuild: deb-pkg: switch over to source format 3.0 (quilt) · e7853995
      Masahiro Yamada 提交于
      Change the source format from "1.0" to "3.0 (quilt)" because it works
      more cleanly.
      
      All files except .config and debian/ go into the orig tarball.
      Add a single patch, debian/patches/config, and delete the ugly
      extend-diff-ignore patterns.
      
      The debian tarball will be compressed into *.debian.tar.xz by default.
      If you like to use a different compression mode, you can pass the
      command line option, DPKG_FLAGS=-Zgzip, for example.
      
      The orig tarball only supports gzip for now. The combination of
      gzip and xz is somewhat clumsy, but it is not a practical problem.
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: NNicolas Schier <nicolas@fjasle.eu>
      e7853995
    • M
      kbuild: deb-pkg: hide KDEB_SOURCENAME from Makefile · 6eabebb1
      Masahiro Yamada 提交于
      scripts/Makefile.package does not need to know the value of
      KDEB_SOURCENAME because the source name can be taken from
      debian/changelog by using dpkg-parsechangelog.
      
      Move the default of KDEB_SOURCENAME (i.e. linux-upstream) to
      scripts/package/mkdebian.
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: NNicolas Schier <nicolas@fjasle.eu>
      6eabebb1
    • M
      kbuild: deb-pkg: create source package without cleaning · 7bf4582d
      Masahiro Yamada 提交于
      If you run 'make deb-pkg', all objects are lost due to 'make clean',
      which makes the incremental builds impossible.
      
      Instead of cleaning, pass the exclude list to tar's --exclude-from
      option.
      
      Previously, *.diff.gz contained some check-in files such as
      .clang-format, .cocciconfig.
      
      With this commit, *.diff.gz will only contain the .config and debian/.
      The other source files will go into the .orig tarball.
      
      linux.tar.gz is rebuilt only when the source files that would go into
      the tarball are changed.
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: NNicolas Schier <nicolas@fjasle.eu>
      7bf4582d
  4. 26 1月, 2023 1 次提交
  5. 21 11月, 2022 1 次提交
  6. 17 11月, 2022 1 次提交
    • M
      kbuild: Restore .version auto-increment behaviour for Debian packages · 5db8face
      Marc Zyngier 提交于
      Since 2df8220c ("kbuild: build init/built-in.a just once"),
      generating Debian packages using 'make bindeb-pkg' results in
      packages that are stuck to the same .version, leading to unexpected
      behaviours (multiple packages with the same version).
      
      That's because the mkdebian script samples the build version
      before building the kernel, and forces the use of that version
      number for the actual build.
      
      Restore the previous behaviour by calling init/build-version
      instead of reading the .version file. This is likely to result
      in too many .version bumps, but this is what was happening before
      (although the bump was affecting builds made after the current one).
      
      Fixes: 2df8220c ("kbuild: build init/built-in.a just once")
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      5db8face
  7. 14 10月, 2020 2 次提交
  8. 09 10月, 2020 2 次提交
  9. 10 8月, 2020 1 次提交
  10. 30 3月, 2020 1 次提交
  11. 03 1月, 2020 1 次提交
    • A
      kbuild/deb-pkg: annotate libelf-dev dependency as :native · 8ffdc54b
      Ard Biesheuvel 提交于
      Cross compiling the x86 kernel on a non-x86 build machine produces
      the following error when CONFIG_UNWINDER_ORC is enabled, regardless
      of whether libelf-dev is installed or not.
      
        dpkg-checkbuilddeps: error: Unmet build dependencies: libelf-dev
        dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
        dpkg-buildpackage: warning: (Use -d flag to override.)
      
      Since this is a build time dependency for a build tool, we need to
      depend on the native version of libelf-dev so add the appropriate
      annotation.
      Signed-off-by: NArd Biesheuvel <ardb@kernel.org>
      Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
      8ffdc54b
  12. 17 12月, 2019 1 次提交
  13. 17 7月, 2019 1 次提交
  14. 17 3月, 2019 1 次提交
    • A
      kbuild: deb-pkg: avoid implicit effects · f6d9db63
      Arseny Maslennikov 提交于
      * The man page for dpkg-source(1) notes:
      
      >      -b, --build directory [format-specific-parameters]
      >             Build  a  source  package  (--build since dpkg 1.17.14).
      >             <...>
      >
      >             dpkg-source will build the source package with the first
      >             format found in this ordered list: the format  indicated
      >             with  the  --format  command  line  option,  the  format
      >             indicated in debian/source/format, “1.0”.  The  fallback
      >             to “1.0” is deprecated and will be removed at some point
      >             in the future, you should always  document  the  desired
      >             source   format  in  debian/source/format.  See  section
      >             SOURCE PACKAGE FORMATS for an extensive  description  of
      >             the various source package formats.
      
        Thus it would be more foolproof to explicitly use 1.0 (as we always
        did) than to rely on dpkg-source's defaults.
      
      * In a similar vein, debian/rules is not made executable by mkdebian,
        and dpkg-source warns about that but still silently fixes the file.
        Let's be explicit once again.
      Signed-off-by: NArseny Maslennikov <ar@cs.msu.ru>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      f6d9db63
  15. 14 3月, 2019 3 次提交
  16. 20 2月, 2019 1 次提交
  17. 11 11月, 2018 1 次提交
  18. 28 7月, 2018 12 次提交
  19. 17 5月, 2018 1 次提交
    • R
      kbuild: deb-pkg improve maintainer address generation · d5940c60
      Riku Voipio 提交于
      There is multiple issues with the genaration of maintainer string
      
      It uses DEBEMAIL and EMAIL enviroment variables, which may contain angle brackets,
      creating invalid maintainer strings. The documented KBUILD_BUILD_USER and
      KBUILD_BUILD_HOST variables are not used. Undocumented and uncommon NAME
      variable is used. Refactor the Maintainer string to:
      
      - use EMAIL or DEBEMAIL directly if they are in form "name <user@host>"
      - use KBUILD_BUILD_USER and KBUILD_BUILD_HOST if set before falling
        back to autodetection
      - no longer use NAME variable or the useless Anonymous string
      
      The logic is switched from multiline if/then/fi statements to compact
      shell variable substition commands.
      Reported-by: NMathieu Malaterre <malat@debian.org>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      d5940c60