Skip to contentSkip to conversation

oprofile-example: Create oprofile-example application

PATCH New Franklin S Cooper Jr 2 participants 7 messages Aug 13, 2012 – Aug 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oprofile-example: Create oprofile-example application

* This application was split from am-sysinfo.

---
 .../oprofile-example/oprofile-example_git.bb       |   30 ++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 meta-arago-extras/recipes-core/oprofile-example/oprofile-example_git.bb
meta-arago-extras/recipes-core/oprofile-example/oprofile-example_git.bb new file +30 -0
new file mode 100644
index 0000000..79278fb
@@ -0,0 +1,30 @@
+DESCRIPTION = "OProfile Example"
+HOMEPAGE = "https://gitorious.org/oprofile-example"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://signal_parent.c;beginline=1;endline=37;md5=3c72149bb458105db5d2e6fbcb2da66e"
+
+SECTION = "system"
+
+PACKAGE_STRIP = "no"
+
+PR = "r0"
+
+BRANCH ?= "master"
+SRCREV = "875147fcaf0706f91b1bcbf9d80821de78257955"
+
+SRC_URI = "git://gitorious.org/oprofile-example/oprofile-example.git;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+    install -d  ${S}/Debug
+    install -d  ${S}/Debug1
+	${CC} ${CFLAGS} ${LDFLAGS} -o Debug/signal_parent signal_parent.c
+	${CC} ${CFLAGS} -DUSE_SIGNALS ${LDFLAGS} -o Debug1/signal_parent.opt signal_parent.c
+}
+
+do_install() {
+	install -d ${D}/${bindir}
+	install -m 0755 ${S}/Debug/signal_parent ${D}/${bindir}
+	install -m 0755 ${S}/Debug1/signal_parent.opt ${D}/${bindir}
+}
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 matrix-gui-oprofile-demos: Update RDEPENDS

* Replace the RDEPENDS from am-sysinfo to oprofile-example. The application oprofile-example use to be located within am-sysinfo but now is located in its own repository.

---
 .../matrix/matrix-gui-oprofile-demos_2.0.bb        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/matrix/matrix-gui-oprofile-demos_2.0.bb +2 -2
index e8aad0b..d3246f9 100644
@@ -4,7 +4,7 @@ LICENSE = "CC-BY-SA"
 
 require matrix-gui-apps-git.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 inherit allarch
 
@@ -13,6 +13,6 @@ S = "${WORKDIR}/git/oprofile_apps"
 # Make sure profiling submenu and app images  has been installed
 # Include am-sysinfo because that package has the sample
 # executables for profiling.
-RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile am-sysinfo"
+RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile oprofile-example"
 
 FILES_${PN} += "${MATRIX_BASE_DIR}/*"
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH] matrix-gui-oprofile-demos: Update RDEPENDS

Franklin,

Just a nit-pick for the future - to not break bisectability, you should normally do this in 2 commits:

1. add oprofile-example recipe AND switch the RDEPENDS
2. remove the old reference from am-sysinfo

Denys

Quoted 38 lines · Franklin S Cooper Jr

* Replace the RDEPENDS from am-sysinfo to oprofile-example. The application oprofile-example use to be located within am-sysinfo but now is located in its own repository.

---
 .../matrix/matrix-gui-oprofile-demos_2.0.bb        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/matrix/matrix-gui-oprofile-demos_2.0.bb +2 -2
index e8aad0b..d3246f9 100644
@@ -4,7 +4,7 @@ LICENSE = "CC-BY-SA"
 
 require matrix-gui-apps-git.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 inherit allarch
 
@@ -13,6 +13,6 @@ S = "${WORKDIR}/git/oprofile_apps"
 # Make sure profiling submenu and app images  has been installed
 # Include am-sysinfo because that package has the sample
 # executables for profiling.
-RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile am-sysinfo"
+RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile oprofile-example"
 
 FILES_${PN} += "${MATRIX_BASE_DIR}/*"
Signature · 6 lines
1.7.0.4

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

Re: [PATCH] matrix-gui-oprofile-demos: Update RDEPENDS

That makes sense. Will do so in the future. Thx

-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Tuesday, August 14, 2012 10:47 AM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] matrix-gui-oprofile-demos: Update RDEPENDS

Franklin,

Just a nit-pick for the future - to not break bisectability, you should normally do this in 2 commits:

1. add oprofile-example recipe AND switch the RDEPENDS
2. remove the old reference from am-sysinfo

Denys

Quoted 38 lines · Franklin S Cooper Jr

* Replace the RDEPENDS from am-sysinfo to oprofile-example. The application oprofile-example use to be located within am-sysinfo but now is located in its own repository.

---
 .../matrix/matrix-gui-oprofile-demos_2.0.bb        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/matrix/matrix-gui-oprofile-demos_2.0.bb +2 -2
index e8aad0b..d3246f9 100644
@@ -4,7 +4,7 @@ LICENSE = "CC-BY-SA"
 
 require matrix-gui-apps-git.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 inherit allarch
 
@@ -13,6 +13,6 @@ S = "${WORKDIR}/git/oprofile_apps"
 # Make sure profiling submenu and app images  has been installed
 # Include am-sysinfo because that package has the sample
 # executables for profiling.
-RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile am-sysinfo"
+RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile oprofile-example"
 
 FILES_${PN} += "${MATRIX_BASE_DIR}/*"
Signature · 6 lines
1.7.0.4

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

Re: [PATCH] matrix-gui-oprofile-demos: Update RDEPENDS

Quoted 1 line · Franklin

