Go to file
2025-09-30 14:56:06 +02:00
arch AAUTO-2163: Split rdacm20 initialization using rdacm20_core_ops.command() 2025-08-28 13:39:01 +02:00
block Merge remote-tracking branch 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-29 14:44:18 +09:00
certs Revert "ANDROID: extract-cert: omit PKCS#11 support if building against BoringSSL" 2024-10-01 11:37:50 +00:00
crypto Merge remote-tracking branch 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-07 16:52:25 +09:00
Documentation Merge commit 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-22 16:44:44 +09:00
drivers AAUTO-2163: Split rdacm20 initialization using rdacm20_core_ops.command() 2025-08-28 13:39:01 +02:00
fs ANDROID: vendor_hooks: add vendor hooks for readahead bio 2025-05-21 07:45:40 -07:00
gki AAUTO-1592 OX03C10 camera and MAX96724 deserializer support has been added for imx95 Android automotive BSPs. 2025-06-24 14:19:16 +02:00
include AAUTO-8 Add vehicle driver (change base on 628be17188 commit). Vehicle driver is used communicate M4 and also report vehicle event into vehicle HAL. 2025-06-23 11:10:58 +02:00
init FROMGIT: mm/memcg: move mem_cgroup_init() ahead of cgroup_init() 2025-05-14 08:39:46 -07:00
io_uring UPSTREAM: block: add a rq_list type 2025-05-16 12:17:57 +00:00
ipc ipc: fix memleak if msg_init_ns failed in create_ipc_ns 2024-12-05 14:03:02 +01:00
kernel Merge remote-tracking branch 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-29 14:44:18 +09:00
lib Merge remote-tracking branch 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-07 16:52:25 +09:00
LICENSES LICENSES: add 0BSD license text 2024-09-01 20:43:24 -07:00
mm Merge remote-tracking branch 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-29 14:44:18 +09:00
net Merge commit 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-22 16:44:44 +09:00
rust ANDROID: rust_binder: add back tracepoints 2025-05-16 10:31:04 -07:00
samples Merge 1ef4cf5f98 ("rust: alloc: update module comment of alloc.rs") into android16-6.12 2025-04-07 05:41:55 -07:00
scripts Merge remote-tracking branch 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-29 14:44:18 +09:00
security Merge commit 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-22 16:44:44 +09:00
sound Merge commit 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-22 16:44:44 +09:00
tools Merge commit 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-22 16:44:44 +09:00
usr Merge remote-tracking branch 'lf-lts/lf-6.12.y' into nxp-linux-sdk/lf-6.12.y_android 2025-04-03 11:58:17 +09:00
virt ANDROID: kvm/vfio: pviommu: Add set config IOCTL 2025-04-16 13:39:54 +00:00
.bazelignore ANDROID: add .bazelignore file 2025-02-11 14:36:14 -08:00
.clang-format clang-format: Update with v6.11-rc1's for_each macro list 2024-08-02 13:20:31 +02:00
.clippy.toml Merge 1ef4cf5f98 ("rust: alloc: update module comment of alloc.rs") into android16-6.12 2025-04-07 05:41:55 -07:00
.cocciconfig
.editorconfig .editorconfig: remove trim_trailing_whitespace option 2024-06-13 16:47:52 +02:00
.get_maintainer.ignore Add Jeff Kirsher to .get_maintainer.ignore 2024-03-08 11:36:54 +00:00
.gitattributes .gitattributes: set diff driver for Rust source code files 2023-05-31 17:48:25 +02:00
.gitignore Merge 1ef4cf5f98 ("rust: alloc: update module comment of alloc.rs") into android16-6.12 2025-04-07 05:41:55 -07:00
.mailmap mailmap: add entry for Thorsten Blum 2024-11-07 14:14:59 -08:00
.rustfmt.toml rust: add .rustfmt.toml 2022-09-28 09:02:20 +02:00
abi.bzl ANDROID: Use pkg_* instead of copy_file for kselftests. 2024-08-06 04:58:55 +00:00
BUILD.bazel Merge remote-tracking branch 'aosp/android16-6.12-2025-06' into nxp-linux-sdk/lf-6.12.y_android 2025-06-03 10:53:06 +09:00
build.config.aarch64 ANDROID: dissuade people from using some build configs. 2025-01-23 17:00:54 -08:00
build.config.arm ANDROID: dissuade people from using some build configs. 2025-01-23 17:00:54 -08:00
build.config.common ANDROID: dissuade people from using some build configs. 2025-01-23 17:00:54 -08:00
build.config.constants ANDROID: 2025/05/15 KMI update 2025-05-16 12:32:35 +00:00
build.config.db845c ANDROID: db845c don't set __ANDROID_COMMON_KERNEL__. 2025-01-21 18:25:47 -08:00
build.config.gki ANDROID: GKI targets sets common_kernel.defconfig. 2024-10-24 21:58:18 +00:00
build.config.gki.aarch64 ANDROID: dissuade people from using some build configs. 2025-01-23 17:00:54 -08:00
build.config.gki.x86_64 ANDROID: dissuade people from using some build configs. 2025-01-23 17:00:54 -08:00
build.config.imx MA-20138 Add initial build.config.imx 2024-12-11 17:10:33 +09:00
build.config.rockpi4 ANDROID: rockpi4 don't set __ANDROID_COMMON_KERNEL__. 2025-01-21 18:25:47 -08:00
build.config.x86_64 ANDROID: dissuade people from using some build configs. 2025-01-23 17:00:54 -08:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: Remove self from DSA entry 2024-11-03 12:52:38 -08:00
imx.bzl MA-23693 Update imx.bzl for imx 2025-05-12 10:53:05 +09:00
Kbuild Kbuild updates for v6.1 2022-10-10 12:00:45 -07:00
Kconfig ANDROID: kbuild: add Kconfig support for external modules 2021-12-13 18:33:18 +00:00
Kconfig.ext ANDROID: kbuild: add Kconfig support for external modules 2021-12-13 18:33:18 +00:00
MAINTAINERS Merge commit 'aosp/android16-6.12' into nxp-linux-sdk/lf-6.12.y_android 2025-05-22 16:44:44 +09:00
MAINTAINERS.NXP LF-14587-12: MAINTAINERS.NXP: Update since new binding doc added for PXP 2025-02-17 18:30:32 +08:00
Makefile ANDROID: compile / link / clean permitted-imports.o 2025-05-28 08:22:31 -07:00
modules.bzl Revert "ANDROID: Add IFTTT analyzer markers for GKI modules" 2025-05-29 19:33:51 +00:00
OWNERS ANDROID: Update OWNERS 2024-09-10 21:34:18 +00:00
OWNERS_DrNo ANDROID: Add isaacmanjarres to OWNERS_DrNo 2024-09-20 15:01:42 +00:00
PREUPLOAD.cfg ANDROID: Enable repo hooks 2024-12-19 11:59:20 +08:00
README README: Fix spelling 2024-03-18 03:36:32 -06:00
README.md ANDROID: README.md: document FROMLIST not being allowed for rejected changes 2025-01-24 11:43:37 +00:00
SBOM-linux-imx-automotive-15.0.0_2.1.0.spdx.json AAUTO-1956 SBOM file has been added. 2025-09-30 14:56:06 +02:00

