[OE-core] [PATCH] dnf: Enable nativesdk

Alexander Kanavin alex.kanavin at gmail.com
Thu Apr 11 11:19:05 UTC 2019


On Thu, 11 Apr 2019 at 08:13, Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com> wrote:

> --- a/meta/classes/toolchain-scripts.bbclass
> +++ b/meta/classes/toolchain-scripts.bbclass
> @@ -101,6 +101,7 @@ toolchain_shared_env_script () {
>         echo 'export CPPFLAGS="${TARGET_CPPFLAGS}"' >> $script
>         echo 'export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"' >> $script
>         echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
> +       echo 'export MACHINE_ARCH=${MACHINE_ARCH}' >> $script

Please explain why this change in the commit.

> +RDEPENDS_${PN}_class-nativesdk += " \
> +  python3-core \
> +  python3-codecs \
> +  python3-netclient \
> +  python3-email \
> +  python3-threading \
> +  python3-distutils \
> +  python3-logging \
> +  python3-fcntl \
> +  librepo \
> +  python3-shell \
> +  libcomps \
> +  libdnf \
> +  python3-sqlite3 \
> +  python3-compression \
> +  python3-rpm \
> +  python3-iniparse \
> +  python3-json \
> +  python3-curses \
> +  python3-misc \
> +  python3-gpg \
> +  "
> +
>  RRECOMMENDS_${PN}_class-target += "gnupg"

Do not copy-paste large chunks like this please. Assign the
dependencies to a variable, and use it where needed.

Alex


More information about the Openembedded-core mailing list