All of lore.kernel.org
 help / color / mirror / Atom feed
* [[meta-oe][PATCH]aer-inject:add new recipe]  [[meta-oe][PATCH]aer-inject:add new recipe]
@ 2024-03-24 14:06 chenheyun
  2024-03-24 15:09 ` [oe] " Khem Raj
  2024-03-25  5:39 ` chenheyun
  0 siblings, 2 replies; 8+ messages in thread
From: chenheyun @ 2024-03-24 14:06 UTC (permalink / raw)
  To: openembedded-devel, 819869652; +Cc: chenheyun

aer-inject allows to inject PCIE AER errors on the software
level into a running Linux kernel. This is intended for validation of the
PCIE driver error recovery handler and CIE AER core handler.

References:
https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/

Signed-off-by: chenheyun <chen_heyun@163.com>
---
 .../aer-inject/aer-inject_1.0.bb              | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb

diff --git a/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb b/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
new file mode 100644
index 000000000..4b1b5e093
--- /dev/null
+++ b/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
@@ -0,0 +1,25 @@
+SUMMARY = "Inject PCIE AER errors on the software level into a running Linux kernel."
+DESCRIPTION = "\
+aer-inject allows to inject PCIE AER errors on the software \
+level into a running Linux kernel. This is intended for \
+validation of the PCIE driver error recovery handler and \
+PCIE AER core handler."
+HOMEPAGE = "https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/"
+SECTION = "pcie/misc"
+LICENSE = "GPL-2.0"
+
+LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6"
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;branch=master \
+"
+SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "bison-native"
+
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
+}
+FILES:${PN} += "/usr/local/aer-inject"
+BBCLASSEXTEND = "native nativesdk"
\ No newline at end of file
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [oe] [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-24 14:06 [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe] chenheyun
@ 2024-03-24 15:09 ` Khem Raj
  2024-03-25  5:39 ` chenheyun
  1 sibling, 0 replies; 8+ messages in thread
From: Khem Raj @ 2024-03-24 15:09 UTC (permalink / raw)
  To: chenheyun; +Cc: openembedded-devel, 819869652

On Sun, Mar 24, 2024 at 7:07 AM chenheyun <chen_heyun@163.com> wrote:
>
> aer-inject allows to inject PCIE AER errors on the software
> level into a running Linux kernel. This is intended for validation of the
> PCIE driver error recovery handler and CIE AER core handler.
>
> References:
> https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/
>
> Signed-off-by: chenheyun <chen_heyun@163.com>
> ---
>  .../aer-inject/aer-inject_1.0.bb              | 25 +++++++++++++++++++
>  1 file changed, 25 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
>
> diff --git a/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb b/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
> new file mode 100644
> index 000000000..4b1b5e093
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/aer-inject/aer-inject_1.0.bb
> @@ -0,0 +1,25 @@
> +SUMMARY = "Inject PCIE AER errors on the software level into a running Linux kernel."
> +DESCRIPTION = "\
> +aer-inject allows to inject PCIE AER errors on the software \
> +level into a running Linux kernel. This is intended for \
> +validation of the PCIE driver error recovery handler and \
> +PCIE AER core handler."
> +HOMEPAGE = "https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/"
> +SECTION = "pcie/misc"
> +LICENSE = "GPL-2.0"
> +
> +LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6"
> +
> +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;branch=master \

it should need protocol=git as well

> +"
> +SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"
> +
> +S = "${WORKDIR}/git"
> +
> +DEPENDS = "bison-native"
> +
> +do_install() {
> +    oe_runmake 'DESTDIR=${D}' install
> +}
> +FILES:${PN} += "/usr/local/aer-inject"

can we change do_install to install it into /usr and not /usr/local

> +BBCLASSEXTEND = "native nativesdk"
> \ No newline at end of file
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#109565): https://lists.openembedded.org/g/openembedded-devel/message/109565
> Mute This Topic: https://lists.openembedded.org/mt/105119602/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-24 14:06 [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe] chenheyun
  2024-03-24 15:09 ` [oe] " Khem Raj
@ 2024-03-25  5:39 ` chenheyun
  2024-03-25 13:56   ` chenheyun
  1 sibling, 1 reply; 8+ messages in thread
From: chenheyun @ 2024-03-25  5:39 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

hi
it is ok to install aer-intall to usr.
like this:
"
do_install() {
echo ${PREFIX}
echo ${D}
oe_runmake 'DESTDIR=${D}' *'PREFIX=/usr/'* install
}
FILES:${PN} += *"/usr/aer-inject* "
"
i reply before this mail. but i dont find history. so i reply newly.
thanks for your suggestions very much!

[-- Attachment #2: Type: text/html, Size: 524 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-25  5:39 ` chenheyun
@ 2024-03-25 13:56   ` chenheyun
  2024-03-25 16:50     ` [oe] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: chenheyun @ 2024-03-25 13:56 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 106 bytes --]

