github.com/imran-kn/cilium-fork@v1.6.9/contrib/ansible/roles/kernel/tasks/kernel_build.yml (about)

     1  ---
     2  
     3  - shell: uname -r
     4    register: uname_r_output
     5  
     6  - shell: getconf _NPROCESSORS_ONLN
     7    register: getconf_ncpu_output
     8  
     9  - name: Build kernel and modules
    10    command: "{{ item }} chdir={{ kernel_home }}/net-next"
    11    with_items:
    12      - cp /boot/config-{{uname_r_output.stdout}} .config
    13      - ./scripts/config --disable CONFIG_DEBUG_INFO
    14      - ./scripts/config --disable CONFIG_DEBUG_KERNEL
    15      - ./scripts/config --enable CONFIG_BPF
    16      - ./scripts/config --enable CONFIG_BPF_SYSCALL
    17      - ./scripts/config --module CONFIG_NETFILTER_XT_MATCH_BPF
    18      - ./scripts/config --module CONFIG_NET_CLS_BPF
    19      - ./scripts/config --module CONFIG_NET_ACT_BPF
    20      - ./scripts/config --enable CONFIG_BPF_JIT
    21      - ./scripts/config --enable CONFIG_HAVE_BPF_JIT
    22      - ./scripts/config --enable CONFIG_BPF_EVENTS
    23      - ./scripts/config --module CONFIG_TEST_BPF
    24      - ./scripts/config --disable CONFIG_LUSTRE_FS
    25      - ./scripts/config --enable CONFIG_IPV6_OPTIMISTIC_DAD
    26      - ./scripts/config --enable CONFIG_TCP_CONG_BBR
    27      - ./scripts/config --enable CONFIG_DEFAULT_BBR
    28      - bash -c "yes '' | make oldconfig"
    29      - make -j {{getconf_ncpu_output.stdout}} LOCALVERSION=-custom
    30      - make -C tools/perf