Skip to contentSkip to conversation

parse-ip: Add support for keystone platforms

PATCH Superseded Sam Nelson 2 participants 5 messages Jan 16, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 parse-ip: Add support for keystone platforms

- Added separate script for keystone platforms
- Script parses ip and sends to uart, picked up by BMC and display on LCD screen

---
 .../recipes-tisdk/parse-ip/parse-ip.bb             |   12 ++++---
 .../recipes-tisdk/parse-ip/parse-ip/init.keystone  |   37 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +8 -4
index f20db31..5353ac6 100644
@@ -2,23 +2,27 @@ DESCRIPTION = "Script to parse ip address during boot and make it available to t
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://init;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b945e"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x"
+COMPATIBLE_MACHINE = "ti33x|ti43x|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://init"
+SRC_URI = "file://init \
+	   file://init.keystone"
 
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}"
 
 INITSCRIPT_NAME = "parse-ip"
 INITSCRIPT_PARAMS = "defaults 98"
+INITSCRIPT_FILENAME = "init"
+
+INITSCRIPT_FILENAME_keystone = "init.keystone"
 
 inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/parse-ip
+    install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME} ${D}${sysconfdir}/init.d/parse-ip
 }
 
 FILES_${PN} = "${sysconfdir}"
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +37 -0
new file mode 100644
index 0000000..7ea199e
@@ -0,0 +1,37 @@
+#*
+#* Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/
+#*
+#*
+#*  Redistribution and use in source and binary forms, with or without
+#*  modification, are permitted provided that the following conditions
+#*  are met:
+#*
+#*    Redistributions of source code must retain the above copyright
+#*    notice, this list of conditions and the following disclaimer.
+#*
+#*    Redistributions in binary form must reproduce the above copyright
+#*    notice, this list of conditions and the following disclaimer in the
+#*    documentation and/or other materials provided with the
+#*    distribution.
+#*
+#*    Neither the name of Texas Instruments Incorporated nor the names of
+#*    its contributors may be used to endorse or promote products derived
+#*    from this software without specific prior written permission.
+#*
+
+#! /bin/sh
+
+case "$1" in
+    start )
+        echo '#>>>>> LCD 12' > ipaddr
+        echo 'IP Address:' >> ipaddr
+        cat ipaddr
+
+        echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'` > ipaddr
+        cat ipaddr
+
+        sleep 1
+    ;;
+    stop )
+        exit 0;;
+esac
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 15 lines · Sam Nelson

- Added separate script for keystone platforms
- Script parses ip and sends to uart, picked up by BMC and display on LCD screen

---
 .../recipes-tisdk/parse-ip/parse-ip.bb             |   12 ++++---
 .../recipes-tisdk/parse-ip/parse-ip/init.keystone  |   37 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
index f20db31..5353ac6 100644

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t · line 9

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +3 -2
@@ -2,23 +2,27 @@ DESCRIPTION = "Script to parse ip address during boot and make it available to t
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://init;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b945e"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x"
+COMPATIBLE_MACHINE = "ti33x|ti43x|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://init"
+SRC_URI = "file://init \
+	   file://init.keystone"

I don't remember if SOC_FAMILY was added to file overrides, but have you tried placing your specific init under recipes-tisdk/parse-ip/parse-ip/keystone/init?

That way you don't need to make changes to the recipe itself, it should pick up your keystone-specific version of the file automatically.

Quoted 70 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +5 -2
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}"
 
 INITSCRIPT_NAME = "parse-ip"
 INITSCRIPT_PARAMS = "defaults 98"
+INITSCRIPT_FILENAME = "init"
+
+INITSCRIPT_FILENAME_keystone = "init.keystone"
 
 inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/parse-ip
+    install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME} ${D}${sysconfdir}/init.d/parse-ip
 }
 
 FILES_${PN} = "${sysconfdir}"
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +37 -0
new file mode 100644
index 0000000..7ea199e
@@ -0,0 +1,37 @@
+#*
+#* Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/
+#*
+#*
+#*  Redistribution and use in source and binary forms, with or without
+#*  modification, are permitted provided that the following conditions
+#*  are met:
+#*
+#*    Redistributions of source code must retain the above copyright
+#*    notice, this list of conditions and the following disclaimer.
+#*
+#*    Redistributions in binary form must reproduce the above copyright
+#*    notice, this list of conditions and the following disclaimer in the
+#*    documentation and/or other materials provided with the
+#*    distribution.
+#*
+#*    Neither the name of Texas Instruments Incorporated nor the names of
+#*    its contributors may be used to endorse or promote products derived
+#*    from this software without specific prior written permission.
+#*
+
+#! /bin/sh
+
+case "$1" in
+    start )
+        echo '#>>>>> LCD 12' > ipaddr
+        echo 'IP Address:' >> ipaddr
+        cat ipaddr
+
+        echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'` > ipaddr
+        cat ipaddr
+
+        sleep 1
+    ;;
+    stop )
+        exit 0;;
+esac
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw
Quoted 49 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, January 15, 2015 10:06 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] parse-ip: Add support for keystone platforms

