Skip to contentSkip to conversation

sysvinit: remove SDK specific bits

PATCH In review [email protected] 3 participants 15 messages Mar 8, 2013 – Mar 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/6 sysvinit: remove SDK specific bits

From: Ting Liu <[email protected]>

This is fsl SDK specific, and was recommended to go to SDK layer:
http://patches.openembedded.org/patch/34623/

---
 .../sysvinit/files/auto-detect-hostname.patch      |   16 ----------------
 recipes-append/sysvinit/sysvinit_2.88dsf.bbappend  |    5 +----
 2 files changed, 1 insertions(+), 20 deletions(-)
 delete mode 100644 recipes-append/sysvinit/files/auto-detect-hostname.patch
recipes-append/sysvinit/files/auto-detect-hostname.patch deleted +0 -16
deleted file mode 100644
index da70184..0000000
@@ -1,16 +0,0 @@
-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
recipes-append/sysvinit/sysvinit_2.88dsf.bbappend +1 -4
index 9c9dc75..8445337 100644
@@ -1,5 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-PR_fsl .= "+${DISTRO}.1"
-
-SRC_URI_append_fsl = " file://auto-detect-hostname.patch;patchdir=../"
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH v2 2/6 procps: remove customized sysctl.conf which is SDK specific

From: Ting Liu <[email protected]>

It was added to disable rp_filter to enhance ASF IP forward performance, which is really fsl SDK specific.

---
 recipes-append/procps/files/sysctl.conf     |   64 ---------------------------
 recipes-append/procps/procps_3.2.8.bbappend |    3 +-
 2 files changed, 1 insertions(+), 66 deletions(-)
 delete mode 100644 recipes-append/procps/files/sysctl.conf
recipes-append/procps/files/sysctl.conf deleted +0 -64
deleted file mode 100644
index 6148472..0000000
@@ -1,64 +0,0 @@
-# This configuration file is taken from Debian.
-#
-# /etc/sysctl.conf - Configuration file for setting system variables
-# See sysctl.conf (5) for information.
-#
-
-#kernel.domainname = example.com
-
-# Uncomment the following to stop low-level messages on console
-#kernel.printk = 4 4 1 7
-
-##############################################################3
-# Functions previously found in netbase
-#
-
-# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
-# Turn on Source Address Verification in all interfaces to
-# prevent some spoofing attacks
-net.ipv4.conf.default.rp_filter=0
-net.ipv4.conf.all.rp_filter=0
-
-# Uncomment the next line to enable TCP/IP SYN cookies
-#net.ipv4.tcp_syncookies=1
-
-# Uncomment the next line to enable packet forwarding for IPv4
-#net.ipv4.ip_forward=1
-
-# Uncomment the next line to enable packet forwarding for IPv6
-#net.ipv6.conf.all.forwarding=1
-
-
-###################################################################
-# Additional settings - these settings can improve the network
-# security of the host and prevent against some network attacks
-# including spoofing attacks and man in the middle attacks through
-# redirection. Some network environments, however, require that these
-# settings are disabled so review and enable them as needed.
-#
-# Ignore ICMP broadcasts
-#net.ipv4.icmp_echo_ignore_broadcasts = 1
-#
-# Ignore bogus ICMP errors
-#net.ipv4.icmp_ignore_bogus_error_responses = 1
-#
-# Do not accept ICMP redirects (prevent MITM attacks)
-#net.ipv4.conf.all.accept_redirects = 0
-#net.ipv6.conf.all.accept_redirects = 0
-# _or_
-# Accept ICMP redirects only for gateways listed in our default
-# gateway list (enabled by default)
-# net.ipv4.conf.all.secure_redirects = 1
-#
-# Do not send ICMP redirects (we are not a router)
-#net.ipv4.conf.all.send_redirects = 0
-#
-# Do not accept IP source route packets (we are not a router)
-#net.ipv4.conf.all.accept_source_route = 0
-#net.ipv6.conf.all.accept_source_route = 0
-#
-# Log Martian Packets
-#net.ipv4.conf.all.log_martians = 1
-#
-
-#kernel.shmmax = 141762560
recipes-append/procps/procps_3.2.8.bbappend +1 -2
index f5d4fd1..8445337 100644
@@ -1,3 +1,2 @@
-PR_fsl .= "+${DISTRO}.0"
+PRINC := "${@int(PRINC) + 1}"
 
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
Signature · 1 line
1.7.3.4
Acked-by on v2 2/6
#2 lore raw

