The presentation console screen is a Linux kernel downloaded from the following site:I'd like to build this into an ISO file and run it in vmware player, but I don't know how to work with the following error codes:
The source directory cannot contain spaces or colons
and the reference site must move the source tree to another location.
is written as a workaround, but where should I move this?Also, the source directory says space and colon
, but what code is the source directory?
source directory cannot contain spaces or colons
Source directory cannot contain spaces or colons
Move the directory to the download directory and run it
OS:windows10
gun make windows
Microsoft Windows [Version 10.0.19044.2251]
(c) Microsoft Corporation.All rights reserved.
C:\Users\XXX>cd C:\Users\XXX\Desktop\linux-6.0.12
C:\Users\XXX\Desktop\linux-6.0.12>make
makefile:191:*** source directory cannot contain spaces or colons. Stop.
C:\Users\XXX\Desktop\linux-6.0.12>
Last release downloaded: https://www.kernel.org/
Reference Site (Google Translation): https://unix.stackexchange.com/questions/475757/why-wont-make-let-me-build-my-kernel-from-source
You want to compile the Linux kernel on Windows (without using a virtual environment such as Linux on WSL or Hyper-V), right?
To make a path that does not contain a colon, you must use a Cygwin version of make or MSYS2 build make package.Make for Windows and MSYS2's Mingw32-make (mingw-w64-*-make) use the Windows path, so the drive path always contains a colon.However, to emulate a UNIX-like environment, make for the Cygwin version or MSYS build can be treated as a UNIX-like path, and CC:\ 」 can be a path that does not include a colon, such as //c/ 」.
Also, it is not possible to compile properly just by using these make.For example, just using Cygwin to compile, you will need to do a lot of things described in the following article.
Cross-compile Linux kernels on Cygwin - Qiita
Starting with changing the behavior of the file system in the registry, you will need to compile GCC for cross-compilation.Even if you follow the article, sometimes it doesn't work because of the different versions.In addition, other than Cygwin, there are symbolic handling problems, and it will be even more difficult.
© 2024 OneMinuteCode. All rights reserved.