[meta-oe,v5] net-tools: split mii-tool into its own package

Submitted by Sinan Kaya on Dec. 16, 2020, 10:48 p.m. | Patch ID: 179012

Details

Message ID 20201216224837.29524-1-okaya@kernel.org
State Master Next
Commit a5109a37e243e3978c7f9372be8053dd6b60333b
Headers show

Commit Message

Sinan Kaya Dec. 16, 2020, 10:48 p.m.
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 <okaya@kernel.org>

---
 .../net-tools/net-tools_1.60-20181103.bb          | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

-- 
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#145792): https://lists.openembedded.org/g/openembedded-core/message/145792
Mute This Topic: https://lists.openembedded.org/mt/79024663/3616849
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [michael@yoctoproject.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

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 e97731073e8..1784bf9ec24 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
@@ -107,4 +107,17 @@  python __anonymous() {
 }
 ALTERNATIVE_PRIORITY = "100"
 
-BBCLASSEXTEND = "native nativesdk"
+NETTOOLS_PACKAGES = "${PN}-mii-tool"
+
+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