Quoted 2 lines · Sam Nelson

- Added separate script for keystone platforms
- Script parses ip and sends to uart, picked up by BMC and display on LCD

screen

Quoted 5 lines
---
 .../recipes-tisdk/parse-ip/parse-ip.bb             |   12 ++++---
 .../recipes-tisdk/parse-ip/parse-ip/init.keystone  |   37

++++++++++++++++++++

Quoted 2 lines
 2 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/parse-ip/parse-

ip/init.keystone

meta-

Quoted 2 lines
meta- renamed from meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0

arago-distro/recipes-tisdk/parse-ip/parse-ip.bb

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during

Quoted 4 lines

index f20db31..5353ac6 100644

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
@@ -2,23 +2,27 @@ DESCRIPTION = "Script to parse ip address during

boot and make it available to t

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during · line 3

Quoted 2 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
 LICENSE = "BSD"
 LIC_FILES_CHKSUM =

"file://init;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b94 5e"

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t · line 9

Quoted 8 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +3 -2
-COMPATIBLE_MACHINE = "ti33x|ti43x"
+COMPATIBLE_MACHINE = "ti33x|ti43x|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://init"
+SRC_URI = "file://init \
+	   file://init.keystone"

I don't remember if SOC_FAMILY was added to file overrides, but have you tried
placing your specific init under recipes-tisdk/parse-ip/parse- ip/keystone/init?

Quoted 2 lines

That way you don't need to make changes to the recipe itself, it should pick up your keystone-specific version of the file automatically.

[Sam] Even if the file is put under: recipes-tisdk/parse-ip/parse- ip/keystone/init,
the recipe copies the specific init file: see line below
install -m 0755 ${WORKDIR}/init > ${D}${sysconfdir}/init.d/parse-ip which I had to replace with
install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME} ${D}${sysconfdir}/init.d/parse-ip

So it won't be automatically picked up. Still recipe change is needed. ( Unless you have a way to work around this).

Quoted 77 lines
Quoted 9 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +1 -1
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}"
 
 INITSCRIPT_NAME = "parse-ip"
 INITSCRIPT_PARAMS = "defaults 98"

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +4 -1
+INITSCRIPT_FILENAME = "init"
+
+INITSCRIPT_FILENAME_keystone = "init.keystone"
 
 inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/parse-ip
+    install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME}

${D}${sysconfdir}/init.d/parse-ip

Review

Quoted 4 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
 }
 
 FILES_${PN} = "${sysconfdir}"
(quoted diff) +0 -0

b/meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone line 2

Quoted 7 lines

new file mode 100644
index 0000000..7ea199e

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +2 -0
@@ -0,0 +1,37 @@
+#*
+#* Copyright (C) 2012-2014 Texas Instruments Incorporated -

http://www.ti.com/

Quoted 5 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +5 -0
+#*
+#*
+#*  Redistribution and use in source and binary forms, with or without
+#*  modification, are permitted provided that the following conditions
+#*  are met:

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +10 -0
+#*
+#*    Redistributions of source code must retain the above copyright
+#*    notice, this list of conditions and the following disclaimer.
+#*
+#*    Redistributions in binary form must reproduce the above copyright
+#*    notice, this list of conditions and the following disclaimer in the
+#*    documentation and/or other materials provided with the
+#*    distribution.
+#*
+#*    Neither the name of Texas Instruments Incorporated nor the names

of

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 13 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +13 -0
+#*    its contributors may be used to endorse or promote products derived
+#*    from this software without specific prior written permission.
+#*
+
+#! /bin/sh
+
+case "$1" in
+    start )
+        echo '#>>>>> LCD 12' > ipaddr
+        echo 'IP Address:' >> ipaddr
+        cat ipaddr
+
+        echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk

