-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem-software-compile.txt
299 lines (159 loc) · 10.6 KB
/
system-software-compile.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
Even though you create your little map weaving it's way through the BLFS book, trying to create a build order of what you need when, when it comes to
the actual compile time command line, things are bound to go wrong and/or be missing and/or be incorrectly ordered.
The method I use is to follow my 1st draft of system-software-build.txt as a guide ... a 'mud map' if you will ...and cross reference that against the
BLFS pages, noting any errata as I go.
Most of the issues with this build, is me trying to straight line pass a lot of 'recommended' deps (not 'required'), to discover the BLFS build commands
really are tuned to a case of recommended having been installed. There's nothing wrong with that, but one has to weigh time ~ do you spend time checking
configure opts, editing makefiles, blablabla, or do you just satisfy the dependency (even though you don't need it) ; the latter way is quicker. In this
case, it's a test build on a dedicated build machine, and I really don't care about a little tiny bit of bloat, because the deployment image won't contain
any of this stuff anyway ~ I'm only after the optimized i686 binaries wrt the emulator box.
// add wget -- wget https://ftp.gnu.org/gnu/wget/wget-1.21.3.tar.gz
// functional but fractionally broken (cert-keys); should be rebuilt after adding
// https://www.linuxfromscratch.org/blfs/view/svn/postlfs/make-ca.html
// https://www.linuxfromscratch.org/blfs/view/svn/postlfs/gnutls.html
https://www.linuxfromscratch.org/blfs/view/11.2/basicnet/wget.html
// grab the BLFS bootscripts & unpack in /sources
wget https://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-20220722.tar.xz
//...follow me...
https://www.linuxfromscratch.org/blfs/view/11.2/postlfs/openssh.html
https://www.linuxfromscratch.org/blfs/view/11.2/postlfs/nano.html
https://www.linuxfromscratch.org/blfs/view/11.2/general/pcre.html
//setting compiler opts
export CFLAGS="-O3 -march=i686" && CXXFLAGS=$CFLAGS
//added libxml2 libxslt ...glib2 was having a sook...
https://www.linuxfromscratch.org/blfs/view/stable/general/libxml2.html
https://www.linuxfromscratch.org/blfs/view/stable/general/libxslt.html
//
//change glib2 build cmd (don't make docs, not wanted) -->> meson --prefix=/usr --buildtype=release .. && ninja
https://www.linuxfromscratch.org/blfs/view/stable/general/glib2.html
//add slang -- wget https://www.jedsoft.org/releases/slang/slang-2.3.3.tar.bz2
//mc was upset without it
https://www.linuxfromscratch.org/blfs/view/stable/general/slang.html
https://www.linuxfromscratch.org/blfs/view/stable/general/mc.html
//Xorg build -- setup build env
https://www.linuxfromscratch.org/blfs/view/stable/x/xorg7.html
//X Build
https://www.linuxfromscratch.org/blfs/view/stable/x/util-macros.html
https://www.linuxfromscratch.org/blfs/view/stable/x/xorgproto.html
https://www.linuxfromscratch.org/blfs/view/stable/x/libXau.html
https://www.linuxfromscratch.org/blfs/view/stable/x/libXdmcp.html
https://www.linuxfromscratch.org/blfs/view/stable/x/xcb-proto.html
https://www.linuxfromscratch.org/blfs/view/stable/x/libxcb.html
//grab libpng patch -- wget https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-1.6.37-apng.patch.gz
https://www.linuxfromscratch.org/blfs/view/stable/general/libpng.html
https://www.linuxfromscratch.org/blfs/view/stable/general/freetype2.html
https://www.linuxfromscratch.org/blfs/view/stable/general/fontconfig.html
//if you're building as root, you have to edit the x7lib build script - see xorg-build.txt
https://www.linuxfromscratch.org/blfs/view/stable/x/x7lib.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/libxcvt.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/xcb-util.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/xcb-util-image.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/xcb-util-keysyms.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/xcb-util-renderutil.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/xcb-util-wm.html
https://www.linuxfromscratch.org/blfs/view/11.2/x/xcb-util-cursor.html
//////////////////////////////////////////////////
//Warning! Danger Will Robinson....this is the beginning of Mesa murmurings...
//This has a lot to do with video hardware used
//It may actually be a worthwhile rebuild from here-on if using different hardware
///////////////////
//
https://www.linuxfromscratch.org/blfs/view/11.2/x/libdrm.html
https://www.linuxfromscratch.org/blfs/view/11.2/general/python-modules.html#MarkupSafe
https://www.linuxfromscratch.org/blfs/view/11.2/general/python-modules.html#Mako
https://www.linuxfromscratch.org/blfs/view/11.2/x/x7driver.html#libvdpau
//this next one is a mesa dep
//if you've got i915 video you'll want to do something different here
//and use https://github.com/intel/intel-vaapi-driver/releases/download/2.4.1/intel-vaapi-driver-2.4.1.tar.bz2
//https://gitlab.freedesktop.org/drm/igt-gpu-tools
https://www.linuxfromscratch.org/blfs/view/11.2/x/x7driver.html#libva
//Note with libva above, you build/install here once before Mesa, then blow it away & build/install again after Mesa is installed
//These added to satify deps leading up to llvm
//
//add libuv --- wget libuv https://dist.libuv.org/dist/v1.44.2/libuv-v1.44.2.tar.gz
https://www.linuxfromscratch.org/blfs/view/11.2/general/libuv.html
//add nghttp2 --- wget https://github.com/nghttp2/nghttp2/releases/download/v1.48.0/nghttp2-1.48.0.tar.xz
https://www.linuxfromscratch.org/blfs/view/11.2/basicnet/nghttp2.html
//add libarchive --- wget https://github.com/libarchive/libarchive/releases/download/v3.6.1/libarchive-3.6.1.tar.xz
https://www.linuxfromscratch.org/blfs/view/11.2/general/libarchive.html
//add curl --- wget https://curl.se/download/curl-7.84.0.tar.xz
https://www.linuxfromscratch.org/blfs/view/11.2/basicnet/curl.html
//add cmake --- wget https://cmake.org/files/v3.24/cmake-3.24.1.tar.gz
//grab patch -- wget https://www.linuxfromscratch.org/patches/blfs/11.2/cmake-3.24.1-upstream_fix-1.patch
https://www.linuxfromscratch.org/blfs/view/11.2/general/cmake.html
//add llvm --- wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/llvm-14.0.6.src.tar.xz
//this takes some time, have coffee, order pizza...
https://www.linuxfromscratch.org/blfs/view/11.2/general/llvm.html
//hmmm...llvm builds, but not using clang version cited ~ built without local clang
//grab mesa demo test patch -- wget https://www.linuxfromscratch.org/patches/blfs/11.2/mesa-22.1.7-add_xdemos-1.patch
//
//change cmd to just build against X -- -Dplatforms=x11,wayland to -Dplatforms=x11
https://www.linuxfromscratch.org/blfs/view/stable/x/mesa.html
//Now that mesa is installed, circle back and do libva again...
https://www.linuxfromscratch.org/blfs/view/11.2/x/x7driver.html#libva
//
//careful above, look out for the girl from the green dimension ////////////
////////////////////////////////////
https://www.linuxfromscratch.org/blfs/view/stable/x/x7app.html
https://www.linuxfromscratch.org/blfs/view/stable/x/xcursor-themes.html
https://www.linuxfromscratch.org/blfs/view/stable/x/x7font.html
https://www.linuxfromscratch.org/blfs/view/stable/x/xkeyboard-config.html
https://www.linuxfromscratch.org/blfs/view/stable/general/pixman.html
// edit meson_options.txt to turn tests off (false)
https://www.linuxfromscratch.org/blfs/view/stable/general/wayland-protocols.html
https://www.linuxfromscratch.org/blfs/view/svn/general/wayland.html
//add libepoxy --- wget https://download.gnome.org/sources/libepoxy/1.5/libepoxy-1.5.10.tar.xz
https://www.linuxfromscratch.org/blfs/view/stable/x/libepoxy.html
//add tirpc --- wget https://downloads.sourceforge.net/libtirpc/libtirpc-1.3.3.tar.bz2
https://www.linuxfromscratch.org/blfs/view/stable/basicnet/libtirpc.html
https://www.linuxfromscratch.org/blfs/view/stable/x/xwayland.html
https://www.linuxfromscratch.org/blfs/view/stable/x/xorg-server.html
https://www.linuxfromscratch.org/blfs/view/stable/x/x7driver.html#libevdev
https://www.linuxfromscratch.org/blfs/view/stable/general/mtdev.html
https://www.linuxfromscratch.org/blfs/view/stable/x/x7driver.html#xorg-evdev-driver
https://www.linuxfromscratch.org/blfs/view/stable/x/x7driver.html#libinput
https://www.linuxfromscratch.org/blfs/view/stable/x/x7driver.html#xorg-libinput-driver
https://www.linuxfromscratch.org/blfs/view/stable/x/x7driver.html#xorg-nouveau-driver
https://www.linuxfromscratch.org/blfs/view/stable/x/x7legacy.html
//add twm --- wget https://www.x.org/pub/individual/app/twm-1.0.12.tar.xz
https://www.linuxfromscratch.org/blfs/view/stable/x/twm.html
//add dejavu fonts --- wget https://ixpeering.dl.sourceforge.net/project/dejavu/dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2
https://www.linuxfromscratch.org/blfs/view/stable/x/TTF-and-OTF-fonts.html#dejavu-fonts
//
//////////////////////End of Xorg//////////////////////////////////////
//
https://www.linuxfromscratch.org/blfs/view/stable/multimedia/alsa-lib.html
https://www.linuxfromscratch.org/blfs/view/stable/multimedia/alsa-plugins.html
https://www.linuxfromscratch.org/blfs/view/stable/multimedia/alsa-utils.html
https://www.linuxfromscratch.org/blfs/view/stable/general/zip.html
https://www.linuxfromscratch.org/blfs/view/stable/general/nasm.html
https://www.linuxfromscratch.org/blfs/view/stable/general/libjpeg.html
https://www.linuxfromscratch.org/blfs/view/stable/x/glew.html
https://www.linuxfromscratch.org/blfs/view/stable/multimedia/libmpeg2.html
/////////////
//
// libopenal install -- wget https://openal-soft.org/openal-releases/openal-soft-1.23.0.tar.bz2
//
// ...for now...
//
// cd build && cmake ..
// edit cmake_install.cmake -- set(CMAKE_INSTALL_PREFIX "/usr/local") to point at /usr
// cmake --build .
// make install && ldconfig
//
/////////////
// add libsamplerate -- wget https://github.com/libsndfile/libsamplerate/releases/download/0.2.2/libsamplerate-0.2.2.tar.xz
https://www.linuxfromscratch.org/blfs/view/svn/multimedia/libsamplerate.html
https://www.linuxfromscratch.org/blfs/view/svn/multimedia/sdl2.html
//add unzip --- wget https://downloads.sourceforge.net/infozip/unzip60.tar.gz
//grab patch --- wget https://www.linuxfromscratch.org/patches/blfs/11.2/unzip-6.0-consolidated_fixes-1.patch
https://www.linuxfromscratch.org/blfs/view/stable/general/unzip.html
//Add SDL2-ttf --- wget https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz
//
// ./configure --prefix=/usr && make -j4 && make install
//Add Portmidi -- wget https://github.com/PortMidi/portmidi/archive/refs/heads/master.zip
// cmake . ; edit cmake_install.cmake ; make && make install
//
//
///////// And Finally ///////////////
fsuae-master ---- ./configure --prefix=/usr && make -j4 && make install