Re: [meta-fsl-ppc][PATCH v2 2/6] procps: remove customized sysctl.conf which is SDK specific

Quoted 6 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

It was added to disable rp_filter to enhance ASF IP forward performance, which is really fsl SDK specific.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#3 lore raw

PATCH v2 3/6 udev-extraconf: add rules from udev

In reply to [email protected]

From: Ting Liu <[email protected]>

Points from Otavio Salvador [[email protected]]:

| These rules should go to udev-extraconf due following reasons:
| * adding it to udev makes it MACHINE_ARCH specific (hurts build time)
| * udev-extraconf does fit well for this case
| * udev-extraconf is much smaller to build (so fast build time)
---
 recipes-append/udev/udev_182.bbappend              |    3 +--
 .../udev/files/local.rules                         |    0
 recipes-core/udev/udev-extraconf_1.0.bbappend      |    3 +++
 3 files changed, 4 insertions(+), 2 deletions(-)
 rename {recipes-append => recipes-core}/udev/files/local.rules (100%)
 create mode 100644 recipes-core/udev/udev-extraconf_1.0.bbappend
recipes-append/udev/udev_182.bbappend +1 -2
index f15533b..8445337 100644
@@ -1,3 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-PR_fsl .= "+${DISTRO}.1"
recipes-core/udev/files/local.rules renamed from recipes-append/udev/files/local.rules +0 -0
similarity index 100%
rename from recipes-append/udev/files/local.rules
rename to recipes-core/udev/files/local.rules
recipes-core/udev/udev-extraconf_1.0.bbappend new file +3 -0
new file mode 100644
index 0000000..b3641a4
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+PRINC := "${@int(PRINC) + 1}"
Signature · 1 line
1.7.3.4
#4 lore raw

Re: [meta-fsl-ppc][PATCH v2 3/6] udev-extraconf: add rules from udev

Hello,

Quoted 9 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

Points from Otavio Salvador [[email protected]]:

| These rules should go to udev-extraconf due following reasons:
| * adding it to udev makes it MACHINE_ARCH specific (hurts build time)
| * udev-extraconf does fit well for this case
| * udev-extraconf is much smaller to build (so fast build time)

Please change the commit log; the commit log ought to explain the change and why it has been done. I understand you reused my comments for it but it does not fit there. The file ought to be put inside udev-extraconf directory so you can drop the override to find the file.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#5 lore raw

PATCH v2 4/6 udev-extraconf: added to the list of MACHINE_EXTRA_RRECOMMENDS

In reply to [email protected]

From: Ting Liu <[email protected]>

It will then added into packagegroup-basic and packagegroup-base.

---
 conf/machine/e500mc.inc    |    2 +-
 conf/machine/e500v2.inc    |    2 +-
 conf/machine/e5500-64b.inc |    2 +-
 conf/machine/e5500.inc     |    2 +-
 conf/machine/e6500-64b.inc |    2 +-
 conf/machine/e6500.inc     |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
conf/machine/e500mc.inc +1 -1
index 505d805..e523a87 100644
@@ -3,7 +3,7 @@ TARGET_FPU = "hard"
 require conf/machine/include/tune-ppce500mc.inc
 
 MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
-MACHINE_EXTRA_RRECOMMENDS = "u-boot"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
conf/machine/e500v2.inc +1 -1
index 12086f7..cb3d7ad 100644
@@ -1,7 +1,7 @@
 require conf/machine/include/tune-ppce500v2.inc
 
 MACHINE_FEATURES = "kernel26 pci ext2 ext3 serial"
-MACHINE_EXTRA_RRECOMMENDS = "u-boot"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
conf/machine/e5500-64b.inc +1 -1
index 650585f..d2fa078 100644
@@ -4,7 +4,7 @@ DEFAULTTUNE ?= "ppc64e5500"
 require conf/machine/include/tune-ppce5500.inc
 
 MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