'{print $1}'` > ipaddr

Quoted 14 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +7 -1
+        cat ipaddr
+
+        sleep 1
+    ;;
+    stop )
+        exit 0;;
+esac
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#3 lore raw
Quoted 49 lines · Sam
Quoted 49 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, January 15, 2015 10:06 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] parse-ip: Add support for keystone platforms

Quoted 2 lines · Sam Nelson

- Added separate script for keystone platforms
- Script parses ip and sends to uart, picked up by BMC and display on LCD

screen

Quoted 5 lines
---
 .../recipes-tisdk/parse-ip/parse-ip.bb             |   12 ++++---
 .../recipes-tisdk/parse-ip/parse-ip/init.keystone  |   37

++++++++++++++++++++

Quoted 2 lines
 2 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/parse-ip/parse-

ip/init.keystone

meta-

Quoted 2 lines
meta- renamed from meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0

arago-distro/recipes-tisdk/parse-ip/parse-ip.bb

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during

Quoted 4 lines

index f20db31..5353ac6 100644

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
@@ -2,23 +2,27 @@ DESCRIPTION = "Script to parse ip address during

boot and make it available to t

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during · line 3

Quoted 2 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
 LICENSE = "BSD"
 LIC_FILES_CHKSUM =

"file://init;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b94 5e"

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t · line 9

Quoted 8 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +3 -2
-COMPATIBLE_MACHINE = "ti33x|ti43x"
+COMPATIBLE_MACHINE = "ti33x|ti43x|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://init"
+SRC_URI = "file://init \
+	   file://init.keystone"

I don't remember if SOC_FAMILY was added to file overrides, but have you tried
placing your specific init under recipes-tisdk/parse-ip/parse- ip/keystone/init?

Quoted 5 lines
Quoted 2 lines

That way you don't need to make changes to the recipe itself, it should pick up your keystone-specific version of the file automatically.

[Sam] Even if the file is put under: recipes-tisdk/parse-ip/parse- ip/keystone/init,
the recipe copies the specific init file: see line below
install -m 0755 ${WORKDIR}/init > ${D}${sysconfdir}/init.d/parse-ip

Note that it's copied from WORKDIR, which will be populated with the correct file.

Quoted 82 lines

which I had to replace with
install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME} ${D}${sysconfdir}/init.d/parse-ip

So it won't be automatically picked up. Still recipe change is needed. ( Unless you have a way to work around this).

Quoted 77 lines
Quoted 9 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +1 -1
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}"
 
 INITSCRIPT_NAME = "parse-ip"
 INITSCRIPT_PARAMS = "defaults 98"

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +4 -1
+INITSCRIPT_FILENAME = "init"
+
+INITSCRIPT_FILENAME_keystone = "init.keystone"
 
 inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/parse-ip
+    install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME}

${D}${sysconfdir}/init.d/parse-ip

Review

Quoted 4 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
 }
 
 FILES_${PN} = "${sysconfdir}"
(quoted diff) +0 -0

b/meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone line 2

Quoted 7 lines

new file mode 100644
index 0000000..7ea199e

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +2 -0
@@ -0,0 +1,37 @@
+#*
+#* Copyright (C) 2012-2014 Texas Instruments Incorporated -

http://www.ti.com/

Quoted 5 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +5 -0
+#*
+#*
+#*  Redistribution and use in source and binary forms, with or without
+#*  modification, are permitted provided that the following conditions
+#*  are met:

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +10 -0
+#*
+#*    Redistributions of source code must retain the above copyright
+#*    notice, this list of conditions and the following disclaimer.
+#*
+#*    Redistributions in binary form must reproduce the above copyright
+#*    notice, this list of conditions and the following disclaimer in the
+#*    documentation and/or other materials provided with the
+#*    distribution.
+#*
+#*    Neither the name of Texas Instruments Incorporated nor the names

of

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 13 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +13 -0
+#*    its contributors may be used to endorse or promote products derived
+#*    from this software without specific prior written permission.
+#*
+
+#! /bin/sh
+
+case "$1" in
+    start )
+        echo '#>>>>> LCD 12' > ipaddr
+        echo 'IP Address:' >> ipaddr
+        cat ipaddr
+
+        echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk

'{print $1}'` > ipaddr

Quoted 14 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +7 -1
+        cat ipaddr
+
+        sleep 1
+    ;;
+    stop )
+        exit 0;;
+esac
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#4 lore raw
Quoted 66 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, January 15, 2015 10:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] parse-ip: Add support for keystone platforms

Quoted 10 lines · Sam
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, January 15, 2015 10:06 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] parse-ip: Add support for keystone platforms

Quoted 3 lines
Quoted 3 lines · Sam Nelson
Quoted 2 lines

- Added separate script for keystone platforms
- Script parses ip and sends to uart, picked up by BMC and display on

LCD

Quoted 6 lines
Quoted 6 lines

screen

Quoted 5 lines
---
 .../recipes-tisdk/parse-ip/parse-ip.bb             |   12 ++++---
 .../recipes-tisdk/parse-ip/parse-ip/init.keystone  |   37
Quoted 6 lines
Quoted 6 lines

++++++++++++++++++++

