* [meta-oe][PATCH v5] net-tools: split mii-tool into its own package
@ 2020-12-16 22:48 Sinan Kaya
2020-12-22 9:51 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Sinan Kaya @ 2020-12-16 22:48 UTC (permalink / raw)
To: openembedded-core; +Cc: Sinan Kaya
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(-)
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
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [meta-oe][PATCH v5] net-tools: split mii-tool into its own package
2020-12-16 22:48 [meta-oe][PATCH v5] net-tools: split mii-tool into its own package Sinan Kaya
@ 2020-12-22 9:51 ` Richard Purdie
2021-01-04 16:08 ` Sinan Kaya
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2020-12-22 9:51 UTC (permalink / raw)
To: Sinan Kaya, openembedded-core
On Wed, 2020-12-16 at 22:48 +0000, Sinan Kaya wrote:
> 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(-)
>
> 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"
I'm still trying to work through testing of these. This one seems to
result in:
https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/3077/steps/11/logs/warnings
which is from net-tools-native.
NETTOOLS_PACKAGES_class-native = ""
may be the neatest fix for that I can think of offhand.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [meta-oe][PATCH v5] net-tools: split mii-tool into its own package
2020-12-22 9:51 ` [OE-core] " Richard Purdie
@ 2021-01-04 16:08 ` Sinan Kaya
0 siblings, 0 replies; 3+ messages in thread
From: Sinan Kaya @ 2021-01-04 16:08 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
On 12/22/2020 4:51 AM, Richard Purdie wrote:
> I'm still trying to work through testing of these. This one seems to
> result in:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/3077/steps/11/logs/warnings
>
> which is from net-tools-native.
>
> NETTOOLS_PACKAGES_class-native = ""
>
> may be the neatest fix for that I can think of offhand.
Thanks for taking care of this.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-04 16:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 22:48 [meta-oe][PATCH v5] net-tools: split mii-tool into its own package Sinan Kaya
2020-12-22 9:51 ` [OE-core] " Richard Purdie
2021-01-04 16:08 ` Sinan Kaya
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.