Fix detection of initfs changes
This commit is contained in:
parent
f37f4bb4fd
commit
dea4ec0953
|
@ -1,13 +1,15 @@
|
||||||
$(BUILD)/initfs.rs: \
|
$(KBUILD)/initfs.tag: initfs/bin/init \
|
||||||
initfs/bin/init \
|
|
||||||
initfs/bin/ahcid \
|
initfs/bin/ahcid \
|
||||||
initfs/bin/bgad \
|
initfs/bin/bgad \
|
||||||
initfs/bin/nvmed \
|
initfs/bin/nvmed \
|
||||||
initfs/bin/pcid \
|
initfs/bin/pcid \
|
||||||
initfs/bin/ps2d \
|
initfs/bin/ps2d \
|
||||||
initfs/bin/redoxfs \
|
initfs/bin/redoxfs \
|
||||||
|
initfs/bin/vboxd \
|
||||||
initfs/bin/vesad \
|
initfs/bin/vesad \
|
||||||
initfs/etc/**
|
initfs/etc/**
|
||||||
|
$(KCARGO) clean --manifest-path kernel/Cargo.toml
|
||||||
|
touch $@
|
||||||
|
|
||||||
initfs/bin/%: programs/%/Cargo.toml programs/%/src/** $(BUILD)/libstd.rlib
|
initfs/bin/%: programs/%/Cargo.toml programs/%/src/** $(BUILD)/libstd.rlib
|
||||||
mkdir -p initfs/bin
|
mkdir -p initfs/bin
|
||||||
|
|
|
@ -3,10 +3,10 @@ $(KBUILD)/libcollections.rlib: rust/src/libcollections/Cargo.toml rust/src/libco
|
||||||
$(KCARGO) rustc --manifest-path $< $(KCARGOFLAGS) -o $@
|
$(KCARGO) rustc --manifest-path $< $(KCARGOFLAGS) -o $@
|
||||||
cp rust/src/target/$(KTARGET)/release/deps/*.rlib $(KBUILD)
|
cp rust/src/target/$(KTARGET)/release/deps/*.rlib $(KBUILD)
|
||||||
|
|
||||||
$(KBUILD)/libkernel.a: kernel/Cargo.toml kernel/arch/** kernel/src/** $(KBUILD)/libcollections.rlib $(BUILD)/initfs.rs
|
$(KBUILD)/libkernel.a: kernel/Cargo.toml kernel/arch/** kernel/src/** $(KBUILD)/libcollections.rlib $(KBUILD)/initfs.tag
|
||||||
$(KCARGO) rustc --manifest-path $< --lib $(KCARGOFLAGS) -o $@
|
$(KCARGO) rustc --manifest-path $< --lib $(KCARGOFLAGS) -o $@
|
||||||
|
|
||||||
$(KBUILD)/libkernel_live.a: kernel/Cargo.toml kernel/arch/** kernel/src/** $(KBUILD)/libcollections.rlib $(BUILD)/initfs.rs build/filesystem.bin
|
$(KBUILD)/libkernel_live.a: kernel/Cargo.toml kernel/arch/** kernel/src/** $(KBUILD)/libcollections.rlib $(KBUILD)/initfs.tag build/filesystem.bin
|
||||||
$(KCARGO) rustc --manifest-path $< --lib --features live $(KCARGOFLAGS) -o $@
|
$(KCARGO) rustc --manifest-path $< --lib --features live $(KCARGOFLAGS) -o $@
|
||||||
|
|
||||||
$(KBUILD)/kernel: $(KBUILD)/libkernel.a
|
$(KBUILD)/kernel: $(KBUILD)/libkernel.a
|
||||||
|
|
Loading…
Reference in a new issue