FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MS-DOS-kernel/ci_prereq.sh at master · Programuserbash/MS-DOS-kernel · GitHub
Programuserbash
/
MS-DOS-kernel
Public
forked from
FDOS/kernel
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
MS-DOS-kernel
/
ci_prereq.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
87 lines (63 loc) · 2.53 KB
Breadcrumbs
MS-DOS-kernel
/
ci_prereq.sh
Copy path
File metadata and controls
executable file
·
87 lines (63 loc) · 2.53 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/bin/sh
set
-e
sudo add-apt-repository -y ppa:tkchia/build-ia16
sudo add-apt-repository -y ppa:dosemu2/ppa
sudo apt update
#
for cross building
sudo apt install gcc-ia16-elf libi86-ia16-elf nasm upx qemu-system-x86 mtools util-linux bash
#
for building with DOS using an emulator
sudo apt install dosemu2 dos2unix
#
Perhaps later we should build using Freecom from published package
mkdir -p _downloads
mkdir -p _watcom
cd
_downloads
HERE=
$(
pwd
)
#
download and unpack Open Watcom snapshot
[
-f
ow-snapshot.tar.xz ]
||
wget --no-verbose https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/ow-snapshot.tar.xz
tar -C ../_watcom -xf ow-snapshot.tar.xz
#
IBIBLIO_PATH='http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos'
IBIBLIO_PATH=
'
https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/repositories/1.3
'
BASE=
${IBIBLIO_PATH}
/base
#
get FreeDOS kernel
[
-f
kernel.zip ]
||
wget --no-verbose
${BASE}
/kernel.zip
#
get FreeCOM
[
-f
freecom.zip ]
||
wget --no-verbose
${BASE}
/freecom.zip
DEVEL=
${IBIBLIO_PATH}
/devel
#
get gnumake for DOS
[
-f
djgpp_mk.zip ]
||
wget --no-verbose
${DEVEL}
/djgpp_mk.zip
#
get nasm for DOS
[
-f
nasm.zip ]
||
wget --no-verbose
${DEVEL}
/nasm.zip
#
get upx for DOS
[
-f
upx.zip ]
||
wget --no-verbose
${DEVEL}
/upx.zip
#
grab ia16-gcc from ibiblio.org
#
[ -f i16gcc.zip ] || wget --no-verbose ${DEVEL}/i16gcc.zip
#
[ -f i16newli.zip ] || wget --no-verbose ${DEVEL}/i16newli.zip
#
[ -f i16butil.zip ] || wget --no-verbose ${DEVEL}/i16butil.zip
#
[ -f i16lbi86.zip ] || wget --no-verbose ${DEVEL}/i16lbi86.zip
#
get watcom for DOS
[
-f
watcomc.zip ]
||
wget --no-verbose
${DEVEL}
/watcomc.zip
mkdir -p
${HOME}
/.dosemu/drive_c
cd
${HOME}
/.dosemu/drive_c
&&
(
mkdir -p bin
#
Boot files
unzip -LL -q
${HERE}
/kernel.zip
cp -p bin/kernl386.sys ./kernel.sys
unzip -LL -q
${HERE}
/freecom.zip
cp -p bin/command.com ./command.com
cp -p /usr/share/dosemu/dosemu2-cmds-0.3/c/fdconfig.sys
.
#
Development files
unzip -LL -q
${HERE}
/djgpp_mk.zip
cp -p devel/djgpp/bin/make.exe bin/.
unzip -LL -q
${HERE}
/upx.zip
cp -p devel/upx/upx.exe bin/.
echo
PATH to make and upx binaries is
'
c:/bin
'
unzip -LL -q
${HERE}
/nasm.zip
echo
PATH to nasm binary is
'
c:/devel/nasm
'
#
unzip -LL -q ${HERE}/i16gcc.zip
#
unzip -LL -q ${HERE}/i16newli.zip
#
unzip -LL -q ${HERE}/i16butil.zip
#
unzip -LL -q ${HERE}/i16lbi86.zip
#
echo PATH to ia16 binaries is 'c:/devel/i16gnu/bin'
unzip -LL -q
${HERE}
/watcomc.zip
echo
PATH to watcom binaries is
'
c:/devel/watcomc/binw
'
)
Back
|
FazBrowse Home
|
New Git URL