Skip to content

Added kernel modules are built but not copied #34

Open
@wujinjun-MC

Description

@wujinjun-MC

Trying to build kernel function(e.g. CIFS) as kernel module.

Following the method in #30 and checking the command ./kernel_platform/common/scripts/config, I replaced ./kernel_platform/common/build.config.gki as follow:

DEFCONFIG=gki_defconfig
POST_DEFCONFIG_CMDS="check_defconfig && update_config"

function update_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-m CONFIG_CIFS
(cd ${OUT_DIR} &&
make ${TOOL_ARGS} O=${OUT_DIR} olddefconfig)
}

Build command failed and shown:

ERROR: /home/wujinjun/op12-build-2/kernel_platform/common/BUILD.bazel:125:22: Building kernel (lto=default;pgo=none;trim) @//common:kernel_aarch64 failed: (Exit 1): bash failed: error executing KernelBuild command (from target //common:kernel_aarch64) /bin/bash -c ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
WARN: multiple IDs found for 'cgroup': 535, 47460 - using 535
WARN: multiple IDs found for 'file': 23, 47474 - using 23
WARN: multiple IDs found for 'path': 31, 47475 - using 31
WARN: multiple IDs found for 'task_struct': 401, 47515 - using 401
WARN: multiple IDs found for 'vm_area_struct': 578, 47611 - using 578
WARN: multiple IDs found for 'seq_file': 553, 47698 - using 553
ERROR: The following kernel modules are built but not copied. Add these lines to the module_outs attribute of @//common:kernel_aarch64:
    "fs/smb/common/cifs_md4.ko",
    "fs/smb/common/cifs_arc4.ko",
    "fs/smb/client/cifs.ko",
    "net/dns_resolver/dns_resolver.ko",
Alternatively, install buildozer and execute:
  $ buildozer 'add module_outs fs/smb/common/cifs_md4.ko
fs/smb/common/cifs_arc4.ko
fs/smb/client/cifs.ko
net/dns_resolver/dns_resolver.ko' @//common:kernel_aarch64
See https://github.com/bazelbuild/buildtools/blob/master/buildozer/README.md for reference
[873 / 891] checking cached actions
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/wujinjun/op12-build-2/kernel_platform/msm-kernel/BUILD.bazel:499:21 Middleman _middlemen/msm-kernel_Spineapple_Ugki_Udist-runfiles failed: (Exit 1): bash failed: error executing KernelBuild command (from target //common:kernel_aarch64) /bin/bash -c ... (remaining 1 argument skipped)

I tried to add the lines to the module_outs in ./kernel_platform/msm-kernel/BUILD.bazel and ./kernel_platform/common/BUILD.bazel but the error is almost the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions