mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 20:36:31 +00:00
@ -95,7 +95,7 @@ sys_api_lib: sys_api_lib_stage_1
|
||||
mkdir -p $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
|
||||
mkdir -p $(OLD_LIBC_INSTALL_PATH)/include
|
||||
mkdir -p $(OLD_LIBC_INSTALL_PATH)/lib
|
||||
$(AR) x $(ROOT_PATH)/user/libs/libc/target/x86_64-unknown-none/release/liblibc.a --output=$(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
|
||||
$(AR) x $(ROOT_PATH)/target/x86_64-unknown-none/release/liblibc.a --output=$(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
|
||||
$(AR) crvs $(OLD_LIBC_INSTALL_PATH)/lib/libc.a $(shell find ./libs/* -name "*.o") $(shell find $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp/* -name "*.o")
|
||||
rm -rf $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
|
||||
# $(shell find ./libs/* -name "*.o" | xargs -I {} cp {} $(ROOT_PATH)/bin/sysroot/usr/lib/)
|
||||
|
@ -42,4 +42,4 @@ fn main() {
|
||||
.write_to_file(out_path.join("bindings.rs"))
|
||||
.expect("Couldn't write bindings!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,4 +36,4 @@ libc: $(libc_objs) $(libc_sub_dirs) libc_rust
|
||||
|
||||
libc_rust:
|
||||
rustup default nightly
|
||||
cargo +nightly build --release --target ./arch/x86_64/x86_64-unknown-none.json
|
||||
cargo +nightly build --release --target ./arch/x86_64/x86_64-unknown-none.json
|
||||
|
@ -1 +1 @@
|
||||
pub mod bindings;
|
||||
pub mod bindings;
|
||||
|
@ -1 +1 @@
|
||||
pub mod bindings;
|
||||
pub mod bindings;
|
||||
|
@ -1 +1 @@
|
||||
pub mod internal;
|
||||
pub mod internal;
|
||||
|
Reference in New Issue
Block a user