Skip to content
Snippets Groups Projects
  1. Mar 27, 2025
  2. Mar 26, 2025
  3. Mar 25, 2025
  4. Mar 20, 2025
  5. Mar 19, 2025
    • Elliot Berman's avatar
      ANDROID: kbuild: Add support for installing out-of-tree kernel headers · 7b65a6d4
      Elliot Berman authored and William McVicker's avatar William McVicker committed
      
      Add support for installing out-of-tree kernel headers. The
      "headers_install" target was copied to the external module compilation
      section (lines 1245:1270), and the src/obj variables were tweaked to
      include $(KBUILD_EXTMODULE).
      
      Bug: 403385861
      Bug: 162332589
      Change-Id: I26270922bb90a0f446dfdc0fab2c5d90ef6e32f3
      Signed-off-by: default avatarElliot Berman <eberman@codeaurora.org>
      [willmcvicker: make easier for merges by adding ext mod section]
      Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
      7b65a6d4
    • HONG Yifan's avatar
      ANDROID: Set internal vars for 6.13. · 36fa6898
      HONG Yifan authored and William McVicker's avatar William McVicker committed
      
      The 6.13 merge introduces a few changes that:
      
      - Causes KBUILD_MIXED_TREE related patches to conflict. It turns out
      that the best fix is to just copy artifacts to $OUT_DIR directly. Hence,
      we need a flag so Kleaf can continue working on 6.12.
      
      - MO is now supported to build external modules in a separate build
      directory. However, this causes the VPATH trick to stop working and
      requires MO to be set. So we need a flag so that Kleaf can continue to
      work on 6.12.
      
      - Employ a hack that temporarily works around the issue in Kbuild where
      the pattern matching for the COPY rule doesn't work yet.
      
      Bug: 402231876
      Bug: 402888498
      Change-Id: I789be4d4c3ab849d7b07337e742217af100ceba0
      Signed-off-by: default avatarHONG Yifan <elsk@google.com>
      36fa6898
    • HONG Yifan's avatar
      FROMLIST: setlocalversion: use ${objtree}/include/config/auto.conf · 929a5c6b
      HONG Yifan authored and William McVicker's avatar William McVicker committed
      
      setlocalversion reads include/config/auto.conf, which is located below
      $(objtree) with commit 214c0eea ("kbuild: add $(objtree)/ prefix to
      some in-kernel build artifacts").
      
      To be consistent, the setlocalversion script should use
      ${objtree}/include/config/auto.conf as well.
      
      Signed-off-by: default avatarHONG Yifan <elsk@google.com>
      Link: https://lore.kernel.org/lkml/20250318005900.2256921-1-elsk@google.com/
      Bug: 402239869
      Change-Id: Iffd89cad27100eacd48341b3812fbdbf800c6be4
      929a5c6b
    • HONG Yifan's avatar
      ANDROID: Fix modules.order for external modules. · b6e737ec
      HONG Yifan authored and William McVicker's avatar William McVicker committed
      
      With MO properly set, modules.order from external modules
      contains simple relative paths below MO, instead of prefixed
      with KBUILD_EXTMOD. Hence, the substitution no longer worked
      for installing the module.
      
      Fix the substitution so that we simply prepend INSTALL_MOD_DIR
      directly.
      
      Bug: 402231876
      Change-Id: Id3b014475a8f5562f3664ee7ed1ae50bc8df67af
      Signed-off-by: default avatarHONG Yifan <elsk@google.com>
      b6e737ec
    • HONG Yifan's avatar
      ANDROID: Makefile.modinst deletes MODORDER. · 9bc5aadf
      HONG Yifan authored and William McVicker's avatar William McVicker committed
      
      bad6beb2 ("kbuild: remove extmod_prefix, MODORDER, MODULES_NSDEPS variables")
      
      deletes MODORDER. So we need to use the hard-coded value for
      
      cf74cca8 ("FROMLIST: kbuild: install the modules.order for external modules")
      
      as well.
      
      Change-Id: Idb2a35a04562da3b468561f0a7940cbb3cf55c40
      Signed-off-by: default avatarHONG Yifan <elsk@google.com>
      9bc5aadf
    • William McVicker's avatar
      Merge 'Merge tag 'kbuild-v6.13' of... · f9d46163
      William McVicker authored and William McVicker's avatar William McVicker committed
      Merge 'Merge tag 'kbuild-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      '
      
      * commit '6a34dfa1':
        kbuild: rename .tmp_vmlinux.kallsyms0.syms to .tmp_vmlinux0.syms
        gitignore: Don't ignore 'tags' directory
        kbuild: add dependency from vmlinux to resolve_btfids
        modpost: replace tdb_hash() with hash_str()
        kbuild: deb-pkg: add python3:native to build dependency
        genksyms: reduce indentation in export_symbol()
        modpost: improve error messages in device_id_check()
        modpost: rename alias symbol for MODULE_DEVICE_TABLE()
        modpost: rename variables in handle_moddevtable()
        modpost: move strstarts() to modpost.h
        modpost: convert do_usb_table() to a generic handler
        modpost: convert do_of_table() to a generic handler
        modpost: convert do_pnp_device_entry() to a generic handler
        modpost: convert do_pnp_card_entries() to a generic handler
        modpost: call module_alias_printf() from all do_*_entry() functions
        modpost: pass (struct module *) to do_*_entry() functions
        modpost: remove DEF_FIELD_ADDR_VAR() macro
        modpost: deduplicate MODULE_ALIAS() for all drivers
        modpost: introduce module_alias_printf() helper
        modpost: remove unnecessary check in do_acpi_entry()
        modpost: remove incorrect code in do_eisa_entry()
        setlocalversion: add -e option
        setlocalversion: work around "git describe" performance
        kbuild: switch from lz4c to lz4 for compression
        kbuild: re-enable KCSAN for autogenerated *.mod.c intermediaries
        kbuild: enable objtool for *.mod.o and additional kernel objects
        kbuild: move cmd_cc_o_c and cmd_as_o_S to scripts/Malefile.lib
        kbuild: remove support for single %.symtypes build rule
        kbuild: do not pass -r to genksyms when *.symref does not exist
        kbuild: allow to start building external modules in any directory
        kbuild: make wrapper Makefile more convenient for external modules
        kbuild: use absolute path in the generated wrapper Makefile
        kbuild: support -fmacro-prefix-map for external modules
        kbuild: support building external modules in a separate build directory
        kbuild: remove extmod_prefix, MODORDER, MODULES_NSDEPS variables
        kbuild: change working directory to external module directory with M=
        kbuild: use 'output' variable to create the output directory
        kbuild: rename abs_objtree to abs_output
        kbuild: add $(objtree)/ prefix to some in-kernel build artifacts
        kbuild: replace two $(abs_objtree) with $(CURDIR) in top Makefile
        kbuild: deb-pkg: Don't fail if modules.order is missing
        Rename .data.once to .data..once to fix resetting WARN*_ONCE
        Rename .data.unlikely to .data..unlikely
        kbuild: Fix Propeller build option
        kbuild: Add Propeller configuration for kernel build
        AutoFDO: Enable machine function split optimization for AutoFDO
        AutoFDO: Enable -ffunction-sections for the AutoFDO build
        vmlinux.lds.h: Add markers for text_unlikely and text_hot sections
        vmlinux.lds.h: Adjust symbol ordering in text output section
        MIPS: Place __kernel_entry at the beginning of text section
        objtool: Fix unreachable instruction warnings for weak functions
        kbuild: Add AutoFDO support for Clang build
        kbuild: simplify rustfmt target
        kconfig: document the positional argument in the help message
        kconfig: qconf: remove unnecessary mode check in ConfigItem::updateMenu()
        kconfig: qconf: refactor ConfigInfoView::clicked()
        kconfig: add sym_get_prompt_menu() helper function
        kconfig: qconf: remove non-functional href="m..." tag
        kconfig: qconf: remove redundant check in goBack()
        kconfig: qconf: avoid unnecessary parentSelected() when ESC is pressed
        kconfig: qconf: remove ConfigItem::visible member
        kconfig: qconf: do not show goParent button in split view
        kconfig: qconf: convert the last old connection syntax to Qt5 style
        kconfig: qconf: remove unnecessary lastWindowClosed() signal connection
        kconfig: qconf: remove unnecessary setRootIsDecorated() call
        kconfig: qconf: remove redundant type check for choice members
        kconfig: qconf: remove mouse{Press,Move}Event() functions
        kconfig: qconf: simplify character replacement
        kconfig: qconf: use default platform shortcuts
        kconfig: qconf: use QString to store path to configuration file
        kconfig: nconf: Fix typo in function comment
        streamline_config.pl: remove prompt warnings for configs with defaults
        streamline_config.pl: ensure all defaults are tracked
        streamline_config.pl: fix missing variable operator in debug print
        kconfig: nconf: Use TAB to cycle thru dialog buttons
        kconfig: qconf: set parent in the widget constructor
        kconfig: qconf: reorder code in ConfigMainWindow() constructor
        kconfig: qconf: set QSplitter orientation in the constructor
        kconfig: remove zconfprint()
        kconfig: remove support for "bool" prompt for choice entries
        usb: use "prompt" instead of "bool" for choice prompts
        kbuild: add generic support for built-in boot DTBs
        kbuild: check the presence of include/generated/rustc_cfg
        kbuild: refactor the check for missing config files
        speakup: use SPKDIR=$(src) to specify the source directory
      
      Change-Id: I146bfa715d483c6e1f84afc9e39d8b94d994862d
      Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
      f9d46163
    • William McVicker's avatar
      Revert "ANDROID: kbuild: Add support for installing out-of-tree kernel headers" · 1e42b2a2
      William McVicker authored and William McVicker's avatar William McVicker committed
      
      This reverts commit 280812be. Need to
      revert due to upstream conflicts.
      
      Change-Id: I610110b73bbb63480e9357002003fa6f885e2b44
      Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
      1e42b2a2
    • William McVicker's avatar
      Revert "ANDROID: kbuild: Copy out-of-tree kernel headers to INSTALL_HDR_PATH" · 7ffa3cf2
      William McVicker authored and William McVicker's avatar William McVicker committed
      
      This reverts commit 18bfcc15. Need to
      revert due to upstream conflicts.
      
      Change-Id: Ifdb7866e5aba1d663243355ec83592d73f3f8be7
      Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
      7ffa3cf2
    • HONG Yifan's avatar
      ANDROID: Delete kernel_aarch64_interceptor target. · dce60d12
      HONG Yifan authored
      
      This target has not been used.
      
      Bug: 403614469
      Change-Id: I423f603ca498cba3a4163b844d1d2fed6cc8c9a2
      Signed-off-by: default avatarHONG Yifan <elsk@google.com>
      dce60d12
  6. Mar 13, 2025
  7. Mar 11, 2025
  8. Mar 10, 2025
  9. Mar 07, 2025
Loading