@@ -15,8 +15,9 @@ There are also large subproject is the ISO Loader, which contains emulation of B
1515sudo apt-get install -y genisoimage squashfs-tools texinfo git
1616sudo apt-get install -y libpng-dev libjpeg-dev liblzo2-dev liblua5.2-dev
1717sudo apt-get install -y libmpc-dev
18- cd /tmp && git clone https://github.com/LuaDist/tolua.git && cd tolua
19- mkdir build && cd ./build
18+ cd /tmp
19+ git clone https://github.com/LuaDist/tolua.git
20+ cd /tmp/tolua && mkdir build && cd ./build
2021cmake ../ && make && sudo make install
2122```
2223##### Code
@@ -25,7 +26,8 @@ sudo mkdir -p /usr/local/dc/kos
2526sudo chown -R $(id -u):$(id -g) /usr/local/dc
2627cd /usr/local/dc/kos
2728git clone https://github.com/KallistiOS/kos-ports.git
28- git clone https://github.com/KallistiOS/KallistiOS.git kos && cd kos
29+ git clone https://github.com/KallistiOS/KallistiOS.git kos
30+ cd /usr/local/dc/kos/kos
2931git clone https://github.com/DC-SWAT/DreamShell.git ds
3032git checkout `cat ds/sdk/doc/KallistiOS.txt`
3133cp ds/sdk/toolchain/environ.sh environ.sh
@@ -37,7 +39,7 @@ sudo mkdir -p /opt/toolchains/dc
3739sudo chown -R $(id -u):$(id -g) /opt/toolchains/dc
3840cd /usr/local/dc/kos/kos/utils/dc-chain
3941cp Makefile.default.cfg Makefile.cfg
40- make && cd ../../
42+ make
4143```
4244##### SDK
4345``` console
@@ -58,35 +60,52 @@ cd /usr/local/dc/kos/kos/ds && source ../environ.sh
5860```
5961
6062### Build code
61- ##### Core and libraries
63+ ##### Full build
64+ ``` console
65+ make build
66+ ```
67+ ##### Full clean
68+ ``` console
69+ make clean-all
70+ ```
71+ ##### Make release package
72+ ``` console
73+ make release
74+ ```
75+ ##### Update code from GitHub
76+ ``` console
77+ make update
78+ ```
79+ ##### Update code from GitHub and re-build
80+ ``` console
81+ make update-build
82+ ```
83+ ##### Re-build toochain (if updated)
84+ ``` console
85+ make toolchain
86+ ```
87+ ##### Core and libraries only
6288``` console
6389make
6490```
65- ##### Modules, applications and commands
91+ ##### Modules, applications and commands only
6692``` console
6793cd ${KOS_BASE}/ds/modules && make
6894cd ${KOS_BASE}/ds/commands && make
6995cd ${KOS_BASE}/ds/applications && make
7096```
71- ##### Firmwares
97+ ##### Firmwares only
7298``` console
7399cd ${KOS_BASE}/ds/firmware/bootloader && make && make release
74100cd ${KOS_BASE}/ds/firmware/isoldr && make && make install
75101```
76- ##### Full build (modules, apps etc)
77- ``` console
78- make build
79- ```
80- ##### Make release package
81- ``` console
82- make release
83- ```
84102
85103### Running
86104- dc-tool-ip: ` make run `
87105- dc-tool-serial: ` make run-serial `
88106- lxdream emulator: ` make lxdream `
89107- nulldc emulator: ` make nulldc `
108+ - flycast emulator: ` make flycast `
90109- make cdi image: ` make cdi `
91110
92111## Links
0 commit comments