Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3634e41

Browse files
committed
Fix ports build, clarify instructions and README
1 parent 6f9f442 commit 3634e41

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ ADD_CUSTOM_TARGET(qemu
9292
)
9393

9494
ADD_CUSTOM_TARGET(tests
95-
COMMAND ${CMAKE_SOURCE_DIR}/scripts/qemu.sh kernel-tests=true
95+
COMMAND ${CMAKE_COMMAND} -E env "KERNEL_NAME=${KERNEL_EXECUTABLE_NAME}" "ARCH=${CMAKE_SYSTEM_PROCESSOR}" ${CMAKE_SOURCE_DIR}/scripts/qemu.sh kernel-tests=true
9696
USES_TERMINAL
9797
)

INSTRUCTIONS.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ To build something from the `edit` directory, pass the `edited-[thing]` to the `
5353
## Building and running duckOS
5454
1. In the `build/[arch]` directory, run `make install` to build the kernel & programs.
5555
2. Run `make image` to make the disk image.
56+
- If you'd like to add extra files to the image, create a folder named `user` at the root of the repository. These files will be copied to the root of the built image.
5657
4. Run `make qemu` to run qemu with the image you just made.
5758
5. Enjoy!
5859

5960
## Running kernel unit tests
6061
To run kernel unit tests, run `make install` and `make image` as usual, and then use `make tests` to run tests. Instead of running init, the kernel will run unit tests after booting.
6162

62-
Alternatively, supply the `kernel-tests` kernel argument to run tests.
63+
Alternatively, supply the `kernel-tests=true` kernel argument to run tests.
6364

6465
## Raspberry Pi
6566
*Note: aarch64 support is WIP, and even less likely to work properly on real hardware than in qemu. duckOS currently supports the Raspberry Pi 3B.*

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Ports can be installed by running [ports.sh](ports/ports.sh) supplied with the d
109109
Some of the more exciting ports are:
110110

111111
- [DOOM](ports/doom)
112+
- You'll need to provide your own DOOM wadfile and put it in the /apps/doom.app/ directory. (See [the build instructions](INSTRUCTIONS.md#building-and-running-duckos) for more details.)
112113
- [binutils](ports/binutils)
113114
- [gcc](ports/gcc)
114115
- [sdl2](ports/sdl2)

ports/ports.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
PORTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
SOURCE_DIR="$PORTS_DIR/.."
6-
ROOT_DIR="$SOURCE_DIR/cmake-build/root"
6+
ROOT_DIR="$SOURCE_DIR/build/i686/root"
77
PORTS_D_DIR="$ROOT_DIR/usr/ports.d"
8-
PATH="$PATH:$SOURCE_DIR/toolchain/tools/bin"
8+
PATH="$PATH:$SOURCE_DIR/toolchain/tools/i686/bin"
99
NUM_JOBS=$(( $(nproc) / 2 ))
1010

1111
SED_BIN="sed"

0 commit comments

Comments
 (0)