From: Sinan Kaya Date: Wed, 16 Dec 2020 22:48:37 +0000 (+0000) Subject: net-tools: split mii-tool into its own package X-Git-Tag: uninative-2.10~245 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=05b9cdd66ad29d67bd7c3c7e968b1c102479af47;p=openembedded-core.git net-tools: split mii-tool into its own package Move the mii-tool into its own package. Useful for size constrained systems that only want the mii-tool only. Signed-off-by: Sinan Kaya Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb b/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb index dcc2218e48..e163a6948a 100644 --- a/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb +++ b/meta/recipes-extended/net-tools/net-tools_1.60-20181103.bb @@ -105,4 +105,18 @@ python __anonymous() { } ALTERNATIVE_PRIORITY = "100" -BBCLASSEXTEND = "native nativesdk" +NETTOOLS_PACKAGES = "${PN}-mii-tool" +NETTOOLS_PACKAGES_class-native = "" + +PACKAGE_BEFORE_PN = "${NETTOOLS_PACKAGES}" +RDEPENDS_${PN} += "${NETTOOLS_PACKAGES}" + +FILES_${PN}-mii-tool = "${base_sbindir}/mii-tool" + +ALTERNATIVE_${PN}_remove = "mii-tool" + +ALTERNATIVE_${PN}-mii-tool = "mii-tool" +ALTERNATIVE_TARGET[mii-tool] = "${base_sbindir}/mii-tool" +ALTERNATIVE_LINK_NAME[mii-tool] = "${base_sbindir}/mii-tool" + +BBCLASSEXTEND = "native nativesdk" \ No newline at end of file