Making kernel problem
Hi, I'm learning how to hacking the Linux kernel follow a tutorial from web, when I download the Linux kernel 5.4.8 source code and extract it to run make mrproper, the make report: Documentation/Kbuild: Is a directory. Stop. I checked Documentation directory, only have a directory name kbuild, not directory name Kbuild. How can I clean this error.
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Am 06.01.20 um 12:09 schrieb c4droid:
Quoted 6 lines
Hi, I'm learning how to hacking the Linux kernel follow a tutorial from web, when I download the Linux kernel 5.4.8 source code and extract it to run make mrproper, the make report:
Documentation/Kbuild: Is a directory. Stop. I checked Documentation directory, only have a directory name kbuild, not directory nameKbuild. How can I clean this error.
My guess would be, you are running your build on a filesystem which is case insensitive (eg. FAT)
Martin
Signature · 19 lines
Dipl.-Inf. Martin Christian Senior Berater Entwicklung Hardware Division Verteidigung secunet Security Networks AG Tel.: +49 201 5454-3612, Fax +49 201 5454-1323 E-Mail: [email protected] Ammonstraße 74, 01067 Dresden www.secunet.com __________________________________________________________________________ secunet Security Networks AG Sitz: Kurfürstenstraße 58, 45138 Essen, Deutschland Amtsgericht Essen HRB 13615 Vorstand: Axel Deininger (Vors.), Torsten Henn, Dr. Kai Martius, Thomas Pleines Aufsichtsratsvorsitzender: Ralf Wintergerst __________________________________________________________________________
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
My environment is MacOS Catalina, I installed docker for building kernel. The docker container using -v options to mapping local path to docker container.
Quoted 8 lines · Martin Christian
Am 06.01.20 um 12:09 schrieb c4droid:
Quoted 6 lines
Hi, I'm learning how to hacking the Linux kernel follow a tutorial from web, when I download the Linux kernel 5.4.8 source code and extract it to run make mrproper, the make report:
Documentation/Kbuild: Is a directory. Stop. I checked Documentation directory, only have a directory name kbuild, not directory nameKbuild. How can I clean this error.
Quoted 4 lines
My guess would be, you are running your build on a filesystem which is case insensitive (eg. FAT)
Martin
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 6 lines · On Jan 6, 2020, at 7:24 AM, c4droid <[email protected]> wrote:
My environment is MacOS Catalina, I installed docker for building kernel. The docker container using -v options to mapping local path to docker container.
By default MacOS uses a case insensitive file system. Even in Docker, in order to compile Linux you’ll need to create a new case sensitive partition (eg SparseImage, adding a new volume to your disk’s APFS container, or some other Docker magic, etc)
Shaun
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Even I extract source from docker container, the Documentation directory just exist kbuild, not Kbuild.
And, in the extracted source tree, the top-level Kbuild file named Kbuild not kbuild, only Documentation/kbuild is named Documentation/kbuild. When I run make mrproper, make only report _clean_Documentation target error, my linux kernel source code archive is download from mirror.
Quoted 9 lines · Shaun
Quoted 5 lines · On Jan 6, 2020, at 7:24 AM, c4droid <[email protected]> wrote:
My environment is MacOS Catalina, I installed docker for building kernel. The docker container using -v options to mapping local path to docker container.
By default MacOS uses a case insensitive file system. Even in Docker, in order to compile Linux you’ll need to create a new case sensitive partition (eg SparseImage, adding a new volume to your disk’s APFS container, or some other Docker magic, etc)
Shaun
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 7 lines · On Tue, Jan 07, 2020 at 08:31:36AM +0800, c4droid wrote:
Even I extract source from docker container, the Documentation directory just exist kbuild, not
Kbuild.
And, in the extracted source tree, the top-levelKbuildfile namedKbuildnot kbuild, onlyDocumentation/kbuildis namedDocumentation/kbuild. When I run make mrproper, make only report_clean_Documentationtarget error, my linux kernel source code archive is download from mirror.
Please use a Linux system to build the Linux kernel on for your first attempt. Trying to get it to build on a non-Linux system is not always a trivial exercise as you are finding out.
And again, the problem is in your filesystem type you are building on, it is case-insensitive. Fixing that is the problem here, it is not a Linux kernel specific thing.
good luck!
greg k-h
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies