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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Resolved fro me using the following commands

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

  • 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"

  • Posts: 5

    You could use defconfig as an alternative too.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training