2016-08-29 02:38:53 +02:00
|
|
|
ARCH?=x86_64
|
2016-08-14 02:21:46 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
# Kernel variables
|
|
|
|
KTARGET=$(ARCH)-unknown-none
|
|
|
|
KBUILD=build/kernel
|
|
|
|
KRUSTC=./krustc.sh
|
2016-11-03 05:14:02 +01:00
|
|
|
KRUSTCFLAGS=--target $(KTARGET).json -C opt-level=2 -C debuginfo=0 -C soft-float
|
2016-10-16 22:06:01 +02:00
|
|
|
KRUSTDOC=./krustdoc.sh
|
|
|
|
KCARGO=RUSTC="$(KRUSTC)" RUSTDOC="$(KRUSTDOC)" cargo
|
2016-11-03 05:14:02 +01:00
|
|
|
KCARGOFLAGS=--target $(KTARGET).json --release -- -C soft-float
|
2016-09-10 03:08:04 +02:00
|
|
|
|
|
|
|
# Userspace variables
|
|
|
|
TARGET=$(ARCH)-unknown-redox
|
|
|
|
BUILD=build/userspace
|
|
|
|
RUSTC=./rustc.sh
|
2016-11-11 04:22:43 +01:00
|
|
|
RUSTCFLAGS=--target $(TARGET).json -C opt-level=2 -C debuginfo=0
|
2016-10-16 22:06:01 +02:00
|
|
|
RUSTDOC=./rustdoc.sh
|
|
|
|
CARGO=RUSTC="$(RUSTC)" RUSTDOC="$(RUSTDOC)" cargo
|
2016-11-11 04:22:43 +01:00
|
|
|
CARGOFLAGS=--target $(TARGET).json --release --
|
2016-09-10 03:08:04 +02:00
|
|
|
|
|
|
|
# Default targets
|
2016-11-18 17:01:39 +01:00
|
|
|
.PHONY: all clean doc ref test update qemu bochs drivers schemes binutils coreutils extrautils netutils userutils wireshark FORCE
|
2016-09-10 03:08:04 +02:00
|
|
|
|
|
|
|
all: $(KBUILD)/harddrive.bin
|
2016-08-26 01:03:01 +02:00
|
|
|
|
2016-11-02 15:32:14 +01:00
|
|
|
FORCE:
|
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
clean:
|
|
|
|
cargo clean
|
|
|
|
cargo clean --manifest-path libstd/Cargo.toml
|
2016-09-27 01:13:35 +02:00
|
|
|
cargo clean --manifest-path drivers/ahcid/Cargo.toml
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
cargo clean --manifest-path drivers/e1000d/Cargo.toml
|
2016-09-20 16:47:16 +02:00
|
|
|
cargo clean --manifest-path drivers/ps2d/Cargo.toml
|
2016-09-11 23:56:48 +02:00
|
|
|
cargo clean --manifest-path drivers/pcid/Cargo.toml
|
2016-10-20 20:53:36 +02:00
|
|
|
cargo clean --manifest-path drivers/rtl8168d/Cargo.toml
|
2016-09-21 05:52:45 +02:00
|
|
|
cargo clean --manifest-path drivers/vesad/Cargo.toml
|
2016-10-31 17:49:00 +01:00
|
|
|
cargo clean --manifest-path programs/acid/Cargo.toml
|
2016-11-17 04:54:38 +01:00
|
|
|
cargo clean --manifest-path programs/contain/Cargo.toml
|
2016-09-22 18:10:27 +02:00
|
|
|
cargo clean --manifest-path programs/init/Cargo.toml
|
|
|
|
cargo clean --manifest-path programs/ion/Cargo.toml
|
2016-11-18 17:01:39 +01:00
|
|
|
cargo clean --manifest-path programs/binutils/Cargo.toml
|
2016-09-23 05:13:17 +02:00
|
|
|
cargo clean --manifest-path programs/coreutils/Cargo.toml
|
2016-09-28 19:07:54 +02:00
|
|
|
cargo clean --manifest-path programs/extrautils/Cargo.toml
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
cargo clean --manifest-path programs/netutils/Cargo.toml
|
|
|
|
cargo clean --manifest-path programs/orbutils/Cargo.toml
|
2016-10-24 03:02:48 +02:00
|
|
|
cargo clean --manifest-path programs/pkgutils/Cargo.toml
|
2016-10-07 18:42:17 +02:00
|
|
|
cargo clean --manifest-path programs/userutils/Cargo.toml
|
2016-09-29 06:19:18 +02:00
|
|
|
cargo clean --manifest-path programs/smith/Cargo.toml
|
2016-10-19 01:13:26 +02:00
|
|
|
cargo clean --manifest-path programs/tar/Cargo.toml
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
cargo clean --manifest-path schemes/ethernetd/Cargo.toml
|
2016-09-21 00:23:28 +02:00
|
|
|
cargo clean --manifest-path schemes/example/Cargo.toml
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
cargo clean --manifest-path schemes/ipd/Cargo.toml
|
|
|
|
cargo clean --manifest-path schemes/orbital/Cargo.toml
|
2016-11-01 16:53:48 +01:00
|
|
|
cargo clean --manifest-path schemes/ptyd/Cargo.toml
|
|
|
|
cargo clean --manifest-path schemes/randd/Cargo.toml
|
2016-09-28 18:29:47 +02:00
|
|
|
cargo clean --manifest-path schemes/redoxfs/Cargo.toml
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
cargo clean --manifest-path schemes/tcpd/Cargo.toml
|
|
|
|
cargo clean --manifest-path schemes/udpd/Cargo.toml
|
2016-11-05 13:32:53 +01:00
|
|
|
-$(FUMOUNT) $(BUILD)/filesystem/
|
2016-09-21 05:52:45 +02:00
|
|
|
rm -rf initfs/bin
|
2016-09-28 05:56:29 +02:00
|
|
|
rm -rf filesystem/bin
|
2016-09-10 03:08:04 +02:00
|
|
|
rm -rf build
|
2016-11-02 15:32:14 +01:00
|
|
|
|
2016-11-02 04:33:28 +01:00
|
|
|
doc: \
|
|
|
|
doc-kernel \
|
2016-11-02 15:32:14 +01:00
|
|
|
doc-std
|
2016-09-10 03:08:04 +02:00
|
|
|
|
2016-10-18 15:52:33 +02:00
|
|
|
#FORCE to let cargo decide if docs need updating
|
2016-11-02 15:32:14 +01:00
|
|
|
doc-kernel: $(KBUILD)/libkernel.a FORCE
|
2016-10-16 22:06:01 +02:00
|
|
|
$(KCARGO) doc --target $(KTARGET).json
|
|
|
|
|
2016-11-02 15:32:14 +01:00
|
|
|
doc-std: $(BUILD)/libstd.rlib FORCE
|
2016-10-18 15:52:33 +02:00
|
|
|
$(CARGO) doc --target $(TARGET).json --manifest-path libstd/Cargo.toml
|
|
|
|
|
2016-11-08 17:00:21 +01:00
|
|
|
ref: FORCE
|
|
|
|
rm -rf filesystem/ref/
|
|
|
|
mkdir -p filesystem/ref/
|
2016-11-18 17:01:39 +01:00
|
|
|
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/binutils/src/bin/ filesystem/ref/
|
2016-11-08 17:00:21 +01:00
|
|
|
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/coreutils/src/bin/ filesystem/ref/
|
|
|
|
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/extrautils/src/bin/ filesystem/ref/
|
2016-11-08 17:09:14 +01:00
|
|
|
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/netutils/src/ filesystem/ref/
|
2016-11-08 17:00:21 +01:00
|
|
|
|
2016-11-14 19:04:31 +01:00
|
|
|
test:
|
|
|
|
cargo test
|
|
|
|
cargo test --manifest-path libstd/Cargo.toml
|
|
|
|
cargo test --manifest-path drivers/ahcid/Cargo.toml
|
|
|
|
cargo test --manifest-path drivers/e1000d/Cargo.toml
|
|
|
|
cargo test --manifest-path drivers/ps2d/Cargo.toml
|
|
|
|
cargo test --manifest-path drivers/pcid/Cargo.toml
|
|
|
|
cargo test --manifest-path drivers/rtl8168d/Cargo.toml
|
|
|
|
cargo test --manifest-path drivers/vesad/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/acid/Cargo.toml
|
2016-11-17 04:54:38 +01:00
|
|
|
cargo test --manifest-path programs/contain/Cargo.toml
|
2016-11-14 19:04:31 +01:00
|
|
|
cargo test --manifest-path programs/init/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/ion/Cargo.toml
|
2016-11-18 17:01:39 +01:00
|
|
|
cargo test --manifest-path programs/binutils/Cargo.toml
|
2016-11-14 19:04:31 +01:00
|
|
|
cargo test --manifest-path programs/coreutils/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/extrautils/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/netutils/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/orbutils/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/pkgutils/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/userutils/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/smith/Cargo.toml
|
|
|
|
cargo test --manifest-path programs/tar/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/ethernetd/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/example/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/ipd/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/orbital/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/ptyd/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/randd/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/redoxfs/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/tcpd/Cargo.toml
|
|
|
|
cargo test --manifest-path schemes/udpd/Cargo.toml
|
|
|
|
|
2016-10-14 19:37:50 +02:00
|
|
|
update:
|
|
|
|
cargo update
|
|
|
|
cargo update --manifest-path libstd/Cargo.toml
|
|
|
|
cargo update --manifest-path drivers/ahcid/Cargo.toml
|
|
|
|
cargo update --manifest-path drivers/e1000d/Cargo.toml
|
|
|
|
cargo update --manifest-path drivers/ps2d/Cargo.toml
|
|
|
|
cargo update --manifest-path drivers/pcid/Cargo.toml
|
2016-10-20 20:53:36 +02:00
|
|
|
cargo update --manifest-path drivers/rtl8168d/Cargo.toml
|
2016-10-14 19:37:50 +02:00
|
|
|
cargo update --manifest-path drivers/vesad/Cargo.toml
|
2016-10-31 17:49:00 +01:00
|
|
|
cargo update --manifest-path programs/acid/Cargo.toml
|
2016-11-17 04:54:38 +01:00
|
|
|
cargo update --manifest-path programs/contain/Cargo.toml
|
2016-10-14 19:37:50 +02:00
|
|
|
cargo update --manifest-path programs/init/Cargo.toml
|
|
|
|
cargo update --manifest-path programs/ion/Cargo.toml
|
2016-11-18 17:01:39 +01:00
|
|
|
cargo update --manifest-path programs/binutils/Cargo.toml
|
2016-10-14 19:37:50 +02:00
|
|
|
cargo update --manifest-path programs/coreutils/Cargo.toml
|
|
|
|
cargo update --manifest-path programs/extrautils/Cargo.toml
|
|
|
|
cargo update --manifest-path programs/netutils/Cargo.toml
|
|
|
|
cargo update --manifest-path programs/orbutils/Cargo.toml
|
2016-10-24 03:02:48 +02:00
|
|
|
cargo update --manifest-path programs/pkgutils/Cargo.toml
|
2016-10-14 19:37:50 +02:00
|
|
|
cargo update --manifest-path programs/userutils/Cargo.toml
|
|
|
|
cargo update --manifest-path programs/smith/Cargo.toml
|
2016-10-19 01:13:26 +02:00
|
|
|
cargo update --manifest-path programs/tar/Cargo.toml
|
2016-10-14 19:37:50 +02:00
|
|
|
cargo update --manifest-path schemes/ethernetd/Cargo.toml
|
|
|
|
cargo update --manifest-path schemes/example/Cargo.toml
|
|
|
|
cargo update --manifest-path schemes/ipd/Cargo.toml
|
|
|
|
cargo update --manifest-path schemes/orbital/Cargo.toml
|
2016-11-01 16:53:48 +01:00
|
|
|
cargo update --manifest-path schemes/ptyd/Cargo.toml
|
|
|
|
cargo update --manifest-path schemes/randd/Cargo.toml
|
2016-10-14 19:37:50 +02:00
|
|
|
cargo update --manifest-path schemes/redoxfs/Cargo.toml
|
|
|
|
cargo update --manifest-path schemes/tcpd/Cargo.toml
|
|
|
|
cargo update --manifest-path schemes/udpd/Cargo.toml
|
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
# Emulation
|
2016-11-01 05:18:38 +01:00
|
|
|
QEMU=SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-$(ARCH)
|
2016-09-27 19:14:27 +02:00
|
|
|
QEMUFLAGS=-serial mon:stdio -d cpu_reset -d guest_errors
|
2016-08-26 01:03:01 +02:00
|
|
|
ifeq ($(ARCH),arm)
|
|
|
|
LD=$(ARCH)-none-eabi-ld
|
|
|
|
QEMUFLAGS+=-cpu arm1176 -machine integratorcp
|
|
|
|
QEMUFLAGS+=-nographic
|
2016-09-10 03:08:04 +02:00
|
|
|
|
2016-09-22 00:46:16 +02:00
|
|
|
%.list: %
|
2016-09-10 03:08:04 +02:00
|
|
|
$(ARCH)-none-eabi-objdump -C -D $< > $@
|
|
|
|
|
2016-09-11 06:06:09 +02:00
|
|
|
$(KBUILD)/harddrive.bin: $(KBUILD)/kernel
|
2016-09-10 03:08:04 +02:00
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
qemu: $(KBUILD)/harddrive.bin
|
|
|
|
$(QEMU) $(QEMUFLAGS) -kernel $<
|
2016-08-26 01:03:01 +02:00
|
|
|
else
|
2016-10-26 21:19:56 +02:00
|
|
|
QEMUFLAGS+=-smp 4 -m 1024
|
2016-11-05 15:01:12 +01:00
|
|
|
ifeq ($(iommu),yes)
|
2016-10-26 21:19:56 +02:00
|
|
|
QEMUFLAGS+=-machine q35,iommu=on
|
2016-11-05 15:01:12 +01:00
|
|
|
else
|
|
|
|
QEMUFLAGS+=-machine q35
|
2016-10-26 21:19:56 +02:00
|
|
|
endif
|
2016-10-08 04:18:05 +02:00
|
|
|
ifeq ($(net),no)
|
|
|
|
QEMUFLAGS+=-net none
|
|
|
|
else
|
|
|
|
QEMUFLAGS+=-net nic,model=e1000 -net user -net dump,file=$(KBUILD)/network.pcap
|
2016-10-24 03:02:48 +02:00
|
|
|
ifeq ($(net),redir)
|
|
|
|
QEMUFLAGS+=-redir tcp:8080::8080
|
|
|
|
endif
|
2016-10-08 04:18:05 +02:00
|
|
|
endif
|
2016-09-29 20:25:43 +02:00
|
|
|
ifeq ($(storage),usb)
|
|
|
|
QEMUFLAGS+=-device usb-ehci,id=flash_bus -drive id=flash_drive,file=$(KBUILD)/harddrive.bin,format=raw,if=none -device usb-storage,drive=flash_drive,bus=flash_bus.0
|
|
|
|
else
|
2016-09-30 00:03:59 +02:00
|
|
|
QEMUFLAGS+=-drive file=$(KBUILD)/harddrive.bin,format=raw
|
2016-09-29 20:25:43 +02:00
|
|
|
endif
|
2016-09-11 23:13:09 +02:00
|
|
|
ifeq ($(vga),no)
|
|
|
|
QEMUFLAGS+=-nographic -vga none
|
|
|
|
endif
|
2016-08-26 01:03:01 +02:00
|
|
|
#,int,pcall
|
|
|
|
#-device intel-iommu
|
|
|
|
|
|
|
|
UNAME := $(shell uname)
|
|
|
|
ifeq ($(UNAME),Darwin)
|
2016-10-16 04:56:03 +02:00
|
|
|
CC=$(ARCH)-elf-gcc
|
|
|
|
CXX=$(ARCH)-elf-g++
|
|
|
|
ECHO=/bin/echo
|
2016-10-16 21:58:45 +02:00
|
|
|
FUMOUNT=sudo umount
|
2016-08-26 01:03:01 +02:00
|
|
|
LD=$(ARCH)-elf-ld
|
2016-10-16 04:56:03 +02:00
|
|
|
LDFLAGS=--gc-sections
|
|
|
|
KRUSTCFLAGS+=-C linker=$(CC)
|
|
|
|
KCARGOFLAGS+=-C linker=$(CC)
|
|
|
|
RUSTCFLAGS+=-C linker=$(CC)
|
|
|
|
CARGOFLAGS+=-C linker=$(CC)
|
2016-11-07 01:35:56 +01:00
|
|
|
VB_AUDIO=coreaudio
|
|
|
|
VBM="/Applications/VirtualBox.app/Contents/MacOS/VBoxManage"
|
2016-10-16 04:56:03 +02:00
|
|
|
else
|
|
|
|
CC=gcc
|
|
|
|
CXX=g++
|
|
|
|
ECHO=echo
|
2016-10-16 21:58:45 +02:00
|
|
|
FUMOUNT=fusermount -u
|
2016-10-16 04:56:03 +02:00
|
|
|
LD=ld
|
|
|
|
LDFLAGS=--gc-sections
|
|
|
|
ifneq ($(kvm),no)
|
|
|
|
QEMUFLAGS+=-enable-kvm -cpu host
|
|
|
|
endif
|
2016-11-07 01:35:56 +01:00
|
|
|
VB_AUDIO="pulse"
|
|
|
|
VBM=VBoxManage
|
2016-08-26 01:03:01 +02:00
|
|
|
endif
|
2016-08-20 17:44:14 +02:00
|
|
|
|
2016-09-22 00:46:16 +02:00
|
|
|
%.list: %
|
2016-09-10 03:08:04 +02:00
|
|
|
objdump -C -M intel -D $< > $@
|
2016-08-14 02:58:31 +02:00
|
|
|
|
2016-11-11 04:02:51 +01:00
|
|
|
$(KBUILD)/harddrive.bin: $(KBUILD)/kernel bootloader/$(ARCH)/** $(BUILD)/filesystem.bin
|
2016-09-11 06:06:09 +02:00
|
|
|
nasm -f bin -o $@ -D ARCH_$(ARCH) -ibootloader/$(ARCH)/ bootloader/$(ARCH)/harddrive.asm
|
2016-08-14 02:58:31 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
qemu: $(KBUILD)/harddrive.bin
|
2016-09-29 20:25:43 +02:00
|
|
|
$(QEMU) $(QEMUFLAGS)
|
2016-09-29 06:19:18 +02:00
|
|
|
|
|
|
|
qemu_no_build:
|
2016-09-29 20:25:43 +02:00
|
|
|
$(QEMU) $(QEMUFLAGS)
|
2016-09-10 03:08:04 +02:00
|
|
|
endif
|
2016-08-14 02:21:46 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
bochs: $(KBUILD)/harddrive.bin
|
2016-08-14 02:21:46 +02:00
|
|
|
bochs -f bochs.$(ARCH)
|
|
|
|
|
2016-11-07 01:35:56 +01:00
|
|
|
virtualbox: $(KBUILD)/harddrive.bin
|
|
|
|
echo "Delete VM"
|
|
|
|
-$(VBM) unregistervm Redox --delete; \
|
|
|
|
if [ $$? -ne 0 ]; \
|
|
|
|
then \
|
|
|
|
if [ -d "$$HOME/VirtualBox VMs/Redox" ]; \
|
|
|
|
then \
|
|
|
|
echo "Redox directory exists, deleting..."; \
|
|
|
|
$(RM) -rf "$$HOME/VirtualBox VMs/Redox"; \
|
|
|
|
fi \
|
|
|
|
fi
|
|
|
|
echo "Delete Disk"
|
|
|
|
-$(RM) harddrive.vdi
|
|
|
|
echo "Create VM"
|
|
|
|
$(VBM) createvm --name Redox --register
|
|
|
|
echo "Set Configuration"
|
|
|
|
$(VBM) modifyvm Redox --memory 1024
|
|
|
|
$(VBM) modifyvm Redox --vram 16
|
|
|
|
$(VBM) modifyvm Redox --nic1 nat
|
|
|
|
$(VBM) modifyvm Redox --nictype1 82540EM
|
|
|
|
$(VBM) modifyvm Redox --cableconnected1 on
|
|
|
|
$(VBM) modifyvm Redox --nictrace1 on
|
|
|
|
$(VBM) modifyvm Redox --nictracefile1 $(KBUILD)/network.pcap
|
|
|
|
$(VBM) modifyvm Redox --uart1 0x3F8 4
|
|
|
|
$(VBM) modifyvm Redox --uartmode1 file $(KBUILD)/serial.log
|
|
|
|
$(VBM) modifyvm Redox --usb off # on
|
|
|
|
$(VBM) modifyvm Redox --keyboard ps2
|
|
|
|
$(VBM) modifyvm Redox --mouse ps2
|
|
|
|
$(VBM) modifyvm Redox --audio $(VB_AUDIO)
|
|
|
|
$(VBM) modifyvm Redox --audiocontroller ac97
|
|
|
|
echo "Create Disk"
|
|
|
|
$(VBM) convertfromraw $< $(KBUILD)/harddrive.vdi
|
|
|
|
echo "Attach Disk"
|
|
|
|
$(VBM) storagectl Redox --name ATA --add sata --controller IntelAHCI --bootable on --portcount 1
|
|
|
|
$(VBM) storageattach Redox --storagectl ATA --port 0 --device 0 --type hdd --medium $(KBUILD)/harddrive.vdi
|
|
|
|
echo "Run VM"
|
|
|
|
$(VBM) startvm Redox
|
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
# Kernel recipes
|
|
|
|
$(KBUILD)/libcore.rlib: rust/src/libcore/lib.rs
|
|
|
|
mkdir -p $(KBUILD)
|
|
|
|
$(KRUSTC) $(KRUSTCFLAGS) -o $@ $<
|
2016-08-14 02:21:46 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
$(KBUILD)/librand.rlib: rust/src/librand/lib.rs $(KBUILD)/libcore.rlib
|
|
|
|
$(KRUSTC) $(KRUSTCFLAGS) -o $@ $<
|
2016-08-15 02:16:56 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
$(KBUILD)/liballoc.rlib: rust/src/liballoc/lib.rs $(KBUILD)/libcore.rlib
|
|
|
|
$(KRUSTC) $(KRUSTCFLAGS) -o $@ $<
|
2016-09-10 01:13:16 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
$(KBUILD)/librustc_unicode.rlib: rust/src/librustc_unicode/lib.rs $(KBUILD)/libcore.rlib
|
|
|
|
$(KRUSTC) $(KRUSTCFLAGS) -o $@ $<
|
2016-08-15 19:29:53 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
$(KBUILD)/libcollections.rlib: rust/src/libcollections/lib.rs $(KBUILD)/libcore.rlib $(KBUILD)/liballoc.rlib $(KBUILD)/librustc_unicode.rlib
|
|
|
|
$(KRUSTC) $(KRUSTCFLAGS) -o $@ $<
|
2016-08-15 19:29:53 +02:00
|
|
|
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
$(KBUILD)/libkernel.a: kernel/** $(KBUILD)/libcore.rlib $(KBUILD)/liballoc.rlib $(KBUILD)/libcollections.rlib $(BUILD)/initfs.rs
|
2016-10-16 04:56:03 +02:00
|
|
|
$(KCARGO) rustc $(KCARGOFLAGS) -C lto -o $@
|
2016-08-15 19:29:53 +02:00
|
|
|
|
2016-09-11 06:06:09 +02:00
|
|
|
$(KBUILD)/kernel: $(KBUILD)/libkernel.a
|
2016-10-16 04:56:03 +02:00
|
|
|
$(LD) $(LDFLAGS) -z max-page-size=0x1000 -T arch/$(ARCH)/src/linker.ld -o $@ $<
|
2016-09-09 03:09:58 +02:00
|
|
|
|
2016-09-10 03:08:04 +02:00
|
|
|
# Userspace recipes
|
|
|
|
$(BUILD)/libcore.rlib: rust/src/libcore/lib.rs
|
|
|
|
mkdir -p $(BUILD)
|
|
|
|
$(RUSTC) $(RUSTCFLAGS) -o $@ $<
|
2016-09-09 03:09:58 +02:00
|
|
|
|
2016-10-31 17:49:00 +01:00
|
|
|
$(BUILD)/liballoc.rlib: rust/src/liballoc/lib.rs $(BUILD)/libcore.rlib
|
2016-09-10 03:08:04 +02:00
|
|
|
$(RUSTC) $(RUSTCFLAGS) -o $@ $<
|
2016-08-14 02:21:46 +02:00
|
|
|
|
2016-10-31 17:49:00 +01:00
|
|
|
$(BUILD)/libcollections.rlib: rust/src/libcollections/lib.rs $(BUILD)/libcore.rlib $(BUILD)/liballoc.rlib $(BUILD)/librustc_unicode.rlib
|
2016-09-10 03:08:04 +02:00
|
|
|
$(RUSTC) $(RUSTCFLAGS) -o $@ $<
|
2016-08-14 02:21:46 +02:00
|
|
|
|
2016-10-31 17:49:00 +01:00
|
|
|
$(BUILD)/librand.rlib: rust/src/librand/lib.rs $(BUILD)/libcore.rlib
|
2016-09-10 03:08:04 +02:00
|
|
|
$(RUSTC) $(RUSTCFLAGS) -o $@ $<
|
2016-08-26 01:03:01 +02:00
|
|
|
|
2016-10-31 17:49:00 +01:00
|
|
|
$(BUILD)/librustc_unicode.rlib: rust/src/librustc_unicode/lib.rs $(BUILD)/libcore.rlib
|
2016-09-10 03:08:04 +02:00
|
|
|
$(RUSTC) $(RUSTCFLAGS) -o $@ $<
|
2016-08-26 01:03:01 +02:00
|
|
|
|
2016-10-31 19:37:29 +01:00
|
|
|
libstd/openlibm/libopenlibm.a:
|
|
|
|
CROSSCC=$(CC) CFLAGS=-fno-stack-protector make -C libstd/openlibm libopenlibm.a
|
2016-09-23 00:15:09 +02:00
|
|
|
|
2016-10-31 19:37:29 +01:00
|
|
|
$(BUILD)/libopenlibm.a: libstd/openlibm/libopenlibm.a
|
2016-09-23 00:15:09 +02:00
|
|
|
mkdir -p $(BUILD)
|
|
|
|
cp $< $@
|
|
|
|
|
2016-11-17 20:12:02 +01:00
|
|
|
$(BUILD)/libstd.rlib: libstd/Cargo.toml rust/src/libstd/** $(BUILD)/libcore.rlib $(BUILD)/liballoc.rlib $(BUILD)/librustc_unicode.rlib $(BUILD)/libcollections.rlib $(BUILD)/librand.rlib $(BUILD)/libopenlibm.a
|
2016-11-11 04:02:51 +01:00
|
|
|
$(CARGO) rustc --verbose --manifest-path $< $(CARGOFLAGS) -o $@
|
2016-11-17 20:12:02 +01:00
|
|
|
cp libstd/target/$(TARGET)/release/deps/*.rlib $(BUILD)
|
2016-11-10 01:00:48 +01:00
|
|
|
|
2016-09-21 05:52:45 +02:00
|
|
|
initfs/bin/%: drivers/%/Cargo.toml drivers/%/src/** $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p initfs/bin
|
2016-09-19 04:17:08 +02:00
|
|
|
$(CARGO) rustc --manifest-path $< $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
2016-09-21 05:52:45 +02:00
|
|
|
rm $@.d
|
2016-09-19 04:17:08 +02:00
|
|
|
|
2016-09-22 16:43:22 +02:00
|
|
|
initfs/bin/%: programs/%/Cargo.toml programs/%/src/** $(BUILD)/libstd.rlib
|
2016-09-21 05:52:45 +02:00
|
|
|
mkdir -p initfs/bin
|
2016-09-21 00:23:28 +02:00
|
|
|
$(CARGO) rustc --manifest-path $< $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
2016-09-21 05:52:45 +02:00
|
|
|
rm $@.d
|
|
|
|
|
2016-09-22 16:43:22 +02:00
|
|
|
initfs/bin/%: schemes/%/Cargo.toml schemes/%/src/** $(BUILD)/libstd.rlib
|
2016-09-21 05:56:40 +02:00
|
|
|
mkdir -p initfs/bin
|
2016-09-28 05:20:14 +02:00
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
2016-09-21 05:56:40 +02:00
|
|
|
strip $@
|
|
|
|
rm $@.d
|
2016-09-21 05:52:45 +02:00
|
|
|
|
2016-11-18 05:44:53 +01:00
|
|
|
initfs/filesystem.bin: $(BUILD)/filesystem.bin
|
|
|
|
cp $< $@
|
|
|
|
|
2016-09-28 17:00:28 +02:00
|
|
|
$(BUILD)/initfs.rs: \
|
2016-11-18 05:44:53 +01:00
|
|
|
initfs/filesystem.bin \
|
2016-09-28 17:00:28 +02:00
|
|
|
initfs/bin/init \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
initfs/bin/ahcid \
|
|
|
|
initfs/bin/pcid \
|
2016-10-23 03:35:23 +02:00
|
|
|
initfs/bin/ps2d \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
initfs/bin/redoxfs \
|
2016-10-23 03:35:23 +02:00
|
|
|
initfs/bin/vesad \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
initfs/etc/**
|
2016-09-28 17:00:28 +02:00
|
|
|
echo 'use collections::BTreeMap;' > $@
|
|
|
|
echo 'pub fn gen() -> BTreeMap<&'"'"'static [u8], (&'"'"'static [u8], bool)> {' >> $@
|
|
|
|
echo ' let mut files: BTreeMap<&'"'"'static [u8], (&'"'"'static [u8], bool)> = BTreeMap::new();' >> $@
|
|
|
|
for folder in `find initfs -type d | sort`; do \
|
|
|
|
name=$$(echo $$folder | sed 's/initfs//' | cut -d '/' -f2-) ; \
|
2016-10-16 04:56:03 +02:00
|
|
|
$(ECHO) -n ' files.insert(b"'$$name'", (b"' >> $@ ; \
|
2016-09-28 17:00:28 +02:00
|
|
|
ls -1 $$folder | sort | awk 'NR > 1 {printf("\\n")} {printf("%s", $$0)}' >> $@ ; \
|
|
|
|
echo '", true));' >> $@ ; \
|
|
|
|
done
|
|
|
|
find initfs -type f -o -type l | cut -d '/' -f2- | sort | awk '{printf(" files.insert(b\"%s\", (include_bytes!(\"../../initfs/%s\"), false));\n", $$0, $$0)}' >> $@
|
|
|
|
echo ' files' >> $@
|
|
|
|
echo '}' >> $@
|
|
|
|
|
|
|
|
filesystem/bin/%: drivers/%/Cargo.toml drivers/%/src/** $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/%: programs/%/Cargo.toml programs/%/src/** $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
2016-10-19 01:13:26 +02:00
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
2016-09-28 05:56:29 +02:00
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
2016-10-18 04:14:53 +02:00
|
|
|
filesystem/bin/sh: filesystem/bin/ion
|
|
|
|
cp $< $@
|
|
|
|
|
2016-11-18 17:01:39 +01:00
|
|
|
filesystem/bin/%: programs/binutils/Cargo.toml programs/binutils/src/bin/%.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/%: programs/coreutils/Cargo.toml programs/coreutils/src/bin/%.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/%: programs/extrautils/Cargo.toml programs/extrautils/src/bin/%.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
filesystem/bin/%: programs/netutils/Cargo.toml programs/netutils/src/%/**.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
|
|
|
filesystem/bin/%: programs/orbutils/Cargo.toml programs/orbutils/src/%/**.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
2016-10-19 01:13:26 +02:00
|
|
|
filesystem/bin/%: programs/pkgutils/Cargo.toml programs/pkgutils/src/%/**.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
|
|
|
|
2016-10-07 18:42:17 +02:00
|
|
|
filesystem/bin/%: programs/userutils/Cargo.toml programs/userutils/src/bin/%.rs $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
2016-09-28 17:00:28 +02:00
|
|
|
filesystem/bin/%: schemes/%/Cargo.toml schemes/%/src/** $(BUILD)/libstd.rlib
|
|
|
|
mkdir -p filesystem/bin
|
|
|
|
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
|
|
|
strip $@
|
|
|
|
rm $@.d
|
|
|
|
|
|
|
|
drivers: \
|
2016-10-08 04:18:05 +02:00
|
|
|
filesystem/bin/e1000d \
|
2016-10-23 03:35:23 +02:00
|
|
|
filesystem/bin/rtl8168d
|
2016-09-28 17:00:28 +02:00
|
|
|
|
2016-11-18 17:01:39 +01:00
|
|
|
binutils: \
|
|
|
|
filesystem/bin/hex \
|
|
|
|
filesystem/bin/hexdump \
|
|
|
|
filesystem/bin/strings
|
|
|
|
|
2016-09-28 05:56:29 +02:00
|
|
|
coreutils: \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/basename \
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/cat \
|
2016-11-16 01:08:14 +01:00
|
|
|
filesystem/bin/chmod \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/clear \
|
|
|
|
filesystem/bin/cp \
|
|
|
|
filesystem/bin/cut \
|
|
|
|
filesystem/bin/date \
|
2016-10-09 05:36:21 +02:00
|
|
|
filesystem/bin/dd \
|
2016-11-18 16:44:03 +01:00
|
|
|
filesystem/bin/df \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/du \
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/echo \
|
|
|
|
filesystem/bin/env \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/false \
|
2016-11-07 20:47:32 +01:00
|
|
|
filesystem/bin/free \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/head \
|
2016-11-17 20:12:02 +01:00
|
|
|
filesystem/bin/kill \
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/ls \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/mkdir \
|
|
|
|
filesystem/bin/mv \
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/printenv \
|
2016-10-14 05:00:51 +02:00
|
|
|
filesystem/bin/ps \
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/pwd \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/realpath \
|
|
|
|
filesystem/bin/reset \
|
|
|
|
filesystem/bin/rmdir \
|
|
|
|
filesystem/bin/rm \
|
|
|
|
filesystem/bin/seq \
|
|
|
|
filesystem/bin/sleep \
|
2016-11-03 05:23:59 +01:00
|
|
|
filesystem/bin/sort \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/tail \
|
2016-11-03 05:25:03 +01:00
|
|
|
filesystem/bin/tee \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/time \
|
|
|
|
filesystem/bin/touch \
|
|
|
|
filesystem/bin/true \
|
|
|
|
filesystem/bin/wc \
|
|
|
|
filesystem/bin/yes
|
2016-11-07 20:47:32 +01:00
|
|
|
#filesystem/bin/shutdown filesystem/bin/test
|
2016-09-28 19:07:54 +02:00
|
|
|
|
|
|
|
extrautils: \
|
|
|
|
filesystem/bin/calc \
|
|
|
|
filesystem/bin/cksum \
|
|
|
|
filesystem/bin/cur \
|
|
|
|
filesystem/bin/grep \
|
|
|
|
filesystem/bin/less \
|
2016-11-08 17:00:21 +01:00
|
|
|
filesystem/bin/man \
|
2016-09-28 19:07:54 +02:00
|
|
|
filesystem/bin/mdless \
|
|
|
|
filesystem/bin/mtxt \
|
|
|
|
filesystem/bin/rem \
|
2016-11-08 17:00:21 +01:00
|
|
|
#filesystem/bin/dmesg filesystem/bin/info filesystem/bin/watch
|
2016-09-28 19:07:54 +02:00
|
|
|
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
netutils: \
|
|
|
|
filesystem/bin/dhcpd \
|
2016-10-23 23:57:04 +02:00
|
|
|
filesystem/bin/dns \
|
2016-10-24 03:02:48 +02:00
|
|
|
filesystem/bin/httpd \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
filesystem/bin/irc \
|
|
|
|
filesystem/bin/nc \
|
2016-11-16 05:30:19 +01:00
|
|
|
filesystem/bin/ntp \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
filesystem/bin/wget
|
|
|
|
|
|
|
|
orbutils: \
|
2016-11-09 01:23:32 +01:00
|
|
|
filesystem/bin/browser \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
filesystem/bin/calculator \
|
|
|
|
filesystem/bin/character_map \
|
|
|
|
filesystem/bin/editor \
|
|
|
|
filesystem/bin/file_manager \
|
|
|
|
filesystem/bin/launcher \
|
|
|
|
filesystem/bin/orblogin \
|
|
|
|
filesystem/bin/terminal \
|
|
|
|
filesystem/bin/viewer
|
|
|
|
|
2016-10-19 01:13:26 +02:00
|
|
|
pkgutils: \
|
|
|
|
filesystem/bin/pkg
|
|
|
|
|
2016-10-07 18:42:17 +02:00
|
|
|
userutils: \
|
|
|
|
filesystem/bin/getty \
|
|
|
|
filesystem/bin/id \
|
|
|
|
filesystem/bin/login \
|
2016-10-24 22:08:15 +02:00
|
|
|
filesystem/bin/passwd \
|
2016-10-07 18:42:17 +02:00
|
|
|
filesystem/bin/su \
|
|
|
|
filesystem/bin/sudo
|
2016-09-28 05:56:29 +02:00
|
|
|
|
2016-09-28 17:00:28 +02:00
|
|
|
schemes: \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
filesystem/bin/ethernetd \
|
|
|
|
filesystem/bin/example \
|
|
|
|
filesystem/bin/ipd \
|
|
|
|
filesystem/bin/orbital \
|
2016-11-01 16:53:48 +01:00
|
|
|
filesystem/bin/ptyd \
|
2016-10-24 22:08:15 +02:00
|
|
|
filesystem/bin/randd \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
filesystem/bin/tcpd \
|
|
|
|
filesystem/bin/udpd
|
2016-09-28 05:56:29 +02:00
|
|
|
|
|
|
|
$(BUILD)/filesystem.bin: \
|
2016-09-28 17:00:28 +02:00
|
|
|
drivers \
|
2016-09-28 05:56:29 +02:00
|
|
|
coreutils \
|
2016-09-28 19:52:40 +02:00
|
|
|
extrautils \
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
netutils \
|
|
|
|
orbutils \
|
2016-10-19 01:13:26 +02:00
|
|
|
pkgutils \
|
2016-10-07 18:42:17 +02:00
|
|
|
userutils \
|
2016-09-28 17:00:28 +02:00
|
|
|
schemes \
|
2016-10-18 04:14:53 +02:00
|
|
|
filesystem/bin/acid \
|
2016-11-17 04:54:38 +01:00
|
|
|
filesystem/bin/contain \
|
2016-09-28 05:56:29 +02:00
|
|
|
filesystem/bin/ion \
|
2016-10-18 04:14:53 +02:00
|
|
|
filesystem/bin/sh \
|
2016-10-19 01:13:26 +02:00
|
|
|
filesystem/bin/smith \
|
|
|
|
filesystem/bin/tar
|
2016-11-05 13:32:53 +01:00
|
|
|
-$(FUMOUNT) $(BUILD)/filesystem/
|
2016-09-28 05:56:29 +02:00
|
|
|
rm -rf $@ $(BUILD)/filesystem/
|
2016-11-18 05:44:53 +01:00
|
|
|
echo exit | cargo run --manifest-path schemes/redoxfs/Cargo.toml --bin redoxfs-utility $@ 64
|
2016-09-28 05:56:29 +02:00
|
|
|
mkdir -p $(BUILD)/filesystem/
|
2016-11-03 04:46:34 +01:00
|
|
|
cargo build --manifest-path schemes/redoxfs/Cargo.toml --bin redoxfs-fuse --release
|
|
|
|
schemes/redoxfs/target/release/redoxfs-fuse $@ $(BUILD)/filesystem/ &
|
2016-09-28 05:56:29 +02:00
|
|
|
sleep 2
|
2016-11-02 04:02:25 +01:00
|
|
|
pgrep redoxfs-fuse
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
cp -RL filesystem/* $(BUILD)/filesystem/
|
2016-11-07 16:48:08 +01:00
|
|
|
chown -R 0:0 $(BUILD)/filesystem
|
|
|
|
chown -R 1000:1000 $(BUILD)/filesystem/home/user
|
2016-11-05 13:32:53 +01:00
|
|
|
chmod -R uog+rX $(BUILD)/filesystem
|
2016-11-07 16:48:08 +01:00
|
|
|
chmod -R u+w $(BUILD)/filesystem
|
|
|
|
chmod -R og-w $(BUILD)/filesystem
|
|
|
|
chmod -R 755 $(BUILD)/filesystem/bin
|
2016-11-05 13:32:53 +01:00
|
|
|
chmod -R u+rwX $(BUILD)/filesystem/root
|
|
|
|
chmod -R og-rwx $(BUILD)/filesystem/root
|
|
|
|
chmod -R u+rwX $(BUILD)/filesystem/home/user
|
|
|
|
chmod -R og-rwx $(BUILD)/filesystem/home/user
|
2016-11-09 01:23:32 +01:00
|
|
|
chmod +s $(BUILD)/filesystem/bin/passwd
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
chmod +s $(BUILD)/filesystem/bin/su
|
|
|
|
chmod +s $(BUILD)/filesystem/bin/sudo
|
2016-10-19 05:25:36 +02:00
|
|
|
mkdir $(BUILD)/filesystem/tmp
|
|
|
|
chmod 1777 $(BUILD)/filesystem/tmp
|
2016-09-28 05:56:29 +02:00
|
|
|
sync
|
2016-10-16 05:25:56 +02:00
|
|
|
-$(FUMOUNT) $(BUILD)/filesystem/
|
2016-09-28 05:56:29 +02:00
|
|
|
rm -rf $(BUILD)/filesystem/
|
2016-09-28 17:00:28 +02:00
|
|
|
|
2016-11-03 23:06:48 +01:00
|
|
|
mount: FORCE
|
2016-11-02 04:02:25 +01:00
|
|
|
mkdir -p $(BUILD)/filesystem/
|
2016-11-03 04:46:34 +01:00
|
|
|
cargo build --manifest-path schemes/redoxfs/Cargo.toml --bin redoxfs-fuse --release
|
2016-11-03 23:07:26 +01:00
|
|
|
schemes/redoxfs/target/release/redoxfs-fuse $(KBUILD)/harddrive.bin $(BUILD)/filesystem/ &
|
2016-09-28 17:00:28 +02:00
|
|
|
sleep 2
|
2016-11-02 04:02:25 +01:00
|
|
|
pgrep redoxfs-fuse
|
2016-09-28 17:00:28 +02:00
|
|
|
|
|
|
|
unmount: FORCE
|
|
|
|
sync
|
2016-11-02 04:02:25 +01:00
|
|
|
-$(FUMOUNT) $(BUILD)/filesystem/
|
|
|
|
rm -rf $(BUILD)/filesystem/
|
Orbital (#16)
* Port previous ethernet scheme
* Add ipd
* Fix initfs rebuilds, use QEMU user networking addresses in ipd
* Add tcp/udp, netutils, dns, and network config
* Add fsync to network driver
* Add dns, router, subnet by default
* Fix e1000 driver. Make ethernet and IP non-blocking to avoid deadlocks
* Add orbital server, WIP
* Add futex
* Add orbutils and orbital
* Update libstd, orbutils, and orbital
Move ANSI key encoding to vesad
* Add orbital assets
* Update orbital
* Update to add login manager
* Add blocking primitives, block for most things except waitpid, update orbital
* Wait in waitpid and IRQ, improvements for other waits
* Fevent in root scheme
* WIP: Switch to using fevent
* Reorganize
* Event based e1000d driver
* Superuser-only access to some network schemes, display, and disk
* Superuser root and irq schemes
* Fix orbital
2016-10-14 01:21:42 +02:00
|
|
|
|
|
|
|
wireshark: FORCE
|
|
|
|
wireshark $(KBUILD)/network.pcap
|