Bring in some coreutils
This commit is contained in:
parent
5721582f81
commit
9ce5628fa4
6 changed files with 24 additions and 4 deletions
15
Makefile
15
Makefile
|
@ -145,12 +145,26 @@ initfs/bin/%: programs/%/Cargo.toml programs/%/src/** $(BUILD)/libstd.rlib
|
|||
strip $@
|
||||
rm $@.d
|
||||
|
||||
initfs/bin/%: programs/coreutils/Cargo.toml programs/coreutils/src/bin/%.rs $(BUILD)/libstd.rlib
|
||||
mkdir -p initfs/bin
|
||||
$(CARGO) rustc --manifest-path $< --bin $* $(CARGOFLAGS) -o $@
|
||||
strip $@
|
||||
rm $@.d
|
||||
|
||||
initfs/bin/%: schemes/%/Cargo.toml schemes/%/src/** $(BUILD)/libstd.rlib
|
||||
mkdir -p initfs/bin
|
||||
$(CARGO) rustc --manifest-path $< $(CARGOFLAGS) -o $@
|
||||
strip $@
|
||||
rm $@.d
|
||||
|
||||
coreutils: \
|
||||
initfs/bin/cat \
|
||||
initfs/bin/echo \
|
||||
initfs/bin/env \
|
||||
initfs/bin/ls \
|
||||
initfs/bin/printenv \
|
||||
initfs/bin/pwd
|
||||
|
||||
$(BUILD)/initfs.rs: \
|
||||
initfs/bin/pcid \
|
||||
initfs/bin/ps2d \
|
||||
|
@ -158,6 +172,7 @@ $(BUILD)/initfs.rs: \
|
|||
initfs/bin/init \
|
||||
initfs/bin/ion \
|
||||
initfs/bin/login \
|
||||
coreutils \
|
||||
initfs/bin/example
|
||||
echo 'use collections::BTreeMap;' > $@
|
||||
echo 'pub fn gen() -> BTreeMap<&'"'"'static [u8], &'"'"'static [u8]> {' >> $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue