Error starting make install - include / generated / autoconf.h or include / config / auto.conf missing

when I try to run make install on my custom kernel, I get the following error -

root@localhost [ /home/avi/dd/labs/lab1_compile_and_load ]$ make install V=1

make -C / lib / modules / 3.12.17 / build SUBDIRS = / home / avi / dd / labs / lab1_compile_and_load modules_install

make[1]: Entering directory `/home/avi/kernel/linux-3.12.17'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;                          \
/bin/false)
mkdir -p /lib/modules/3.12.17/extra
make -f /home/avi/kernel/linux-3.12.17/scripts/Makefile.modinst
  /bin/sh /home/avi/kernel/linux-3.12.17/scripts/depmod.sh /sbin/depmod 3.12.17 ""
make[1]: Leaving directory `/home/avi/kernel/linux-3.12.17'

The contents of my Makefile is as follows:

obj-m := lab1_char_driver.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

all:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD)  modules
install:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD)  modules_install

clean:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD)  clean

I tried 'make oldconfig && & make preapare' as indicated in the error message, but to no avail. I tried this on fedora20 and ubuntu12.04. If you do Make, it means that it works fine, but the installation fails. Please help. Any important answer would be greatly appreciated.

+4
source share
1

V=1, Make (. ). , , , , :

test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ ... echo error messages here ... \ )

, , , . , , - - .

+4

Source: https://habr.com/ru/post/1537284/


All Articles