From: Denys Dmytriyenko <denys@ti.com>
To: Chase Maupin <Chase.Maupin@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images
Date: Wed, 24 Oct 2012 16:00:12 -0400 [thread overview]
Message-ID: <20121024200012.GB3465@denix.org> (raw)
In-Reply-To: <1350942384-27039-1-git-send-email-Chase.Maupin@ti.com>
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
>
next prev parent reply other threads:[~2012-10-24 20:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-10-24 21:11 ` [PATCH 1/2] remove-net-rules: Add a class to remove net rules from images Maupin, Chase
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121024200012.GB3465@denix.org \
--to=denys@ti.com \
--cc=Chase.Maupin@ti.com \
--cc=meta-arago@arago-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.