从 yocto build 中删除 Rust

问题描述 投票:0回答:1

我正在尝试从我的 yocto 构建中删除一系列包,但我尝试过的方法到目前为止还没有奏效。这就是我所拥有的:

PACKAGE_EXCLUDE += "\
    avahi \
    apt \
    apt-native \
    cmake \
    cmake-native \
    cracklib \
    crda \
    cryptodev-linux \
    dpkg \
    dpkg-native \
    elfutils \
    elfutils-native \
    fftw \
    gawk \
    gcc-runtime \
    gnupg \
    hdparm \
    icu \
    kbd \
    libassuan \
    libatomic-ops \
    libavahi-client \
    libavahi-common \
    libavahi-core \
    libcap-ng \
    libdaemon \
    libgcc \
    libgcc-initial \
    libgcrypt \
    libgpg-error \
    libical \
    libidn2 \
    libksba \
    libmnl \
    libogg \
    libtirpc \
    libtool \
    libtool-cross \
    libubootenv \
    libunistring \
    libxcrypt \
    linux-libc-headers \
    lz4 \
    lzo \
    npth \
    pinentry \
    pulseaudio \
    qemuwrapper-cross \
    resize-helper \
    rust \
    rust-llvm \
    rust-llvm-native \
    rust-native \
    systemd \
    systemd-compat-units \
    systemd-conf \
    systemd-mount-partitions \
    tar \
    vala \
    xxhash \
    zstd \
"

我想删除的主要是 Rust,但我仍然在日志中看到它在构建。

我也试过使用

IMAGE_INSTALL:remove
(事实上,我的
local.conf
文件中同时有两个),但它似乎也不起作用。

我在这里做错了什么?甚至可以去除 Rust 吗?

谢谢。

编辑:我试图删除的其他一些包也出现在构建日志中,例如

dpkg-native
cmake
.

linux embedded-linux yocto
1个回答
0
投票

我一直在调查,我发现我想使用的参数是

SKIP_RECIPE[rust-native]
local.conf
文件中。然而,rust 是 python3-cryptography 的依赖项,不可能只删除它。

© www.soinside.com 2019 - 2024. All rights reserved.