forked from M-Labs/artiq
firmware: libksupport → ksupport.
The idea is that support libraries are called lib*, and the final products that linked into an executable are not.
This commit is contained in:
parent
7a14cf503b
commit
bc22d1c009
|
@ -1,2 +1,2 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["runtime", "libksupport", "satman"]
|
members = ["runtime", "ksupport", "satman"]
|
||||||
|
|
|
@ -48,12 +48,12 @@ runtime.elf: $(RUSTOUT)/libruntime.a flash_storage.o ksupport_data.o
|
||||||
@chmod -x $@
|
@chmod -x $@
|
||||||
|
|
||||||
.PHONY: $(RUSTOUT_KSUPPORT)/libksupport.a
|
.PHONY: $(RUSTOUT_KSUPPORT)/libksupport.a
|
||||||
$(RUSTOUT_KSUPPORT)/libksupport.a:
|
$(RUSTOUT_KSUPPORT)/ksupport.a:
|
||||||
$(CARGO) \
|
$(CARGO) \
|
||||||
RUSTFLAGS="-C target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -Cpanic=unwind" \
|
RUSTFLAGS="-C target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -Cpanic=unwind" \
|
||||||
CARGO_TARGET_DIR=$(realpath .)/cargo-ksupport \
|
CARGO_TARGET_DIR=$(realpath .)/cargo-ksupport \
|
||||||
cargo build --target=or1k-unknown-none \
|
cargo build --target=or1k-unknown-none \
|
||||||
--manifest-path $(realpath $(RUNTIME_DIRECTORY)/../firmware/libksupport/Cargo.toml)
|
--manifest-path $(realpath $(RUNTIME_DIRECTORY)/../firmware/ksupport/Cargo.toml)
|
||||||
|
|
||||||
ksupport.elf: $(RUSTOUT_KSUPPORT)/libksupport.a ksupport_glue.o artiq_personality.o
|
ksupport.elf: $(RUSTOUT_KSUPPORT)/libksupport.a ksupport_glue.o artiq_personality.o
|
||||||
$(LD) $(LDFLAGS) \
|
$(LD) $(LDFLAGS) \
|
||||||
|
|
Loading…
Reference in New Issue