All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH v3] iproute2: split ip to individual package
@ 2020-12-16 16:45 Sinan Kaya
  2020-12-16 17:00 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Sinan Kaya @ 2020-12-16 16:45 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sinan Kaya

Move the ip tool into its own package. Useful for size constrained
systems that only want the ip tool.

Signed-off-by: Sinan Kaya <okaya@kernel.org>
---
 .../iproute2/iproute2.inc                     | 47 ++++++++++++++++++-
 1 file changed, 45 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index 403d264308c..c7a3d547dae 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -46,32 +46,75 @@ do_install () {
 # The .so files in iproute2-tc are modules, not traditional libraries
 INSANE_SKIP_${PN}-tc = "dev-so"
 
-PACKAGES =+ "\
+IPROUTE2_PACKAGES =+ "\
+    ${PN}-bridge \
     ${PN}-devlink \
     ${PN}-genl \
+    ${PN}-ifcfg \
     ${PN}-ifstat \
+    ${PN}-ip \
+    ${PN}-lib \
     ${PN}-lnstat \
     ${PN}-nstat \
+    ${PN}-rdma \
+    ${PN}-routef \
+    ${PN}-routel \
+    ${PN}-rtmon \
+    ${PN}-rtpr \
     ${PN}-rtacct \
     ${PN}-ss \
     ${PN}-tc \
     ${PN}-tipc \
 "
+RDEPENDS_${PN}-bridge = "${PN}-lib"
+RDEPENDS_${PN}-devlink = "${PN}-lib"
+RDEPENDS_${PN}-genl = "${PN}-lib"
+RDEPENDS_${PN}-ifcfg = "${PN}-lib"
+RDEPENDS_${PN}-ifstat = "${PN}-lib"
+RDEPENDS_${PN}-ip = "${PN}-lib"
+RDEPENDS_${PN}-lib = "${PN}-lib"
+RDEPENDS_${PN}-lnstat = "${PN}-lib"
+RDEPENDS_${PN}-nstat = "${PN}-lib"
+RDEPENDS_${PN}-rdma = "${PN}-lib"
+RDEPENDS_${PN}-routef = "${PN}-lib"
+RDEPENDS_${PN}-routel = "${PN}-lib"
+RDEPENDS_${PN}-rtmon = "${PN}-lib"
+RDEPENDS_${PN}-rtpr = "${PN}-lib"
+RDEPENDS_${PN}-rtacct = "${PN}-lib"
+RDEPENDS_${PN}-ss = "${PN}-lib"
+RDEPENDS_${PN}-tc = "${PN}-lib"
+RDEPENDS_${PN}-tipc = "${PN}-lib"
 
+PACKAGES += "${IPROUTE2_PACKAGES}"
+RDEPENDS_${PN} += "${IPROUTE2_PACKAGES}"
+ALLOW_EMPTY_${PN} = "1"
+
+FILES_${PN} = ""
 FILES_${PN}-tc = "${base_sbindir}/tc* \
                   ${libdir}/tc/*.so"
 FILES_${PN}-lnstat = "${base_sbindir}/lnstat \
                       ${base_sbindir}/ctstat \
                       ${base_sbindir}/rtstat"
 FILES_${PN}-ifstat = "${base_sbindir}/ifstat"
+FILES_${PN}-ip = "${base_sbindir}/ip.${PN} ${sysconfdir}/iproute2"
 FILES_${PN}-genl = "${base_sbindir}/genl"
 FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
 FILES_${PN}-nstat = "${base_sbindir}/nstat"
 FILES_${PN}-ss = "${base_sbindir}/ss"
 FILES_${PN}-tipc = "${base_sbindir}/tipc"
 FILES_${PN}-devlink = "${base_sbindir}/devlink"
+FILES_${PN}-rdma = "${base_sbindir}/rdma"
+FILES_${PN}-routef = "${base_sbindir}/routef"
+FILES_${PN}-rtpr = "${base_sbindir}/rtpr"
+FILES_${PN}-rtmon = "${base_sbindir}/rtmon"
+FILES_${PN}-routel = "${base_sbindir}/routel"
+FILES_${PN}-bridge = "${base_sbindir}/bridge"
+FILES_${PN}-ifcfg = "${base_sbindir}/ifcfg"
+FILES_${PN}-ip = "${base_sbindir}/ip.${BPN} ${sysconfdir}"
+FILES_${PN}-lib = "${localstatedir}"
+
 
-ALTERNATIVE_${PN} = "ip"
+ALTERNATIVE_${PN}-ip = "ip"
 ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
 ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
 ALTERNATIVE_PRIORITY = "100"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [OE-core] [meta-oe][PATCH v3] iproute2: split ip to individual package
  2020-12-16 16:45 [meta-oe][PATCH v3] iproute2: split ip to individual package Sinan Kaya
@ 2020-12-16 17:00 ` Richard Purdie
  2020-12-16 17:09   ` Sinan Kaya
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2020-12-16 17:00 UTC (permalink / raw)
  To: Sinan Kaya, openembedded-core

On Wed, 2020-12-16 at 16:45 +0000, Sinan Kaya wrote:
> Move the ip tool into its own package. Useful for size constrained
> systems that only want the ip tool.
> 
> Signed-off-by: Sinan Kaya <okaya@kernel.org>
> ---
>  .../iproute2/iproute2.inc                     | 47 ++++++++++++++++++-
>  1 file changed, 45 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
> index 403d264308c..c7a3d547dae 100644
> --- a/meta/recipes-connectivity/iproute2/iproute2.inc
> +++ b/meta/recipes-connectivity/iproute2/iproute2.inc
> @@ -46,32 +46,75 @@ do_install () {
>  # The .so files in iproute2-tc are modules, not traditional libraries
>  INSANE_SKIP_${PN}-tc = "dev-so"
>  
> -PACKAGES =+ "\
> +IPROUTE2_PACKAGES =+ "\
> +    ${PN}-bridge \
>      ${PN}-devlink \
>      ${PN}-genl \
> +    ${PN}-ifcfg \
>      ${PN}-ifstat \
> +    ${PN}-ip \
> +    ${PN}-lib \
>      ${PN}-lnstat \
>      ${PN}-nstat \
> +    ${PN}-rdma \
> +    ${PN}-routef \
> +    ${PN}-routel \
> +    ${PN}-rtmon \
> +    ${PN}-rtpr \
>      ${PN}-rtacct \
>      ${PN}-ss \
>      ${PN}-tc \
>      ${PN}-tipc \
>  "

I accept there is a case for splitting out ip, the patch now splits out
every binary though? That isn't what the commit message says...

Cheers,

Richard




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [meta-oe][PATCH v3] iproute2: split ip to individual package
  2020-12-16 17:00 ` [OE-core] " Richard Purdie
@ 2020-12-16 17:09   ` Sinan Kaya
  2020-12-16 17:24     ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Sinan Kaya @ 2020-12-16 17:09 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On 12/16/2020 12:00 PM, Richard Purdie wrote:
> I accept there is a case for splitting out ip, the patch now splits out
> every binary though? That isn't what the commit message says...

I thought of going all the way to split everything since I'm here.

Is your preference to keep ip or have individual packages for the
remaining ?

I can adjust commit and name accordingly.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [meta-oe][PATCH v3] iproute2: split ip to individual package
  2020-12-16 17:09   ` Sinan Kaya
@ 2020-12-16 17:24     ` Richard Purdie
  2020-12-16 17:25       ` Sinan Kaya
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2020-12-16 17:24 UTC (permalink / raw)
  To: Sinan Kaya, openembedded-core

On Wed, 2020-12-16 at 12:09 -0500, Sinan Kaya wrote:
> On 12/16/2020 12:00 PM, Richard Purdie wrote:
> > I accept there is a case for splitting out ip, the patch now splits
> > out
> > every binary though? That isn't what the commit message says...
> 
> I thought of going all the way to split everything since I'm here.
> 
> Is your preference to keep ip or have individual packages for the
> remaining ?

I have a very strong preference for only splitting the things we need
to split.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [meta-oe][PATCH v3] iproute2: split ip to individual package
  2020-12-16 17:24     ` Richard Purdie
@ 2020-12-16 17:25       ` Sinan Kaya
  0 siblings, 0 replies; 5+ messages in thread
From: Sinan Kaya @ 2020-12-16 17:25 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

On 12/16/2020 12:24 PM, Richard Purdie wrote:
>> Is your preference to keep ip or have individual packages for the
>> remaining ?
> I have a very strong preference for only splitting the things we need
> to split.

Sounds good, I'll rework.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-16 17:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 16:45 [meta-oe][PATCH v3] iproute2: split ip to individual package Sinan Kaya
2020-12-16 17:00 ` [OE-core] " Richard Purdie
2020-12-16 17:09   ` Sinan Kaya
2020-12-16 17:24     ` Richard Purdie
2020-12-16 17:25       ` 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.