How do I submit patches to Android Common Kernels

  1. BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.

    • Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux, additions of EXPORT_SYMBOL_GPL() require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export.
    • When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not a persuasive case.
  2. LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.

Common Kernel patch requirements

  • All patches must conform to the Linux kernel coding standards and pass scripts/checkpatch.pl
  • Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
  • If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch: UPSTREAM:, BACKPORT:, FROMGIT:, FROMLIST:, or ANDROID:.
  • All patches must have a Change-Id: tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html)
  • If an Android bug has been assigned, there must be a Bug: tag.
  • All patches must have a Signed-off-by: tag by the author and the submitter

Additional requirements are listed below based on patch type

Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:

  • If the patch is a cherry-pick from Linux mainline with no changes at all
    • tag the patch subject with UPSTREAM:.
    • add upstream commit information with a (cherry picked from commit ...) line
    • Example:
      • if the upstream commit message is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>
  • then Joe Smith would upload the patch for the common kernel as
        UPSTREAM: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch requires any changes from the upstream version, tag the patch with BACKPORT: instead of UPSTREAM:.
    • use the same tags as UPSTREAM:
    • add comments about the changes under the (cherry picked from commit ...) line
    • Example:
        BACKPORT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        (cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
        [joe: Resolved minor conflict in drivers/foo/bar.c ]
        Signed-off-by: Joe Smith <joe.smith@foo.org>

Requirements for other backports: FROMGIT:, FROMLIST:,

  • If the patch has been merged into an upstream maintainer tree, but has not yet been merged into Linux mainline
    • tag the patch subject with FROMGIT:
    • add info on where the patch came from as (cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't use linux-next for example).
    • if changes were required, use BACKPORT: FROMGIT:
    • Example:
      • if the commit message in the maintainer tree is
        important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>
  • then Joe Smith would upload the patch for the common kernel as
        FROMGIT: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        (cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
         https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch has been submitted to LKML, but not accepted into any maintainer tree
    • tag the patch subject with FROMLIST:
    • add a Link: tag with a link to the submittal on lore.kernel.org
    • add a Bug: tag with the Android bug (required for patches not accepted into a maintainer tree)
    • if changes were required, use BACKPORT: FROMLIST:
    • Example:
        FROMLIST: important patch from upstream

        This is the detailed description of the important patch

        Signed-off-by: Fred Jones <fred.jones@foo.org>

        Bug: 135791357
        Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If a patch has been submitted to the community, but rejected, do NOT use the FROMLIST: tag to try to hide this fact. Use the ANDROID: tag as described below as this must be considered as an Android-specific submission, not an upstream submission as the community will not accept these changes as-is.

Requirements for Android-specific patches: ANDROID:

  • If the patch is fixing a bug to Android-specific code
    • tag the patch subject with ANDROID:
    • add a Fixes: tag that cites the patch with the bug
    • Example:
        ANDROID: fix android-specific bug in foobar.c

        This is the detailed description of the important fix

        Fixes: 1234abcd2468 ("foobar: add cool feature")
        Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
        Signed-off-by: Joe Smith <joe.smith@foo.org>
  • If the patch is a new feature
    • tag the patch subject with ANDROID:
    • add a Bug: tag with the Android bug (required for android-specific features)