Skip to content

Kernel build fails when adding new parameters #18

@JinChoi96

Description

@JinChoi96

Hi,

I'm trying to apply palloc version 4.14 and while building the kernel I got an error
which says CGROUP_PALLOC is new and the build is aborted.

In the init/Kconfig file, I added CGROUP_PALLOC right before the endif # CGROUPS

... 
config SOCK_CGROUP_DATA
             bool
             default n

config CGROUP_PALLOC
             bool "Enable PALLOC"
             default y
             help
                        Enable PALLOC. ...
endif # CGROUOPS
...

The error message is:

 -f /home/jchoi/shin/linux_android/sources/kernel/Makefile Image
| make -f /home/jchoi/shin/linux_android/sources/kernel/Makefile silentoldconfig
| make -f /home/jchoi/shin/linux_android/sources/kernel/scripts/Makefile.build obj=scripts/basic
| ln -fsn /home/jchoi/shin/linux_android/sources/kernel source
| /bin/bash /home/jchoi/shin/linux_android/sources/kernel/scripts/mkmakefile \
|     /home/jchoi/shin/linux_android/sources/kernel . 4 14
|   GEN     ./Makefile
| rm -f .tmp_quiet_recordmcount
| make -f /home/jchoi/shin/linux_android/sources/kernel/scripts/Makefile.build obj=scripts/kconfig silentoldconfig
| mkdir -p include/config include/generated
| test -e include/generated/autoksyms.h || \
|     touch   include/generated/autoksyms.h
| scripts/kconfig/conf  --silentoldconfig Kconfig
| *
| * Restart config...
| *
| *
| * Control Group support
| *
| Control Group support (CGROUPS) [Y/?] y
|   Memory controller (MEMCG) [Y/n/?] y
|     Swap controller (MEMCG_SWAP) [Y/n/?] y
|       Swap controller enabled by default (MEMCG_SWAP_ENABLED) [Y/n/?] y
|   IO controller (BLK_CGROUP) [N/y/?] n
|   PIDs controller (CGROUP_PIDS) [N/y/?] n
|   RDMA controller (CGROUP_RDMA) [N/y/?] n
|   Freezer controller (CGROUP_FREEZER) [N/y/?] n
|   Cpuset controller (CPUSETS) [Y/n/?] y
|     Include legacy /proc/<pid>/cpuset file (PROC_PID_CPUSET) [Y/n] y
|   Device controller (CGROUP_DEVICE) [N/y/?] n
|   Simple CPU accounting controller (CGROUP_CPUACCT) [Y/n/?] y
|   Perf controller (CGROUP_PERF) [Y/n/?] y
|   Debug controller (CGROUP_DEBUG) [N/y/?] n
|   Enable PALLOC (CGROUP_PALLOC) [Y/n/?] (NEW) aborted!
|
| Console input/output is redirected. Run 'make oldconfig' to update configuration.
|
| /home/jchoi/shin/linux_android/sources/kernel/scripts/kconfig/Makefile:38: recipe for target 'silentoldconfig' failed
| make[4]: *** [silentoldconfig] Error 1
| /home/jchoi/shin/linux_android/sources/kernel/Makefile:523: recipe for target 'silentoldconfig' failed
| make[3]: *** [silentoldconfig] Error 2
| make[2]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'.  Stop.
| Makefile:146: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.

I'm using Yocto project to build the Linux kernel (if it is helpful to explain the reason..)
Do you know if there is any way to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions