Skip to content

Commit 0cfb248

Browse files
author
Octavian Purdila
committed
Merge pull request torvalds#116 from staalmannen/lkl_win
minor changes and documentation to build on Windows host
2 parents c07714a + ef4a71c commit 0cfb248

File tree

7 files changed

+45
-0
lines changed

7 files changed

+45
-0
lines changed

Documentation/lkl.txt

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,44 @@ following command:
9494

9595
$ make CROSS_COMPILE=i686-w64-mingw32- tools/lkl
9696

97+
98+
99+
Building LKL on Windows
100+
------------------------
101+
102+
To build on Windows, certain GNU tools need to be installed. These tools can come
103+
from several different projects, such as cygwin, unxutils, gnu-win32 or busybox-w32.
104+
Below is one minimal/modular set-up based on msys2.
105+
106+
Common build dependencies:
107+
MSYS2 (provides GNU bash and many other utilities)
108+
https://sourceforge.net/projects/msys2/
109+
Extra utilities from MSYS2/pacman:
110+
bc, base-devel
111+
112+
General considerations:
113+
No spaces in pathnames (source, prefix, destination,...)!
114+
Make sure that all utilities are in the PATH.
115+
Win64 (and MinGW 64-bit crt) is LLP64, which causes conflicts in size of "long" in the
116+
Linux source. Cygwin (and msys2) are LP64, like linux. Linux (and lkl) can (currently) not
117+
be built on LLP64.
118+
119+
For MSYS2 (and Cygwin):
120+
Msys2 will install a gcc tool chain as part of the base-devel bundle.
121+
Binutils need to be re-built with patches for weak symbols as described above.
122+
Using the msys2 shell, cd to the lkl sources.
123+
and run:
124+
125+
$ make tools/lkl
126+
127+
For MinGW:
128+
Install mingw-w64-i686-toolchain via pacman, mingw-w64-i686-binutils need to be re-built with the
129+
weak symbols patches. Start a MinGW Win32 shell (64-bit will not work, see above)
130+
and run:
131+
132+
$ make tools/lkl
133+
134+
97135
LKL hijack library
98136
------------------
99137

lib/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
# Generated files
33
#
44
gen_crc32table
5+
gen_crc32table.exe
56
crc32table.h
67
oid_registry_data.c

lib/raid6/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
mktables
2+
mktables.exe
23
altivec*.c
34
int*.c
45
tables.c

scripts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44
conmakehash
55
kallsyms
6+
kallsyms.exe
67
pnmtologo
78
unifdef
89
ihex2fw

scripts/basic/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
fixdep
2+
fixdep.exe
23
bin2c
4+
bin2c.exe

scripts/kconfig/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gconf.glade.h
1515
# configuration programs
1616
#
1717
conf
18+
conf.exe
1819
mconf
1920
nconf
2021
qconf

scripts/mod/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
elfconfig.h
22
mk_elfconfig
33
modpost
4+
modpost.exe
45
devicetable-offsets.h

0 commit comments

Comments
 (0)