Quoted 2 lines
 2 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-distro/recipes-tisdk/parse-ip/parse-

ip/init.keystone

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-

Quoted 9 lines
Quoted 9 lines

arago-distro/recipes-tisdk/parse-ip/parse-ip.bb

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during

Quoted 4 lines

index f20db31..5353ac6 100644

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
@@ -2,23 +2,27 @@ DESCRIPTION = "Script to parse ip address during

boot and make it available to t

Quoted 2 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
 LICENSE = "BSD"
 LIC_FILES_CHKSUM =

"file://init;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b94

Quoted 11 lines
Quoted 11 lines

5e"

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t · line 9

Quoted 8 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +3 -2
-COMPATIBLE_MACHINE = "ti33x|ti43x"
+COMPATIBLE_MACHINE = "ti33x|ti43x|keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://init"
+SRC_URI = "file://init \
+	   file://init.keystone"

I don't remember if SOC_FAMILY was added to file overrides, but have

you

Quoted 5 lines
Quoted 5 lines

tried
placing your specific init under recipes-tisdk/parse-ip/parse- ip/keystone/init?

That way you don't need to make changes to the recipe itself, it should

pick

Quoted 8 lines
Quoted 2 lines
Quoted 1 line

up your keystone-specific version of the file automatically.

[Sam] Even if the file is put under: recipes-tisdk/parse-ip/parse-

ip/keystone/init,

Quoted 2 lines

the recipe copies the specific init file: see line below
install -m 0755 ${WORKDIR}/init > ${D}${sysconfdir}/init.d/parse-ip

Note that it's copied from WORKDIR, which will be populated with the correct file.

[Sam] That is great. Thanks. I will send updated patch.

Quoted 90 lines
Quoted 4 lines

which I had to replace with
install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME}

${D}${sysconfdir}/init.d/parse-ip

Quoted 23 lines

So it won't be automatically picked up. Still recipe change is needed. ( Unless you have a way to work around this).

Quoted 20 lines
Quoted 9 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +1 -1
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}"
 
 INITSCRIPT_NAME = "parse-ip"
 INITSCRIPT_PARAMS = "defaults 98"

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb DESCRIPTION = "Script to parse ip address during boot and make it available to t

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +4 -1
+INITSCRIPT_FILENAME = "init"
+
+INITSCRIPT_FILENAME_keystone = "init.keystone"
 
 inherit update-rc.d
 
 do_install() {
     install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/parse-ip
+    install -m 0755 ${WORKDIR}/${INITSCRIPT_FILENAME}

${D}${sysconfdir}/init.d/parse-ip

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip.bb +0 -0
 }
 
 FILES_${PN} = "${sysconfdir}"
(quoted diff) +0 -0

ip/init.keystone

Quoted 9 lines
Quoted 9 lines

b/meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone line 2

Quoted 7 lines

new file mode 100644
index 0000000..7ea199e

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +2 -0
@@ -0,0 +1,37 @@
+#*
+#* Copyright (C) 2012-2014 Texas Instruments Incorporated -

http://www.ti.com/

Quoted 10 lines
Quoted 10 lines

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 10 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +10 -0
+#*
+#*
+#*  Redistribution and use in source and binary forms, with or without
+#*  modification, are permitted provided that the following conditions
+#*  are met:
+#*
+#*    Redistributions of source code must retain the above copyright
+#*    notice, this list of conditions and the following disclaimer.
+#*
+#*    Redistributions in binary form must reproduce the above

copyright

Quoted 5 lines
Quoted 5 lines

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 5 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +5 -0
+#*    notice, this list of conditions and the following disclaimer in the
+#*    documentation and/or other materials provided with the
+#*    distribution.
+#*
+#*    Neither the name of Texas Instruments Incorporated nor the

names

Quoted 2 lines
Quoted 2 lines

of

Quoted 1 line
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +1 -0
+#*    its contributors may be used to endorse or promote products

derived

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +4 -0
+#*    from this software without specific prior written permission.
+#*
+
+#! /bin/sh
Quoted 8 lines
Quoted 8 lines

meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone

Quoted 8 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +8 -0
+
+case "$1" in
+    start )
+        echo '#>>>>> LCD 12' > ipaddr
+        echo 'IP Address:' >> ipaddr
+        cat ipaddr
+
+        echo `ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 |

awk

Quoted 15 lines
Quoted 15 lines

'{print $1}'` > ipaddr

Quoted 14 lines
meta-arago-distro/recipes-tisdk/parse-ip/parse-ip/init.keystone new file +7 -1
+        cat ipaddr
+
+        sleep 1
+    ;;
+    stop )
+        exit 0;;
+esac
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago