Return-Path: Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe003.messaging.microsoft.com [213.199.154.206]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2713AE002AB for ; Thu, 29 Nov 2012 11:15:59 -0800 (PST) Received: from mail30-am1-R.bigfish.com (10.3.201.229) by AM1EHSOBE004.bigfish.com (10.3.204.24) with Microsoft SMTP Server id 14.1.225.23; Thu, 29 Nov 2012 19:15:58 +0000 Received: from mail30-am1 (localhost [127.0.0.1]) by mail30-am1-R.bigfish.com (Postfix) with ESMTP id 1E7371603A1 for ; Thu, 29 Nov 2012 19:15:58 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 9 X-BigFish: VS9(z1725nzzz1de0h1202h1d1ah1d2ah1082kzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail30-am1 (localhost.localdomain [127.0.0.1]) by mail30-am1 (MessageSwitch) id 1354216555539085_29192; Thu, 29 Nov 2012 19:15:55 +0000 (UTC) Received: from AM1EHSMHS011.bigfish.com (unknown [10.3.201.232]) by mail30-am1.bigfish.com (Postfix) with ESMTP id 819374A0160 for ; Thu, 29 Nov 2012 19:15:55 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS011.bigfish.com (10.3.207.111) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 29 Nov 2012 19:15:54 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 29 Nov 2012 19:15:52 +0000 Received: from right.am.freescale.net (right.am.freescale.net [10.82.176.228]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qATJFpu5013610 for ; Thu, 29 Nov 2012 12:15:52 -0700 From: Matthew McClintock To: Date: Thu, 29 Nov 2012 13:15:27 -0600 Message-ID: <1354216551-13932-4-git-send-email-msm@freescale.com> X-Mailer: git-send-email 1.7.9.7 In-Reply-To: <1354216551-13932-1-git-send-email-msm@freescale.com> References: <1354216551-13932-1-git-send-email-msm@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: [PATCH 03/27] sysvinit: move bbappend from meta-fsl-ppc-private to meta-fsl-ppc X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 19:15:59 -0000 Content-Type: text/plain From: Zhenhua Luo the bbappend is appled for fsl machines Signed-off-by: Zhenhua Luo --- .../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