That makes sense. Will do so in the future. Thx

Thanks. The point is to ensure every commit is atomic and does not break the build - try to avoid having one patch break the build and another right after that to fix it. Patches should be split into functional entities, but it doesn't mean they always have to be one patch per recipe...

Denys

Quoted 58 lines

-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Tuesday, August 14, 2012 10:47 AM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] matrix-gui-oprofile-demos: Update RDEPENDS

Franklin,

Just a nit-pick for the future - to not break bisectability, you should normally do this in 2 commits:

1. add oprofile-example recipe AND switch the RDEPENDS
2. remove the old reference from am-sysinfo

Denys

Quoted 38 lines · Franklin S Cooper Jr

* Replace the RDEPENDS from am-sysinfo to oprofile-example. The application oprofile-example use to be located within am-sysinfo but now is located in its own repository.

---
 .../matrix/matrix-gui-oprofile-demos_2.0.bb        |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/matrix/matrix-gui-oprofile-demos_2.0.bb +2 -2
index e8aad0b..d3246f9 100644
@@ -4,7 +4,7 @@ LICENSE = "CC-BY-SA"
 
 require matrix-gui-apps-git.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 inherit allarch
 
@@ -13,6 +13,6 @@ S = "${WORKDIR}/git/oprofile_apps"
 # Make sure profiling submenu and app images  has been installed
 # Include am-sysinfo because that package has the sample
 # executables for profiling.
-RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile am-sysinfo"
+RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-oprofile oprofile oprofile-example"
 
 FILES_${PN} += "${MATRIX_BASE_DIR}/*"
Signature · 6 lines
1.7.0.4

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

PATCH 1/1 am-sysinfo: Remove oprofile-example

In reply to Franklin S Cooper Jr

* The application oprofile-example has been removed from within am-sysinfo

---
 .../recipes-core/am-sysinfo/am-sysinfo_svn.bb      |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
meta-arago-extras/recipes-core/am-sysinfo/am-sysinfo_svn.bb +2 -6
index 40daafa..78d8a97 100644
@@ -7,9 +7,9 @@ SECTION = "system"
 
 PACKAGE_STRIP = "no"
 
-SRCREV = "16"
+SRCREV = "17"
 PV = "1.0"
-PR = "r3+svnr${SRCPV}"
+PR = "r4+svnr${SRCPV}"
 
 SRC_URI = "svn://gforge.ti.com/svn/am_sysinfo/;module=trunk;protocol=https;user=anonymous;pswd=''"
 
@@ -17,13 +17,9 @@ S = "${WORKDIR}/trunk"
 
 do_compile() {
 	${CC} ${CFLAGS} ${LDFLAGS} -o mem_util/mem_util mem_util/mem_util.c
-	${CC} ${CFLAGS} ${LDFLAGS} -o oprofile_example/Debug/signal_parent oprofile_example/signal_parent.c
-	${CC} ${CFLAGS} -DUSE_SIGNALS ${LDFLAGS} -o oprofile_example/Debug1/signal_parent.opt oprofile_example/signal_parent.c
 }
 
 do_install() {
 	install -d ${D}/${bindir}
 	install -m 0755 ${S}/mem_util/mem_util ${D}/${bindir}
-	install -m 0755 ${S}/oprofile_example/Debug/signal_parent ${D}/${bindir}
-	install -m 0755 ${S}/oprofile_example/Debug1/signal_parent.opt ${D}/${bindir}
 }
Signature · 1 line
1.7.0.4
#6 lore raw

Re: [meta-argo][PATCH] am-sysinfo: Remove oprofile-example

Please ignore this patch. Updated patch has been sent.

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Monday, August 13, 2012 10:57 AM
To: [email protected]
Cc: Cooper Jr., Franklin
Subject: [meta-argo][PATCH] am-sysinfo: Remove oprofile-example

* The application oprofile-example has been removed from within am-sysinfo

---
 .../recipes-core/am-sysinfo/am-sysinfo_svn.bb      |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
meta-arago-extras/recipes-core/am-sysinfo/am-sysinfo_svn.bb +2 -6
index 40daafa..78d8a97 100644
@@ -7,9 +7,9 @@ SECTION = "system"
 
 PACKAGE_STRIP = "no"
 
-SRCREV = "16"
+SRCREV = "17"
 PV = "1.0"
-PR = "r3+svnr${SRCPV}"
+PR = "r4+svnr${SRCPV}"
 
 SRC_URI = "svn://gforge.ti.com/svn/am_sysinfo/;module=trunk;protocol=https;user=anonymous;pswd=''"
 
@@ -17,13 +17,9 @@ S = "${WORKDIR}/trunk"
 
 do_compile() {
 	${CC} ${CFLAGS} ${LDFLAGS} -o mem_util/mem_util mem_util/mem_util.c
-	${CC} ${CFLAGS} ${LDFLAGS} -o oprofile_example/Debug/signal_parent oprofile_example/signal_parent.c
-	${CC} ${CFLAGS} -DUSE_SIGNALS ${LDFLAGS} -o oprofile_example/Debug1/signal_parent.opt oprofile_example/signal_parent.c
 }
 
 do_install() {
 	install -d ${D}/${bindir}
 	install -m 0755 ${S}/mem_util/mem_util ${D}/${bindir}
-	install -m 0755 ${S}/oprofile_example/Debug/signal_parent ${D}/${bindir}
-	install -m 0755 ${S}/oprofile_example/Debug1/signal_parent.opt ${D}/${bindir}
 }
Signature · 1 line
1.7.0.4