-
Notifications
You must be signed in to change notification settings - Fork 1
/
ifs.build
243 lines (215 loc) · 7.22 KB
/
ifs.build
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
#
# \file ifs.build
# \brief Buildfile describing the image filesystem (IFS) used for building
# the QNX OS test image.
#
# Copyright (C) 2023 Deniz Eren (deniz.eren@outlook.com)
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.
#
[search=/x86_64:/x86_64/boot/sys::/opt/qnx710:/opt/qnx710/target/qnx7/x86_64:/opt/qnx710/target/qnx7/x86_64/boot/sys:/opt/qnx710/target/qnx7:/root/qnx710:/root/qnx710/target/qnx7/x86_64:/root/qnx710/target/qnx7/x86_64/boot/sys:/root/qnx710/target/qnx7]
[uid=0 gid=0 dperms=0555 perms=0555]
[image=20m]
[virtual=x86_64,bios +compress] boot = {
startup-x86
[+keeplinked uid=0 gid=0 perms=0700 ] PATH=/opt/bin:/proc/boot:/system/xbin LD_LIBRARY_PATH=/opt/lib:/proc/boot:/system/lib:/system/lib/dll CONFIG_PATH=/proc/boot:/system/etc procnto-smp-instr -v -mr -d 0777 -u 0777
}
[+script] startup-script = {
# As various programs expect some binaries in fixed location, create procmgr symlinks to them.
# We can't specify these paths for the files themselves since if we build a non-union system,
# the actual paths would be things like /ifs/bin/sh
procmgr_symlink /proc/boot/ksh /bin/ksh
procmgr_symlink /proc/boot/ksh /bin/sh
procmgr_symlink /system/xbin/cp /bin/cp
procmgr_symlink /system/xbin/rm /bin/rm
procmgr_symlink /dev/shmem /tmp
procmgr_symlink /system/xbin/ssh /usr/bin/ssh
procmgr_symlink /proc/boot/ldqnx-64.so.2 /usr/lib/ldqnx-64.so.2
procmgr_symlink /system/usr/lib/valgrind /usr/lib/valgrind
# **FIXME**
# Processes should usually use _CS_CONFIG_PATH to locate configuration files. But for now
# create symlinks for some locations that can't move.
procmgr_symlink /system/etc/terminfo /usr/share/terminfo
procmgr_symlink /system/etc/profile /data/var/etc/profile
procmgr_symlink /system/etc/termcap /data/var/etc/termcap
procmgr_symlink /system/usr/share/misc/magic /usr/share/misc/magic
procmgr_symlink /data/var/etc /etc
procmgr_symlink /data/var/opt /opt
procmgr_symlink /data/var /var
procmgr_symlink /data/home/root /root
TERM=qansi
PATH=/opt/bin:/proc/boot:/system/xbin
LD_LIBRARY_PATH=/opt/lib:/proc/boot:/system/lib:/system/lib/dll
PCI_BKWD_COMPAT_MODULE=/proc/boot/pci_bkwd_compat.so
PCI_SLOG_MODULE=pci_slog2.so
PCI_CAP_MODULE_DIR=/proc/boot/lib/dll/pci/
procmgr_symlink /system/xbin/login /bin/login
#50.builtin
setconf TIMEZONE UTC0
rtc hw
mount -uo noexec /dev/shmem
# local/snippets/ifs_start.custom
# Commands executed from ifs start-up script prior to invoking main start-up script or slm
#~30.builtin
/proc/boot/startup.sh
#~80.builtin
reopen /dev/con1
# Display startup message and system information
display_msg ""
display_msg "-------------- dev-qnx testing vm -----------------"
display_msg ""
uname -a
display_msg ""
# Init terminal with login shell as specified in /proc/boot/ttys
tinit -f /proc/boot/ttys &
}
startup.sh=./scripts/startup.sh
post_startup.sh=./scripts/post_startup.sh
mount_fs.sh=./scripts/mount_fs.sh
lib/libc.so
lib/libc.so.5
lib/libc.so.5.sym
lib/libgcc_s.so.1
lib/libm.so
lib/libm.so.3
lib/libm.so.3.sym
lib/libcam.so
lib/libcam.so.2
lib/libcam.so.2.sym
lib/dll/io-blk.so
lib/dll/io-blk.so.sym
lib/dll/cam-disk.so
lib/dll/cam-disk.so.sym
lib/dll/fs-qnx6.so
lib/dll/fs-qnx6.so.sym
lib/dll/fs-dos.so
lib/dll/fs-dos.so.sym
lib/libslog2.so
lib/libslog2.so.1
lib/libslog2.so.1.sym
usr/lib/libcrypto.so
usr/lib/libcrypto.so.2.1
usr/lib/libcrypto.so.2.1.sym
lib/libsocket.so
lib/libsocket.so.3
lib/libsocket.so.3.sym
usr/lib/libz.so
usr/lib/libz.so.2
usr/lib/libz.so.2.sym
lib/libslog2shim.so
lib/libslog2shim.so.1
lib/libslog2shim.so.1.sym
lib/libsecpol.so.1
lib/libsecpol.so.1.sym
lib/libpci.so
lib/libpci.so.2.3
lib/libpci.so.2.3.sym
lib/libpci.so.3.0
lib/libpci.so.3.0.sym
lib/libjson.so.1
lib/libjson.so.1.sym
#############################################
### Terminal Login
#############################################
[perms=444] ttys = {
/dev/con1 "/bin/login" qansi on
}
sbin/tinit
#############################################
### Utilities
#############################################
bin/on
bin/rm
# waitfor and ability are same binary as on
[type=link] waitfor=on
[type=link] ability=on
bin/echo
bin/ln
sbin/rtc
bin/setfacl
bin/ksh
# Allow sh to be found in PATH
[type=link] sh=ksh
bin/mount
usr/bin/getconf
# getconf and setconf are same binary
[type=link] setconf=getconf
#############################################
### Services
#############################################
sbin/devb-eide
sbin/devb-ahci
bin/slogger2
#############################################
### PCI
#############################################
[perms=0444] pci_server.cfg = {
[buscfg]
DO_BUS_CONFIG=no
[envars]
PCI_CAP_MODULE_DIR=/proc/boot/lib/dll/pci/
PCI_DEBUG_MODULE=pci_debug2.so
PCI_HW_MODULE=pci_hw-Intel_x86.so
}
lib/dll/pci/pci_hw-Intel_x86.so
lib/dll/pci/pci_hw-Intel_x86.so.3.0
lib/dll/pci/pci_hw-Intel_x86.so.3.0.sym
lib/dll/pci/pci_slog2.so
lib/dll/pci/pci_slog2.so.3.0
lib/dll/pci/pci_slog2.so.3.0.sym
lib/dll/pci/pci_cap-0x05.so=lib/dll/pci/pci_cap-0x05.so
lib/dll/pci/pci_cap-0x05.so.3.0=lib/dll/pci/pci_cap-0x05.so.3.0
lib/dll/pci/pci_cap-0x05.so.3.0.sym=lib/dll/pci/pci_cap-0x05.so.3.0.sym
lib/dll/pci/pci_cap-0x10.so=lib/dll/pci/pci_cap-0x10.so
lib/dll/pci/pci_cap-0x10.so.3.0=lib/dll/pci/pci_cap-0x10.so.3.0
lib/dll/pci/pci_cap-0x10.so.3.0.sym=lib/dll/pci/pci_cap-0x10.so.3.0.sym
lib/dll/pci/pci_cap-0x11.so=lib/dll/pci/pci_cap-0x11.so
lib/dll/pci/pci_cap-0x11.so.3.0=lib/dll/pci/pci_cap-0x11.so.3.0
lib/dll/pci/pci_cap-0x11.so.3.0.sym=lib/dll/pci/pci_cap-0x11.so.3.0.sym
lib/dll/pci/pci_strings.so
lib/dll/pci/pci_strings.so.3.0
lib/dll/pci/pci_strings.so.3.0.sym
lib/dll/pci/pci_bkwd_compat.so
lib/dll/pci/pci_bkwd_compat.so.3.0
lib/dll/pci/pci_bkwd_compat.so.3.0.sym
lib/dll/pci/pci_debug2.so
lib/dll/pci/pci_debug2.so.3.0
lib/dll/pci/pci_debug2.so.3.0.sym
sbin/pci-server
#############################################
### Miscellaneous
#############################################
# Capture the build information
[perms=0444] build/ifs.build=./parts/ifs.build
[perms=0444] build/system.build=./parts/system.build
[perms=0444] build/data.build=./parts/data.build
#############################################
### Customization
#############################################
usr/lib/libqcrypto.so
usr/lib/libqcrypto.so.1.0
usr/lib/libqcrypto.so.1.0.sym
lib/dll/qcrypto-openssl.so
lib/dll/qcrypto-openssl.so.sym
lib/libqh.so.1
lib/libqh.so.1.sym
lib/libregex.so.1
lib/libregex.so.1.sym
[uid=0 gid=0 perms=0444] qcrypto.conf={
openssl tags=*
}
# local/snippets/ifs_files.custom
# Placeholder for local list of files to add to ifs
usr/lib/ldqnx-64.so.2
usr/lib/ldqnx-64.so.2.sym