[meta-freescale] [PATCH 03/27] sysvinit: move bbappend from meta-fsl-ppc-private to meta-fsl-ppc

Matthew McClintock msm at freescale.com
Thu Nov 29 11:15:27 PST 2012


From: Zhenhua Luo <b19537 at freescale.com>

    the bbappend is appled for fsl machines

Signed-off-by: Zhenhua Luo <b19537 at freescale.com>
---
 .../sysvinit/files/auto-detect-hostname.patch      |   16 ++++++++++++++++
 recipes-append/sysvinit/sysvinit_2.88dsf.bbappend  |    5 +++++
 2 files changed, 21 insertions(+)
 create mode 100644 recipes-append/sysvinit/files/auto-detect-hostname.patch
 create mode 100644 recipes-append/sysvinit/sysvinit_2.88dsf.bbappend

diff --git a/recipes-append/sysvinit/files/auto-detect-hostname.patch b/recipes-append/sysvinit/files/auto-detect-hostname.patch
new file mode 100644
index 0000000..da70184
--- /dev/null
+++ b/recipes-append/sysvinit/files/auto-detect-hostname.patch
@@ -0,0 +1,16 @@
+diff --git a/rcS b/rcS
+index 080b04f..51425ff 100755
+--- a/rcS
++++ b/rcS
+@@ -22,6 +22,11 @@ export PATH runlevel prevlevel
+ . /etc/default/rcS
+ 
+ #
++#       Update the hostname according to actual board type
++#
++echo `cat /proc/cpuinfo | grep model | cut -d "," -f 2 | tr "[A-Z]" "[a-z]"` > /etc/hostname
++
++#
+ #	Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
+ #
+ trap ":" INT QUIT TSTP
diff --git a/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend b/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend
new file mode 100644
index 0000000..9c9dc75
--- /dev/null
+++ b/recipes-append/sysvinit/sysvinit_2.88dsf.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+
+PR_fsl .= "+${DISTRO}.1"
+
+SRC_URI_append_fsl = " file://auto-detect-hostname.patch;patchdir=../"
-- 
1.7.9.7





More information about the meta-freescale mailing list