1. 14 3月, 2019 2 次提交
  2. 20 2月, 2019 1 次提交
  3. 11 11月, 2018 1 次提交
    • R
      builddeb: Fix inclusion of dtbs in debian package · d5615e47
      Rob Herring 提交于
      Commit 37c8a5fa ("kbuild: consolidate Devicetree dtb build rules")
      moved the location of 'dtbs_install' target which caused dtbs to not be
      installed when building debian package with 'bindeb-pkg' target. Update
      the builddeb script to use the same logic that determines if there's a
      'dtbs_install' target which is presence of the arch dts directory. Also,
      use CONFIG_OF_EARLY_FLATTREE instead of CONFIG_OF as that's a better
      indication of whether we are building dtbs.
      
      This commit will also have the side effect of installing dtbs on any
      arch that has dts files. Previously, it was dependent on whether the
      arch defined 'dtbs_install'.
      
      Fixes: 37c8a5fa ("kbuild: consolidate Devicetree dtb build rules")
      Reported-by: NNuno Gonçalves <nunojpg@gmail.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      d5615e47
  4. 06 11月, 2018 1 次提交
    • M
      kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used · 02826a6b
      Masahiro Yamada 提交于
      Ard Biesheuvel reports bindeb-pkg with O= option is broken in the
      following way:
      
        ...
          LD [M]  sound/soc/rockchip/snd-soc-rk3399-gru-sound.ko
          LD [M]  sound/soc/rockchip/snd-soc-rockchip-pcm.ko
          LD [M]  sound/soc/rockchip/snd-soc-rockchip-rt5645.ko
          LD [M]  sound/soc/rockchip/snd-soc-rockchip-spdif.ko
          LD [M]  sound/soc/sh/rcar/snd-soc-rcar.ko
         fakeroot -u debian/rules binary
        make KERNELRELEASE=4.19.0-12677-g19beffaf7a99-dirty ARCH=arm64 KBUILD_SRC= intdeb-pkg
        /bin/bash /home/ard/linux/scripts/package/builddeb
        Makefile:600: include/config/auto.conf: No such file or directory
        ***
        *** Configuration file ".config" not found!
        ***
        *** Please run some configurator (e.g. "make oldconfig" or
        *** "make menuconfig" or "make xconfig").
        ***
        make[12]: *** [syncconfig] Error 1
        make[11]: *** [syncconfig] Error 2
        make[10]: *** [include/config/auto.conf] Error 2
        make[9]: *** [__sub-make] Error 2
        ...
      
      Prior to commit 80463f1b ("kbuild: add --include-dir flag only
      for out-of-tree build"), both srctree and objtree were added to
      --include-dir redundantly, and the wrong code '$MAKE image_name'
      was working by relying on that. Now, the potential issue that had
      previously been hidden just showed up.
      
      '$MAKE image_name' recurses to the generated $(objtree)/Makefile and
      ends up with running in srctree, which is incorrect. It should be
      invoked with '-f $srctree/Makefile' (or KBUILD_SRC=) to be executed
      in objtree.
      
      Fixes: 80463f1b ("kbuild: add --include-dir flag only for out-of-tree build")
      Reported-by: NArd Biesheuvel <ard.biesheuvel@linaro.org>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Tested-by: NArd Biesheuvel <ard.biesheuvel@linaro.org>
      02826a6b
  5. 07 4月, 2018 1 次提交
  6. 28 3月, 2018 1 次提交
  7. 14 11月, 2017 1 次提交
  8. 20 9月, 2017 1 次提交
  9. 25 4月, 2017 2 次提交
  10. 28 3月, 2017 1 次提交
  11. 20 3月, 2017 1 次提交
  12. 25 11月, 2016 1 次提交
  13. 16 8月, 2016 1 次提交
  14. 27 7月, 2016 2 次提交
  15. 19 7月, 2016 1 次提交
  16. 08 6月, 2016 1 次提交
    • E
      GCC plugin infrastructure · 6b90bd4b
      Emese Revfy 提交于
      This patch allows to build the whole kernel with GCC plugins. It was ported from
      grsecurity/PaX. The infrastructure supports building out-of-tree modules and
      building in a separate directory. Cross-compilation is supported too.
      Currently the x86, arm, arm64 and uml architectures enable plugins.
      
      The directory of the gcc plugins is scripts/gcc-plugins. You can use a file or a directory
      there. The plugins compile with these options:
       * -fno-rtti: gcc is compiled with this option so the plugins must use it too
       * -fno-exceptions: this is inherited from gcc too
       * -fasynchronous-unwind-tables: this is inherited from gcc too
       * -ggdb: it is useful for debugging a plugin (better backtrace on internal
          errors)
       * -Wno-narrowing: to suppress warnings from gcc headers (ipa-utils.h)
       * -Wno-unused-variable: to suppress warnings from gcc headers (gcc_version
          variable, plugin-version.h)
      
      The infrastructure introduces a new Makefile target called gcc-plugins. It
      supports all gcc versions from 4.5 to 6.0. The scripts/gcc-plugin.sh script
      chooses the proper host compiler (gcc-4.7 can be built by either gcc or g++).
      This script also checks the availability of the included headers in
      scripts/gcc-plugins/gcc-common.h.
      
      The gcc-common.h header contains frequently included headers for GCC plugins
      and it has a compatibility layer for the supported gcc versions.
      
      The gcc-generate-*-pass.h headers automatically generate the registration
      structures for GIMPLE, SIMPLE_IPA, IPA and RTL passes.
      
      Note that 'make clean' keeps the *.so files (only the distclean or mrproper
      targets clean all) because they are needed for out-of-tree modules.
      
      Based on work created by the PaX Team.
      Signed-off-by: NEmese Revfy <re.emese@gmail.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      6b90bd4b
  17. 10 5月, 2016 2 次提交
    • A
      builddeb: fix missing headers in linux-headers package · 962475ac
      Azriel Samson 提交于
      The kernel headers package (linux-headers) doesn't include
      header files from other architectures required to build
      out-of-tree modules.
      
      For e.g. on ARM64, opcodes.h includes the same file from ARM
      which causes the following error:
      ./arch/arm64/include/asm/opcodes.h:1:43: fatal error:
      ../../arm/include/asm/opcodes.h: No such file or directory
      compilation terminated.
      Signed-off-by: NAzriel Samson <asamson@codeaurora.org>
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      962475ac
    • B
      builddeb: include objtool binary in headers package · 697bbc7b
      Bjørn Mork 提交于
      "objtool" is required for building external m dules if "Compile-time
      stack metadata validation" is enabled.  Otherwise all builds based
      on the headers package fail with:
      
       make[1]: Entering directory '/usr/src/linux-headers-4.6.0-rc6'
       make[2]: *** No rule to make target 'tools/objtool/objtool', needed by 'foo.o'.  Stop.
       Makefile:1598: recipe for target 'foo.ko' failed
       make[1]: *** [foo.ko] Error 2
       make[1]: Leaving directory '/usr/src/linux-headers-4.6.0-rc6'
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      697bbc7b
  18. 27 10月, 2015 1 次提交
  19. 17 10月, 2015 1 次提交
  20. 04 9月, 2015 1 次提交
    • R
      deb-pkg: add source package · 3716001b
      Riku Voipio 提交于
      Make deb-pkg build both source and binary package like make rpm-pkg does.
      For people who only need binary kernel package, there is now bindeb-pkg
      target, same target also used to build the .deb files if built from the
      source package using dpkg-buildpackage.
      
      Generated source package will build the same kernel .config than what
      was available for make deb-pkg. The name of the source package can
      be set with KDEB_SOURCENAME enviroment variable.
      
      The source package is useful for GPL compliance, or for feeding to a
      automated debian package builder.
      
      Cc: Chris J Arges <chris.j.arges@canonical.com>
      Reviewed-by: Nmaximilian attems <maks@stro.at>
      Reviewed-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      Signed-off-by: NMichal Marek <mmarek@suse.com>
      3716001b
  21. 20 8月, 2015 1 次提交
    • C
      fallback to hostname in scripts/package/builddeb · bea107b1
      Christian Kujau 提交于
      I happened to build a kernel with "make deb-pkg" on a machine with no
      network connectivity, but this failed with:
      
      [...]
        INSTALL debian/headertmp/usr/include/asm/ (65 files)
      hostname: Name or service not known
      ../scripts/package/Makefile:90: recipe for target 'deb-pkg' failed
      make[2]: *** [deb-pkg] Error 1
      
      In scripts/package/builddeb it tries to construct an email address (that
      can be queried in /proc/version later on) but with no network,
      the "hostname -f" fails. The following patch falls back to just use the
      shortname if we cannot determine our FQDN.
      Signed-off-by: NChristian Kujau <lists@nerdbynature.de>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      bea107b1
  22. 19 8月, 2015 1 次提交
  23. 20 5月, 2015 1 次提交
  24. 06 5月, 2015 1 次提交
    • A
      builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_ALL are set · 64178cb6
      Andrey Skvortsov 提交于
      If CONFIG_MODULE_SIG_ALL is set, then user expects that all modules are
      automatically signed in the result package, as it's for rpm-pkg, binrpm-pkg,
      tar, tar-*. For deb-pkg this is correct only if CONFIG_DEBUG_INFO
      is NOT set. In that case deb-package contains signed modules.
      
      But if CONFIG_DEBUG_INFO is set, builddeb creates separate package with
      debug information. To do that, debug information from all modules
      is copied into separate files by objcopy. And loadable kernel modules are
      stripped afterwards. Stripping removes previously (during modules_install)
      added signatures from loadable kernel modules. Therefore final deb-package
      contains unsigned modules despite of set option CONFIG_MODULE_SIG_ALL.
      
      This patch resigns all stripped modules if CONFIG_MODULE_SIG_ALL is set
      to solve this problem.
      Signed-off-by: NAndrey Skvortsov <andrej.skvortzov@gmail.com>
      Acked-by: Nmaximilian attems <max@stro.at>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      64178cb6
  25. 27 4月, 2015 1 次提交
  26. 07 1月, 2015 1 次提交
  27. 03 1月, 2015 1 次提交
  28. 07 10月, 2014 1 次提交
  29. 12 9月, 2014 1 次提交
  30. 26 8月, 2014 1 次提交
  31. 20 8月, 2014 1 次提交
  32. 19 6月, 2014 1 次提交
  33. 18 6月, 2014 1 次提交
  34. 10 6月, 2014 1 次提交
  35. 30 4月, 2014 1 次提交
  36. 24 4月, 2014 1 次提交