-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install uapi crate and rustflags file in SDK: - [x] meson uapi cleanup Postpone in next Pr to ease readability and thus reviewing process. - [ ] Add rust-local-registry meson option - [ ] install crate rule - [ ] generate rustflags file - [ ] install rustflags file
- Loading branch information
Showing
18 changed files
with
143 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SPDX-FileCopyrightText: 2024 Ledger SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
**target* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Ledger SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
uapi_modules += files('mod.rs') | ||
|
||
if kconfig_data.get('CONFIG_ARCH_ARM_CORTEX_M', 0) == 1 | ||
uapi_modules += files('arm_cortex_m.rs') | ||
endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# SPDX-FileCopyrightText: 2023-2024 Ledger SAS | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
uapi_libfile = files('lib.rs') | ||
|
||
# XXX: | ||
# only lib.rs is required for static_library target but in order to export correct | ||
# dependencies through meson introspect, we should add deps to inner modules | ||
uapi_modules = files([ | ||
'panic.rs', | ||
'svc_exchange.rs', | ||
'syscall.rs', | ||
'systypes.rs', | ||
'uapi.rs', | ||
]) | ||
|
||
subdir('arch') | ||
|
||
uapi_lib = static_library( | ||
'uapi', | ||
sources : uapi_libfile, | ||
rust_abi: 'c', | ||
rust_args: global_rust_build_args, | ||
override_options: [uapi_rust_std], | ||
extra_files: uapi_modules, | ||
install: true, | ||
) | ||
|
||
# XXX: | ||
# This deps is designed for userspace (libshied) only | ||
# As in linux kernel, uapi headers are not used w/ a kernel name and/or uapi | ||
# prefix. So, add the uapi include subdir in "include_directories". | ||
sentry_c_uapi_dep = declare_dependency( | ||
link_with: uapi_lib, | ||
sources: [ uapi_h ], | ||
compile_args: [ global_build_args, target_arch_args ], | ||
include_directories: [ userspace_uapi_include_dir ], | ||
) | ||
|
||
# Generate pkg config file uapi.pc for C app using c_ffi static library | ||
pkg_config = import('pkgconfig') | ||
pkg_config.generate( | ||
uapi_lib, | ||
filebase: 'uapi', | ||
extra_cflags: [ global_build_args, target_arch_args ], | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.