hi
i fix it in 109586;
https://lists.openembedded.org/g/openembedded-devel/message/109586
thanks。

[-- Attachment #2: Type: text/html, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-25 13:56   ` chenheyun
@ 2024-03-25 16:50     ` Khem Raj
  2024-03-26 14:43       ` chenheyun
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2024-03-25 16:50 UTC (permalink / raw)
  To: chenheyun; +Cc: openembedded-devel

there is another issue

WARNING: aer-inject-1.0-r0 do_package_qa: QA Issue: Recipe LICENSE
includes obsolete licenses GPL-2.0 [obsolete-license]
WARNING: aer-inject-1.0-r0 do_package_qa: QA Issue: File
/usr/.debug/aer-inject in package aer-inject-dbg contains reference to
TMPDIR [buildpaths]

Please look into these too.

On Mon, Mar 25, 2024 at 6:56 AM chenheyun <chen_heyun@163.com> wrote:
>
> hi
>     i fix it in 109586;
> https://lists.openembedded.org/g/openembedded-devel/message/109586
>    thanks。
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#109587): https://lists.openembedded.org/g/openembedded-devel/message/109587
> Mute This Topic: https://lists.openembedded.org/mt/105119602/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-25 16:50     ` [oe] " Khem Raj
@ 2024-03-26 14:43       ` chenheyun
  2024-03-26 15:43         ` [oe] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: chenheyun @ 2024-03-26 14:43 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

sorry, i run it on older meta-openembedded,so i dont find this WARNING. now, i know it ,thanks.

this is note in README:
"You should find a copy of v2 of the GNU General Public License
somewhere on your Linux system; if not, write to the Free Software
Foundation,"

then,can i copy  "kernel-source\LICENSES\preferred\GPL-2.0" to files to fix " obsolete licenses GPL-2.0"?

thanks for your suggestions very much!

[-- Attachment #2: Type: text/html, Size: 602 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-26 14:43       ` chenheyun
@ 2024-03-26 15:43         ` Khem Raj
  2024-03-27 13:13           ` chenheyun
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2024-03-26 15:43 UTC (permalink / raw)
  To: chenheyun; +Cc: openembedded-devel

On Tue, Mar 26, 2024 at 7:43 AM chenheyun <chen_heyun@163.com> wrote:
>
> sorry, i run it on older meta-openembedded,so i dont find this WARNING. now, i know it ,thanks.
>
> this is note in README:
> "You should find a copy of v2 of the GNU General Public License
>    somewhere on your Linux system; if not, write to the Free Software
>    Foundation,"
>
> then,can i copy  "kernel-source\LICENSES\preferred\GPL-2.0" to files to fix "obsolete licenses GPL-2.0"?
>

I think you should change

LICENSE = "GPL-2.0" to
LICENSE = "GPL-2.0-only"

That should fix one problem, for the second problem some object file
is encoding paths into it.
so things like __FILE__ macros in code can do so, they must be removed.

> thanks for your suggestions very much!
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#109622): https://lists.openembedded.org/g/openembedded-devel/message/109622
> Mute This Topic: https://lists.openembedded.org/mt/105119602/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe]
  2024-03-26 15:43         ` [oe] " Khem Raj
@ 2024-03-27 13:13           ` chenheyun
  0 siblings, 0 replies; 8+ messages in thread
From: chenheyun @ 2024-03-27 13:13 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

hi
i fix it in 109642.like this:
"
LICENSE = "GPL-2.0-only"
+SECTION = "pcie/misc"
*+LICENSE = "GPL-2.0-only"*
+
+LIC_FILES_CHKSUM = "file://README;beginline=25;endline=38;md5=643c2332ec702691a87ba6ea9499b2d6"
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git;protocol=https;branch=master \
+"
+SRCREV = "9bd5e2c7886fca72f139cd8402488a2235957d41"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "bison-native"
+
*+do_compile() {*
*+    oe_runmake CFLAGS="-Wall -D_GNU_SOURCE"*
*+}*

"
Thanks for the guidance!

[-- Attachment #2: Type: text/html, Size: 902 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-03-27 13:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-24 14:06 [[meta-oe][PATCH]aer-inject:add new recipe] [[meta-oe][PATCH]aer-inject:add new recipe] chenheyun
2024-03-24 15:09 ` [oe] " Khem Raj
2024-03-25  5:39 ` chenheyun
2024-03-25 13:56   ` chenheyun
2024-03-25 16:50     ` [oe] " Khem Raj
2024-03-26 14:43       ` chenheyun
2024-03-26 15:43         ` [oe] " Khem Raj
2024-03-27 13:13           ` chenheyun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.