Welcome to the Linux Foundation Forum!

Facing error in building the kernel

Build Command -> make -j 8
Config file created using make menuconfig
System Kernel Config -> config-6.5.0-18-generic

Error:
make[1]: *** [/home/utkarsh/Desktop/linux/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2

Makefile Snapshot of line 240:

239: __sub-make:
240: $(Q)$(MAKE) $(no-print-directory) -C $(abs_objtree) \
241: -f $(abs_srctree)/Makefile $(MAKECMDGOALS)

Need help to fix this error and build the kernel

Comments

  • Resolved fro me using the following commands

    scripts/config --disable SYSTEM_TRUSTED_KEYS
    scripts/config --disable SYSTEM_REVOCATION_KEYS

  • ayushhh
    ayushhh Posts: 1

    @utkarsh1905 said:
    Resolved fro me using the following commands

    scripts/config --disable SYSTEM_TRUSTED_KEYS
    scripts/config --disable SYSTEM_REVOCATION_KEYS

    can you explain the reason behind error and why that error resolved using "scripts/config --disable SYSTEM_TRUSTED_KEYS scripts/config --disable SYSTEM_REVOCATION_KEYS"

  • vyshaj
    vyshaj Posts: 5

    You could use defconfig as an alternative too.

Categories

Upcoming Training