-MACHINE_EXTRA_RRECOMMENDS = "u-boot"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
conf/machine/e5500.inc +1 -1
index 1a1bb20..09870c9 100644
@@ -3,7 +3,7 @@ TARGET_FPU = "hard"
 require conf/machine/include/tune-ppce5500.inc
 
 MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
-MACHINE_EXTRA_RRECOMMENDS = "u-boot"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
conf/machine/e6500-64b.inc +1 -1
index 85bcb39..57e61b2 100644
@@ -4,7 +4,7 @@ DEFAULTTUNE ?= "ppc64e6500"
 require conf/machine/include/tune-ppce6500.inc
 
 MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
-MACHINE_EXTRA_RRECOMMENDS = "u-boot"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
conf/machine/e6500.inc +1 -1
index 31c61a2..b343742 100644
@@ -3,7 +3,7 @@ TARGET_FPU = "hard"
 require conf/machine/include/tune-ppce6500.inc
 
 MACHINE_FEATURES = "kernel26 keyboard pci ext2 ext3 serial"
-MACHINE_EXTRA_RRECOMMENDS = "u-boot"
+MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
Signature · 1 line
1.7.3.4
#6 lore raw

PATCH v2 5/6 udev-extraconf: add udev rules from netbase

In reply to [email protected]

From: Ting Liu <[email protected]>

