Skip to content

bldr: exclude from workspace clippy and simplify build script#1159

Open
luigix25 wants to merge 3 commits into
coconut-svsm:mainfrom
luigix25:fix_clippy
Open

bldr: exclude from workspace clippy and simplify build script#1159
luigix25 wants to merge 3 commits into
coconut-svsm:mainfrom
luigix25:fix_clippy

Conversation

@luigix25

@luigix25 luigix25 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator
  • Remove bldr from clippy workspace, as it targets " x86_64-unknown-linux-gnu" and this is not necessary as the bootloader is always compiled targeting "x86_64-unknown-none"
  • In the bldr build.rs file, there is a check on the target, remove it for the same reason as above.

cc @armenon-rh

Comment thread Makefile Outdated
luigix25 added 3 commits July 7, 2026 13:57
Collect the packages that require --target x86_64-unknown-none into a
BARE_METAL_MEMBERS variable and loop over them instead of repeating
each --exclude and --package invocation. This makes it easier to add
or remove bare-metal crates in the future.

Suggested-by: Carlos López <clopez@suse.de>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
The bldr crate only targets x86_64-unknown-none. Running clippy with
--workspace lints it against the host target, which can produce
incorrect errors. Exclude it from the workspace invocation since
it is already linted separately with the correct target.

Reported-by: Arun Menon <armenon@redhat.com>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
The build script only passed --build-id=none when the target was
x86_64-unknown-none. Since bldr is only ever built for this target,
the conditional is unnecessary. Remove it.

Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
@luigix25

luigix25 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

[@00xc]

  • Refactored exclude list as suggested by Carlos

@msft-jlange msft-jlange self-assigned this Jul 7, 2026
@armenon-rh

Copy link
Copy Markdown

Looks good to me. Thanks @luigix25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants