1
0
Fork 0
Redox-From-Scratch/components/make/drivers

82 lines
3.4 KiB
Plaintext
Raw Normal View History

2024-12-16 21:06:22 -08:00
# These are special
2024-12-15 21:06:44 -08:00
$(BUILD)/etc/pcid/initfs.toml: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/etc/pcid
cp sources/drivers/initfs.toml $@
2024-12-16 21:06:22 -08:00
# These go in bin
$(BUILD)/bin/pcid: $(shell find ./sources/drivers -type f -not -path "*/target/*")
2024-12-15 21:06:44 -08:00
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
2024-12-16 21:06:22 -08:00
$(CARGO) build --release --target x86_64-unknown-redox -p pcid
cp sources/drivers/target/x86_64-unknown-redox/release/pcid $@
2024-12-15 21:06:44 -08:00
$(BUILD)/bin/fbcond: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p fbcond
cp sources/drivers/target/x86_64-unknown-redox/release/fbcond $@
$(BUILD)/bin/inputd: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p inputd
cp sources/drivers/target/x86_64-unknown-redox/release/inputd $@
2024-12-16 21:06:22 -08:00
$(BUILD)/bin/vesad: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p vesad
cp sources/drivers/target/x86_64-unknown-redox/release/vesad $@
2024-12-15 21:06:44 -08:00
$(BUILD)/bin/lived: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p lived
cp sources/drivers/target/x86_64-unknown-redox/release/lived $@
2024-12-16 21:06:22 -08:00
$(BUILD)/bin/ps2d: $(shell find ./sources/drivers -type f -not -path "*/target/*")
2024-12-15 21:06:44 -08:00
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
2024-12-16 21:06:22 -08:00
$(CARGO) build --release --target x86_64-unknown-redox -p ps2d
cp sources/drivers/target/x86_64-unknown-redox/release/ps2d $@
2024-12-15 21:06:44 -08:00
2024-12-16 21:06:22 -08:00
$(BUILD)/bin/acpid: $(shell find ./sources/drivers -type f -not -path "*/target/*")
2024-12-15 21:06:44 -08:00
@mkdir -p $(BUILD)/bin
cd sources/drivers && \
2024-12-16 21:06:22 -08:00
$(CARGO) build --release --target x86_64-unknown-redox -p acpid
cp sources/drivers/target/x86_64-unknown-redox/release/acpid $@
2024-12-15 21:06:44 -08:00
2024-12-16 21:06:22 -08:00
# These go in lib
$(BUILD)/lib/drivers/nvmed: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/lib/drivers
2024-12-15 21:06:44 -08:00
cd sources/drivers && \
2024-12-16 21:06:22 -08:00
$(CARGO) build --release --target x86_64-unknown-redox -p nvmed
cp sources/drivers/target/x86_64-unknown-redox/release/nvmed $@
2024-12-15 21:06:44 -08:00
2024-12-16 21:06:22 -08:00
$(BUILD)/lib/drivers/ahcid: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/lib/drivers
2024-12-15 21:06:44 -08:00
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p ahcid
cp sources/drivers/target/x86_64-unknown-redox/release/ahcid $@
2024-12-16 21:06:22 -08:00
$(BUILD)/lib/drivers/ided: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/lib/drivers
2024-12-15 21:06:44 -08:00
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p ided
cp sources/drivers/target/x86_64-unknown-redox/release/ided $@
2024-12-16 21:06:22 -08:00
$(BUILD)/lib/drivers/virtio-blkd: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/lib/drivers
2024-12-15 21:06:44 -08:00
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p virtio-blkd
cp sources/drivers/target/x86_64-unknown-redox/release/virtio-blkd $@
2024-12-16 21:06:22 -08:00
$(BUILD)/lib/drivers/virtio-gpud: $(shell find ./sources/drivers -type f -not -path "*/target/*")
@mkdir -p $(BUILD)/lib/drivers
2024-12-15 21:06:44 -08:00
cd sources/drivers && \
$(CARGO) build --release --target x86_64-unknown-redox -p virtio-gpud
cp sources/drivers/target/x86_64-unknown-redox/release/virtio-gpud $@