* [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images
@ 2012-10-22 21:46 Chase Maupin
2012-10-22 21:46 ` [PATCH 2/2] arago-base-tisdk-image: inherit remove-net-rules Chase Maupin
2012-10-24 20:00 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Denys Dmytriyenko
0 siblings, 2 replies; 4+ messages in thread
From: Chase Maupin @ 2012-10-22 21:46 UTC (permalink / raw)
To: meta-arago
* Inherit the remove-net-rules class in the TISDK images to remove
the utility that creates the persistent net rules file.
* This allows moving SD cards between EVMs.
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
---
meta-arago-distro/classes/remove-net-rules.bbclass | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 meta-arago-distro/classes/remove-net-rules.bbclass
diff --git a/meta-arago-distro/classes/remove-net-rules.bbclass b/meta-arago-distro/classes/remove-net-rules.bbclass
new file mode 100644
index 0000000..3227221
--- /dev/null
+++ b/meta-arago-distro/classes/remove-net-rules.bbclass
@@ -0,0 +1,15 @@
+# Add a ROOTFS_POSTPROCESS_COMMAND that will strip the write_net_rules
+# executable from the file system. This will prevent the
+# 70-persistent-net.rules from being created. Not having this file
+# will allow moving SD cards between EVMs and similar boards such as
+# beaglebone and the EVM.
+
+ROOTFS_POSTPROCESS_COMMAND += "rootfs_remove_net_rules"
+
+rootfs_remove_net_rules () {
+ if [ -e ${IMAGE_ROOTFS}/lib/udev/write_net_rules ]
+ then
+ rm ${IMAGE_ROOTFS}/lib/udev/write_net_rules
+ fi
+}
+
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arago-base-tisdk-image: inherit remove-net-rules
2012-10-22 21:46 [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Chase Maupin
@ 2012-10-22 21:46 ` Chase Maupin
2012-10-24 20:00 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Denys Dmytriyenko
1 sibling, 0 replies; 4+ messages in thread
From: Chase Maupin @ 2012-10-22 21:46 UTC (permalink / raw)
To: meta-arago
* Inherit the remove-net-rules class to allow moving this image
from device to device.
* Use new name of remove-net-rules rather than tisdk-image
Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
---
.../recipes-core/images/arago-base-tisdk-image.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb b/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb
index b4bf3c9..da66fc2 100644
--- a/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb
+++ b/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb
@@ -2,7 +2,7 @@
# gives you an image with Qt/E and other common packages shared by all TI SDKs.
require arago-image.inc
-#inherit tisdk-image
+inherit remove-net-rules
COMPATIBLE_MACHINE = "omap3|ti816x|dm365|omapl138|ti814x|omap4|ti33x"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images
2012-10-22 21:46 [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Chase Maupin
2012-10-22 21:46 ` [PATCH 2/2] arago-base-tisdk-image: inherit remove-net-rules Chase Maupin
@ 2012-10-24 20:00 ` Denys Dmytriyenko
2012-10-24 21:11 ` Maupin, Chase
1 sibling, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2012-10-24 20:00 UTC (permalink / raw)
To: Chase Maupin; +Cc: meta-arago
On Mon, Oct 22, 2012 at 04:46:23PM -0500, Chase Maupin wrote:
> * Inherit the remove-net-rules class in the TISDK images to remove
> the utility that creates the persistent net rules file.
> * This allows moving SD cards between EVMs.
>
> Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
> ---
> meta-arago-distro/classes/remove-net-rules.bbclass | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
> create mode 100644 meta-arago-distro/classes/remove-net-rules.bbclass
>
> diff --git a/meta-arago-distro/classes/remove-net-rules.bbclass b/meta-arago-distro/classes/remove-net-rules.bbclass
> new file mode 100644
> index 0000000..3227221
> --- /dev/null
> +++ b/meta-arago-distro/classes/remove-net-rules.bbclass
> @@ -0,0 +1,15 @@
> +# Add a ROOTFS_POSTPROCESS_COMMAND that will strip the write_net_rules
> +# executable from the file system. This will prevent the
> +# 70-persistent-net.rules from being created. Not having this file
> +# will allow moving SD cards between EVMs and similar boards such as
> +# beaglebone and the EVM.
> +
> +ROOTFS_POSTPROCESS_COMMAND += "rootfs_remove_net_rules"
ROOTFS_POSTPROCESS_COMMAND is a list of shell commands/functions - you need to
terminate it with a semicolon, i.e. R_P_C += "func;"
> +
> +rootfs_remove_net_rules () {
> + if [ -e ${IMAGE_ROOTFS}/lib/udev/write_net_rules ]
> + then
> + rm ${IMAGE_ROOTFS}/lib/udev/write_net_rules
> + fi
> +}
> +
> --
> 1.7.0.4
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images
2012-10-24 20:00 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Denys Dmytriyenko
@ 2012-10-24 21:11 ` Maupin, Chase
0 siblings, 0 replies; 4+ messages in thread
From: Maupin, Chase @ 2012-10-24 21:11 UTC (permalink / raw)
To: Dmytriyenko, Denys; +Cc: meta-arago@arago-project.org
> -----Original Message-----
> From: Dmytriyenko, Denys
> Sent: Wednesday, October 24, 2012 3:00 PM
> To: Maupin, Chase
> Cc: meta-arago@arago-project.org
> Subject: Re: [meta-arago] [PATCH 1/2] remove-net-rules: Add a
> class to remove net rules from images
>
> On Mon, Oct 22, 2012 at 04:46:23PM -0500, Chase Maupin wrote:
> > * Inherit the remove-net-rules class in the TISDK images to
> remove
> > the utility that creates the persistent net rules file.
> > * This allows moving SD cards between EVMs.
> >
> > Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
> > ---
> > meta-arago-distro/classes/remove-net-rules.bbclass | 15
> +++++++++++++++
> > 1 files changed, 15 insertions(+), 0 deletions(-)
> > create mode 100644 meta-arago-distro/classes/remove-net-
> rules.bbclass
> >
> > diff --git a/meta-arago-distro/classes/remove-net-rules.bbclass
> b/meta-arago-distro/classes/remove-net-rules.bbclass
> > new file mode 100644
> > index 0000000..3227221
> > --- /dev/null
> > +++ b/meta-arago-distro/classes/remove-net-rules.bbclass
> > @@ -0,0 +1,15 @@
> > +# Add a ROOTFS_POSTPROCESS_COMMAND that will strip the
> write_net_rules
> > +# executable from the file system. This will prevent the
> > +# 70-persistent-net.rules from being created. Not having this
> file
> > +# will allow moving SD cards between EVMs and similar boards
> such as
> > +# beaglebone and the EVM.
> > +
> > +ROOTFS_POSTPROCESS_COMMAND += "rootfs_remove_net_rules"
>
> ROOTFS_POSTPROCESS_COMMAND is a list of shell commands/functions
> - you need to
> terminate it with a semicolon, i.e. R_P_C += "func;"
I'll send an update. I guess I got away with this in the past because this was the last command to run.
>
> > +
> > +rootfs_remove_net_rules () {
> > + if [ -e ${IMAGE_ROOTFS}/lib/udev/write_net_rules ]
> > + then
> > + rm ${IMAGE_ROOTFS}/lib/udev/write_net_rules
> > + fi
> > +}
> > +
> > --
> > 1.7.0.4
> >
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-24 21:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 21:46 [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Chase Maupin
2012-10-22 21:46 ` [PATCH 2/2] arago-base-tisdk-image: inherit remove-net-rules Chase Maupin
2012-10-24 20:00 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Denys Dmytriyenko
2012-10-24 21:11 ` Maupin, Chase
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.