[maan@mxh81 mt7601u-ap]$ make
make -C /lib/modules/6.6.13-x64v3-xanmod1/build M=/home/maan/mt7601u-ap/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.13-x64v3-xanmod1'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-13 (Debian 13.2.0-9) 13.2.0
You are using: gcc (GCC) 13.2.1 20230801
CC [M] /home/maan/mt7601u-ap/os/linux/../../os/linux/rt_profile.o
In file included from :
././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~
compilation terminated.
make[3]: [scripts/Makefile.build:243: /home/maan/mt7601u-ap/os/linux/../../os/linux/rt_profile.o] Error 1
make[2]: [/usr/src/linux-headers-6.6.13-x64v3-xanmod1/Makefile:2068: /home/maan/mt7601u-ap/os/linux] Error 2
make[1]: [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.13-x64v3-xanmod1'
make: [Makefile:73: LINUX] Error 2
[maan@mxh81 mt7601u-ap]$ make make -C /lib/modules/6.6.13-x64v3-xanmod1/build M=/home/maan/mt7601u-ap/os/linux modules make[1]: Entering directory '/usr/src/linux-headers-6.6.13-x64v3-xanmod1' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-13 (Debian 13.2.0-9) 13.2.0 You are using: gcc (GCC) 13.2.1 20230801 CC [M] /home/maan/mt7601u-ap/os/linux/../../os/linux/rt_profile.o In file included from:
././include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^
~~~~~ compilation terminated. make[3]: [scripts/Makefile.build:243: /home/maan/mt7601u-ap/os/linux/../../os/linux/rt_profile.o] Error 1 make[2]: [/usr/src/linux-headers-6.6.13-x64v3-xanmod1/Makefile:2068: /home/maan/mt7601u-ap/os/linux] Error 2 make[1]: [Makefile:234: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.6.13-x64v3-xanmod1' make: [Makefile:73: LINUX] Error 2