Skip to content
Snippets Groups Projects
  1. Aug 06, 2022
  2. Aug 05, 2022
  3. Aug 04, 2022
    • Yifan Hong's avatar
      kleaf: Add buildozer commands in error messages. · 99787b16
      Yifan Hong authored
      In addition to providing the lines to add to the BUILD files,
      also provide a buildozer command that, when executed, attempts
      to fix the BUILD files automatically.
      
      Running buildozer requires the developer to install buildozer
      as a one-time set up.
      
      Sample output:
      
      Alternatively, install buildozer and execute:
        $ buildozer 'add module_outs drivers/mfd/vexpress-sysreg.ko
      drivers/gpu/drm/drm_cma_helper.ko
      drivers/gpu/drm/pl111/pl111_drm.ko
      drivers/virtio/virtio_mmio.ko
      drivers/input/mouse/psmouse.ko
      drivers/input/serio/ambakmi.ko
      drivers/clk/versatile/clk-vexpress-osc.ko
      drivers/bus/vexpress-config.ko
      drivers/mmc/host/armmmci.ko' //common-modules/virtual-device:virtual_device_aarch64
      
      Bug: none
      Test: manual
      
      Change-Id: I8b7ea944721975e4406be430e544d60580d9bae0
      99787b16
  4. Jul 26, 2022
  5. Jul 08, 2022
    • Yifan Hong's avatar
      kleaf: Add kasan support. · 9a176062
      Yifan Hong authored
      The --kasan flag enables kasan build. This automatically
      implies --lto=none; if --lto is specified otherwise, build
      fails.
      
      Also add analysis test to ensure that the above is enforced.
      
      Also add artifacts test to ensure that the CONFIG_KASAN
      is set properly, even when it is used in combination with
      other flags.
      
      Test: TH
      Bug: 236012429
      Change-Id: I170d3cc8b672f51a24192e4df39704924fc38771
      9a176062
    • Yifan Hong's avatar
      kleaf: combine olddefconfig. · 10417272
      Yifan Hong authored
      BYPASS_INCLUSIVE_LANGUAGE_REASON=CONFIG_UNUSED_KSYMS_WHITELIST
        is a key used in upstream kernel.
      
      Test: bazel test //build/kernel/kleaf/tests
      Bug: 236012429
      Change-Id: Ic43a20180eacd5f345c0ebfe8af38d89e72d6722
      10417272
  6. Jul 07, 2022
    • Yifan Hong's avatar
      kleaf: Add tests for kernel_config LTO settings. · 0fcff3c1
      Yifan Hong authored
      Check that the LTO settings are configured properly.
      Test: TH
      
      Change-Id: I737dfb9610a97ac7f2e66f8e21e32a2b48c0dad8
      0fcff3c1
    • Andrew Chant's avatar
      kleaf: match system_dlkm_image w vendor_dlkm_image · 2f1c7190
      Andrew Chant authored
      
      Modify system_dlkm_image to operate in the same way as
      vendor_dlkm_image, calling the build_utils scripts.
      
      This is part of the change to build system_dlkm
      as ext4 instead of erofs.
      
      Bug: 236753150
      Test: build with bazel,
       file ./out/mixed/dist/system_dlkm.img
       ./out/mixed/dist/system_dlkm.img: Linux rev 1.0 ext2 filesystem data,
       UUID=75130cbd-6ffb-4594-9084-8ce5bda658dc, volume name "system_dlkm" (extents) (large files) (huge files)
      
      Signed-off-by: default avatarAndrew Chant <achant@google.com>
      Change-Id: I8229be29b76ad8261a5ed79b6135e4867357a353
      3 tags
      2f1c7190
    • Yifan Hong's avatar
      kleaf: group tests. · 0b8a4323
      Yifan Hong authored
      Group tests by the name of the rule or macro
      they are testing.
      
      Test: TH
      Change-Id: I3a7a3a54efe8554b4a83e676d3870498d38197a2
      0b8a4323
  7. Jul 06, 2022
  8. Jul 01, 2022
    • Yifan Hong's avatar
      kleaf: simplify kmi_symbol_list search logic. · 4229308a
      Yifan Hong authored
      Instead of specifying
        --in-dir=$ROOT_DIR/$KERNEL_DIR $(rel_path <src> $ROOT_DIR/$KERNEL_DIR)
      use
        --in-dir=$ROOT_DIR <src>
      
      This ensures that it works when $ROOT_DIR/$KERNEL_DIR
      does not exist (because rel_path requires paths to exist).
      This is the case in particular when the symbol list file
      is outside of the $KERNEL_DIR for testing.
      
      Test: see next CL
      
      Change-Id: I4a0e8ef46d84c8006d9707167363b530f3aa16ca
      4229308a
    • Yifan Hong's avatar
      kleaf: Move LTO values to constants. · 8e50efc3
      Yifan Hong authored
      Test: TH
      Change-Id: I5b97f4e1e9141592c35c6140776b6925ea8f32d2
      8e50efc3
  9. Jun 30, 2022
  10. Jun 29, 2022
    • Yifan Hong's avatar
      kleaf: create boot-img.tar.gz for aarch64 and x86_64 · d44687aa
      Yifan Hong authored
      
      For aarch64:
      
      The boot-img.tar.gz includes boot.img, boot-lz4.img,
      boot-gz.img with kernel image: Image, Image.lz4,
      Image.gz, respectively.
      
      This change creates the tarballs for Kleaf.
      
      For x86_64:
      
      The boot.img will be used for GKI testing.
      
      This is the Kleaf corresponding change to
      a80c9ffa86c5919c10a73b47c4fe218d72a5838b
      ("ANDROID: Creating boot.img for x86_64 GKI")
      
      Bug: 230428252
      Bug: 233692305
      Test: bazel build //common:kernel_dist
      Test: bazel build //common:kernel_x86_64_dist
      Change-Id: Ia1fe2dd356a6300d56f0a00109807b35a19abdad
      Signed-off-by: default avatarYifan Hong <elsk@google.com>
      d44687aa
    • Yifan Hong's avatar
      kleaf: Use import_external_repositories · 0644b867
      Yifan Hong authored
      This function defines common external repositories
      for Android platform and kernel.
      
      Test: TH
      Bug: 227705464
      
      Change-Id: I5e2f5a811a128f20544512cc3cec5d9d1e72e968
      0644b867
  11. Jun 28, 2022
  12. Jun 27, 2022
    • Yifan Hong's avatar
      kleaf: Use absl test reporter for Python tests. · ac80d57e
      Yifan Hong authored
      This generates better test.xml so the testing framework
      can better understand the failures at test case level.
      
      Test: manually fail the test, examine test.xml
      Bug: 227705464
      Change-Id: I61676b8bbea1c72176b28219b26ca805582c86dc
      ac80d57e
  13. Jun 24, 2022
  14. Jun 23, 2022
    • Yifan Hong's avatar
      kleaf: add analysis test for kbuild_symtypes · 6ba79162
      Yifan Hong authored
      Add tests to check that symtypes/ is only generated
      with kbuild_symtypes=true.
      
      Test: bazel test //build/kernel/kleaf/tests/...
      Bug: 233286182
      Change-Id: I3dfb4bde8fa66ff295a7660da9f4d1dfc12c9cc8
      6ba79162
    • Yifan Hong's avatar
      kleaf: Skip scmversion test on modules. · bfd29905
      Yifan Hong authored
      Change 31a488ddd34499dcadc9c921a8f0daca08f17310
      (Revert "ANDROID: modules: introduce the MODULE_SCMVERSION config")
      disables CONFIG_MODULE_SCMVERSION temporarily. Until that
      is re-enabled, disable tests on the existence of scmversion
      for modules.
      
      Bug: 236871190
      Test: TH
      Test: bazel test slider_tests --config=stamp
      
      Change-Id: I75fce9f969d33ecbe1f407925324a66785029051
      bfd29905
    • Yifan Hong's avatar
      kleaf: Delete unused vermagic test on modules. · 6804785f
      Yifan Hong authored
      The test was previously not executed properly.
      
      We don't care about testing vermagic on modules.
      So just delete it.
      
      Test: bazel test slider_tests --config=stamp
      Bug: 236871757
      
      Change-Id: I486b366b54f685c4ea0e467f04fb3b60ec13e1c1
    • Yifan Hong's avatar
      kleaf: de-duplicate configs for debug and non-debug targets. · 508f285c
      Yifan Hong authored
      
      Deduplicate configs that are shared between
      aarch64 and aarch64_debug, and x86_64 and x86_64 debug.
      
      Test: TH
      Change-Id: Iee5fb40349d2c7caa5648da2147b9a4e65ceb339
      Signed-off-by: default avatarYifan Hong <elsk@google.com>
      508f285c
  15. Jun 22, 2022
    • Yifan Hong's avatar
      kleaf: Use str.removeprefix and removesuffix. · 355a6ae8
      Yifan Hong authored
      And delete the unused utils.removeprefix / removesuffix
      functions.
      
      Test: TH
      Bug: 233247849
      Change-Id: Ie2ff2f82d53140995dcbf5df11e491e22bcd434e
      355a6ae8
    • Yifan Hong's avatar
      Reland "kleaf: Add testkey to gki_artifacts deps." · 16e826b9
      Yifan Hong authored
      Revert submission 2127894-revert-2128555-kleaf-gki-artifacts-RDNWFQOUJK
      
      Reason for revert: relanding changes
      Reverted Changes:
      I4b5d58ab4:Revert "kleaf: Add Image.gz."
      I91a4dcaa1:Revert "kleaf: gki_artifacts takes kernel_build as...
      Ia65c088bf:Revert "kleaf: Adding gki-info.txt, the GKI artifa...
      I339190cf0:Revert "kleaf: Add testkey to gki_artifacts deps."...
      
      Bug: 233730966
      Change-Id: Iadfaa3117b3d358b23b0c22086f0a8a9b0306927
      16e826b9
    • Yifan Hong's avatar
      Reland "kleaf: Adding gki-info.txt, the GKI artifacts in..." · dc0fb520
      Yifan Hong authored
      Revert submission 2127894-revert-2128555-kleaf-gki-artifacts-RDNWFQOUJK
      
      Reason for revert: relanding changes
      Reverted Changes:
      I4b5d58ab4:Revert "kleaf: Add Image.gz."
      I91a4dcaa1:Revert "kleaf: gki_artifacts takes kernel_build as...
      Ia65c088bf:Revert "kleaf: Adding gki-info.txt, the GKI artifa...
      I339190cf0:Revert "kleaf: Add testkey to gki_artifacts deps."...
      
      Bug: 233730966
      Change-Id: I7d24897f92b585125bd7b9360b4dc0003e179983
      dc0fb520
    • Yifan Hong's avatar
      Reland "kleaf: gki_artifacts takes kernel_build as argum..." · 62aa5599
      Yifan Hong authored
      Revert submission 2127894-revert-2128555-kleaf-gki-artifacts-RDNWFQOUJK
      
      Reason for revert: relanding changes
      Reverted Changes:
      I4b5d58ab4:Revert "kleaf: Add Image.gz."
      I91a4dcaa1:Revert "kleaf: gki_artifacts takes kernel_build as...
      Ia65c088bf:Revert "kleaf: Adding gki-info.txt, the GKI artifa...
      I339190cf0:Revert "kleaf: Add testkey to gki_artifacts deps."...
      
      Bug: 233730966
      Change-Id: I7a06b1f11b05dc47c835cef2d7311835559098f1
      62aa5599
    • Yifan Hong's avatar
      Reland "kleaf: Add Image.gz." · e3ce1134
      Yifan Hong authored
      Revert submission 2127894-revert-2128555-kleaf-gki-artifacts-RDNWFQOUJK
      
      Reason for revert: relanding changes
      Reverted Changes:
      I4b5d58ab4:Revert "kleaf: Add Image.gz."
      I91a4dcaa1:Revert "kleaf: gki_artifacts takes kernel_build as...
      Ia65c088bf:Revert "kleaf: Adding gki-info.txt, the GKI artifa...
      I339190cf0:Revert "kleaf: Add testkey to gki_artifacts deps."...
      
      Bug: 233730966
      Change-Id: Icb6ada13c0aa46fbbe47a6c23ddfdf1c70ae35dd
      e3ce1134
  16. Jun 21, 2022
Loading