---
 recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
 .../files/71-fsl-dpaa-persistent-networking.rules  |    0
 recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
 3 files changed, 10 insertions(+), 10 deletions(-)
 rename {recipes-append/netbase => recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules (100%)
recipes-append/netbase/netbase_5.0.bbappend +1 -9
index dc0fd0a..8445337 100644
@@ -1,10 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
-
-do_install_append_fsl () {
-	install -d ${D}${sysconfdir}/udev/rules.d/
-	install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
-}
-
-PR_fsl .= "+${DISTRO}"
recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules renamed from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules +0 -0
similarity index 100%
rename from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
rename to recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
recipes-core/udev/udev-extraconf_1.0.bbappend +9 -1
index b3641a4..78394d1 100644
@@ -1,3 +1,11 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
-PRINC := "${@int(PRINC) + 1}"
+SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"
+
+do_install_append () {
+    install -d ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
+}
+
+PRINC := "${@int(PRINC) + 2}"
+
Signature · 1 line
1.7.3.4
#7 lore raw

Re: [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf: add udev rules from netbase

Quoted 35 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

---
 recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
 .../files/71-fsl-dpaa-persistent-networking.rules  |    0
 recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
 3 files changed, 10 insertions(+), 10 deletions(-)
 rename {recipes-append/netbase => recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules (100%)
recipes-append/netbase/netbase_5.0.bbappend +1 -9
index dc0fd0a..8445337 100644
@@ -1,10 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
-
-do_install_append_fsl () {
-       install -d ${D}${sysconfdir}/udev/rules.d/
-       install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
-}
-
-PR_fsl .= "+${DISTRO}"
recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules renamed from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules +0 -0
similarity index 100%
rename from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules
rename to recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules
recipes-core/udev/udev-extraconf_1.0.bbappend +0 -0
index b3641a4..78394d1 100644

recipes-core/udev/udev-extraconf_1.0.bbappend line 1

Quoted 1 line
recipes-core/udev/udev-extraconf_1.0.bbappend +0 -0
@@ -1,3 +1,11 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

This could be dropped if you move it to udev-extraconf directory.

recipes-core/udev/udev-extraconf_1.0.bbappend line 3

Quoted 2 lines
recipes-core/udev/udev-extraconf_1.0.bbappend +1 -1
-PRINC := "${@int(PRINC) + 1}"
+SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"

SRC_URI_append = " file://...

Quoted 15 lines
recipes-core/udev/udev-extraconf_1.0.bbappend +7 -1
+do_install_append () {
+    install -d ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
+}
+
+PRINC := "${@int(PRINC) + 2}"
+
--

1.7.3.4

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#8 lore raw

Re: [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf: add udev rules from netbase

Quoted 49 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Friday, March 08, 2013 9:38 PM
To: Liu Ting-B28495
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf:
add udev rules from netbase

Quoted 18 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

---
 recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
 .../files/71-fsl-dpaa-persistent-networking.rules  |    0
 recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
 3 files changed, 10 insertions(+), 10 deletions(-)  rename

{recipes-append/netbase => recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules (100%)

recipes-append/netbase/netbase_5.0.bbappend +0 -0
index dc0fd0a..8445337 100644

recipes-append/netbase/netbase_5.0.bbappend line 7

Quoted 8 lines
recipes-append/netbase/netbase_5.0.bbappend +1 -6
@@ -1,10 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
-
-do_install_append_fsl () {
-       install -d ${D}${sysconfdir}/udev/rules.d/
-       install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-

networking.rules ${D}${sysconfdir}/udev/rules.d

Quoted 12 lines
recipes-append/netbase/netbase_5.0.bbappend +0 -3
-}
-
-PR_fsl .= "+${DISTRO}"

diff --git a/recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules b/recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules similarity index 100%
rename from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules rename to recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules

(quoted diff) +0 -0
Quoted 8 lines

recipes-core/udev/udev-extraconf_1.0.bbappend line 1

Quoted 6 lines

b/recipes-core/udev/udev-extraconf_1.0.bbappend
index b3641a4..78394d1 100644

recipes-core/udev/udev-extraconf_1.0.bbappend +0 -0
@@ -1,3 +1,11 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

This could be dropped if you move it to udev-extraconf directory.

Seems that udev-extraconf directory of the layer that bbappend exists is not in the list of searched paths:

Log:
WARNING: Failed to fetch URL file://72-fsl-dpaa-persistent-networking.rules, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://72-fsl-dpaa-persistent-networking.rules anywhere. The c were:

    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/
    /home/jenkins/yocto-build/poky/build_t4240qds-64b_release/../sources

ERROR: Function failed: Fetcher failure for URL: 'file://72-fsl-dpaa-persistent-networking.rules'. Unable to fetch URL from any source.

Quoted 29 lines

recipes-core/udev/udev-extraconf_1.0.bbappend line 3

Quoted 3 lines
recipes-core/udev/udev-extraconf_1.0.bbappend +1 -1
-PRINC := "${@int(PRINC) + 1}"
+SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"

SRC_URI_append = " file://...

Quoted 12 lines
recipes-core/udev/udev-extraconf_1.0.bbappend +8 -1
+do_install_append () {
+    install -d ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644
+${WORKDIR}/71-fsl-dpaa-persistent-networking.rules
+${D}${sysconfdir}/udev/rules.d }
+
+PRINC := "${@int(PRINC) + 2}"
+
--

1.7.3.4

Quoted 4 lines

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#9 lore raw

Re: [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf: add udev rules from netbase

Quoted 85 lines · On Fri, Mar 8, 2013 at 11:54 PM, Liu Ting-B28495 <[email protected]> wrote:
Quoted 49 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Friday, March 08, 2013 9:38 PM
To: Liu Ting-B28495
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH v2 5/6] udev-extraconf:
add udev rules from netbase

Quoted 18 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

---
 recipes-append/netbase/netbase_5.0.bbappend        |   10 +---------
 .../files/71-fsl-dpaa-persistent-networking.rules  |    0
 recipes-core/udev/udev-extraconf_1.0.bbappend      |   10 +++++++++-
 3 files changed, 10 insertions(+), 10 deletions(-)  rename

{recipes-append/netbase => recipes-core/udev}/files/71-fsl-dpaa-persistent-networking.rules (100%)

recipes-append/netbase/netbase_5.0.bbappend +0 -0
index dc0fd0a..8445337 100644

recipes-append/netbase/netbase_5.0.bbappend line 7

Quoted 8 lines
recipes-append/netbase/netbase_5.0.bbappend +1 -6
@@ -1,10 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"
 
-SRC_URI_append_fsl += "file://71-fsl-dpaa-persistent-networking.rules"
-
-do_install_append_fsl () {
-       install -d ${D}${sysconfdir}/udev/rules.d/
-       install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-

networking.rules ${D}${sysconfdir}/udev/rules.d

Quoted 12 lines
recipes-append/netbase/netbase_5.0.bbappend +0 -3
-}
-
-PR_fsl .= "+${DISTRO}"

diff --git a/recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules b/recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules similarity index 100%
rename from recipes-append/netbase/files/71-fsl-dpaa-persistent-networking.rules rename to recipes-core/udev/files/71-fsl-dpaa-persistent-networking.rules

(quoted diff) +0 -0
Quoted 8 lines

recipes-core/udev/udev-extraconf_1.0.bbappend line 1

Quoted 6 lines

b/recipes-core/udev/udev-extraconf_1.0.bbappend
index b3641a4..78394d1 100644

recipes-core/udev/udev-extraconf_1.0.bbappend +0 -0
@@ -1,3 +1,11 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

This could be dropped if you move it to udev-extraconf directory.

Seems that udev-extraconf directory of the layer that bbappend exists is not in the list of searched paths:

Log:
WARNING: Failed to fetch URL file://72-fsl-dpaa-persistent-networking.rules, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://72-fsl-dpaa-persistent-networking.rules anywhere. The c were:

    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf-1.0/
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/udev-extraconf/
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/allarch
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/poky
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/e6500-64b
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fslmachine
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/t4240
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/fsl-networking
    /home/jenkins/yocto-build/poky/meta/recipes-core/udev/files/
    /home/jenkins/yocto-build/poky/build_t4240qds-64b_release/../sources
Quoted 1 line

ERROR: Function failed: Fetcher failure for URL: 'file://72-fsl-dpaa-persistent-networking.rules'. Unable to fetch URL from any source.

Indeed.

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" needs to be add in the first patch, adding bbappend.

Quoted 17 lines
Quoted 17 lines

recipes-core/udev/udev-extraconf_1.0.bbappend line 3

Quoted 2 lines
recipes-core/udev/udev-extraconf_1.0.bbappend +1 -1
-PRINC := "${@int(PRINC) + 1}"
+SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"

SRC_URI_append = " file://...

Quoted 12 lines
recipes-core/udev/udev-extraconf_1.0.bbappend +8 -1
+do_install_append () {
+    install -d ${D}${sysconfdir}/udev/rules.d/
+    install -m 0644
+${WORKDIR}/71-fsl-dpaa-persistent-networking.rules
+${D}${sysconfdir}/udev/rules.d }
+
+PRINC := "${@int(PRINC) + 2}"
+
--

1.7.3.4

Quoted 13 lines
Quoted 11 lines
Quoted 4 lines

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#10 lore raw

PATCH v2 6/6 udev-extraconf: add rule to rename network interfaces for t4/b4

In reply to [email protected]

From: Ting Liu <[email protected]>

Since on FManv3 a MEMAC can be configured either as 1G or 10G, rename all interfaces on T4/B4 to "fmX-macY", with X in the range 1..2 and Y in the range 1..10.

---
 .../files/72-fsl-dpaa-persistent-networking.rules  |   21 ++++++++++++++++++++
 recipes-core/udev/udev-extraconf_1.0.bbappend      |    7 +++--
 2 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 recipes-core/udev/files/72-fsl-dpaa-persistent-networking.rules
recipes-core/udev/files/72-fsl-dpaa-persistent-networking.rules new file +21 -0
new file mode 100644
index 0000000..34e72a3
@@ -0,0 +1,21 @@
+# Rules for handling naming the DPAA FMan ethernet ports in a consistent way
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4e0000", NAME="fm1-mac1"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4e2000", NAME="fm1-mac2"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4e4000", NAME="fm1-mac3"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4e6000", NAME="fm1-mac4"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4e8000", NAME="fm1-mac5"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4ea000", NAME="fm1-mac6"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4ec000", NAME="fm1-mac7"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4ee000", NAME="fm1-mac8"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4f0000", NAME="fm1-mac9"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe4f2000", NAME="fm1-mac10"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5e0000", NAME="fm2-mac1"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5e2000", NAME="fm2-mac2"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5e4000", NAME="fm2-mac3"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5e6000", NAME="fm2-mac4"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5e8000", NAME="fm2-mac5"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5ea000", NAME="fm2-mac6"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5ec000", NAME="fm2-mac7"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5ee000", NAME="fm2-mac8"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5f0000", NAME="fm2-mac9"
+SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5f2000", NAME="fm2-mac10"
recipes-core/udev/udev-extraconf_1.0.bbappend +4 -3
index 78394d1..3886dcc 100644
@@ -1,11 +1,12 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
-SRC_URI_append += "file://71-fsl-dpaa-persistent-networking.rules"
+SRC_URI_append += " file://${@bb.utils.contains("TUNE_FEATURES", "e6500", \
+    "72-fsl-dpaa-persistent-networking.rules", "71-fsl-dpaa-persistent-networking.rules", d)}"
 
 do_install_append () {
     install -d ${D}${sysconfdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/71-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
+    install -m 0644 ${WORKDIR}/*-fsl-dpaa-persistent-networking.rules ${D}${sysconfdir}/udev/rules.d
 }
 
-PRINC := "${@int(PRINC) + 2}"
+PRINC := "${@int(PRINC) + 3}"
 
Signature · 1 line
1.7.3.4
#11 lore raw

Re: [meta-fsl-ppc][PATCH v2 6/6] udev-extraconf: add rule to rename network interfaces for t4/b4

Quoted 5 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:
---
 .../files/72-fsl-dpaa-persistent-networking.rules  |   21 ++++++++++++++++++++

Same comments here.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
Acked-by on v2 1/6
#12 lore raw
In reply to [email protected]
Quoted 6 lines · On Fri, Mar 8, 2013 at 6:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

This is fsl SDK specific, and was recommended to go to SDK layer:
http://patches.openembedded.org/patch/34623/

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#13 lore raw
In reply to [email protected]
Quoted 39 lines · On Fri, Mar 8, 2013 at 3:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

This is fsl SDK specific, and was recommended to go to SDK layer:
http://patches.openembedded.org/patch/34623/

---
 .../sysvinit/files/auto-detect-hostname.patch      |   16 ----------------
 recipes-append/sysvinit/sysvinit_2.88dsf.bbappend  |    5 +----
 2 files changed, 1 insertions(+), 20 deletions(-)
 delete mode 100644 recipes-append/sysvinit/files/auto-detect-hostname.patch
recipes-append/sysvinit/files/auto-detect-hostname.patch deleted +0 -16
deleted file mode 100644
index da70184..0000000
@@ -1,16 +0,0 @@
-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
recipes-append/sysvinit/sysvinit_2.88dsf.bbappend +0 -0
index 9c9dc75..8445337 100644

recipes-append/sysvinit/sysvinit_2.88dsf.bbappend line 1

Quoted 2 lines
recipes-append/sysvinit/sysvinit_2.88dsf.bbappend +1 -1
@@ -1,5 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"

Otavio,

When can we drop this? When the version changes?

-M

#14 lore raw
Quoted 45 lines · Matthew McClintock
Quoted 39 lines · On Fri, Mar 8, 2013 at 3:42 AM, <[email protected]> wrote:

From: Ting Liu <[email protected]>

This is fsl SDK specific, and was recommended to go to SDK layer:
http://patches.openembedded.org/patch/34623/

---
 .../sysvinit/files/auto-detect-hostname.patch      |   16 ----------------
 recipes-append/sysvinit/sysvinit_2.88dsf.bbappend  |    5 +----
 2 files changed, 1 insertions(+), 20 deletions(-)
 delete mode 100644 recipes-append/sysvinit/files/auto-detect-hostname.patch
recipes-append/sysvinit/files/auto-detect-hostname.patch deleted +0 -16
deleted file mode 100644
index da70184..0000000
@@ -1,16 +0,0 @@
-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
recipes-append/sysvinit/sysvinit_2.88dsf.bbappend +0 -0
index 9c9dc75..8445337 100644

recipes-append/sysvinit/sysvinit_2.88dsf.bbappend line 1

Quoted 2 lines
recipes-append/sysvinit/sysvinit_2.88dsf.bbappend +1 -1
@@ -1,5 +1,2 @@
-FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"

Otavio,

Quoted 1 line

When can we drop this? When the version changes?

Yes; we can.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br