Skip to contentSkip to conversation

aer-inject: new package

PATCH New tiago.brusamarello 2 participants 2 messages Mar 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aer-inject: new package

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.

Change-Id Id3e701a9eb692627db42320ea7c37afbf4f712b8
---
 package/Config.in                |  1 +
 package/aer-inject/Config.in     | 10 ++++++++++
 package/aer-inject/aer-inject.mk | 24 ++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 package/aer-inject/Config.in
 create mode 100644 package/aer-inject/aer-inject.mk
package/Config.in +1 -0
index 8208da8..bd76669 100644
@@ -340,6 +340,7 @@ menu "Firmware"
 endmenu
 	source "package/a10disp/Config.in"
 	source "package/acpid/Config.in"
+	source "package/aer-inject/Config.in"
 	source "package/am335x-pru-package/Config.in"
 	source "package/avrdude/Config.in"
 	source "package/bcache-tools/Config.in"
package/aer-inject/Config.in new file +10 -0
new file mode 100644
index 0000000..8856ff1
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_AER_INJECT
+	bool "aer-inject"
+	help
+	  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.
+
+	  Requires a new Linux kernel with PCIE AER error injection patches.
+
+	  https://git.kernel.org/cgit/linux/kernel/git/gong.chen/aer-inject.git/
package/aer-inject/aer-inject.mk new file +24 -0
new file mode 100644
index 0000000..6b2c844
@@ -0,0 +1,24 @@
+################################################################################
+#
+# aer-inject
+#
+################################################################################
+
+AER_INJECT_VERSION = 9bd5e2c7886fca72f139cd8402488a2235957d41
+AER_INJECT_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git
+AER_INJECT_SITE_METHOD = git
+AER_INJECT_LICENSE = GPLv2
+AER_INJECT_LICENSE_FILES = README
+AER_INJECT_DEPENDENCIES = host-flex host-bison
+AER_INJECT_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
+
+define AER_INJECT_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(AER_INJECT_MAKE_OPTS)
+endef
+
+define AER_INJECT_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(AER_INJECT_MAKE_OPTS) \
+	DESTDIR=$(TARGET_DIR) PREFIX=/usr/bin install
+endef
+
+$(eval $(generic-package))
\ No newline at end of file
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 aer-inject: new package

Hello,

I've applied your patch, after doing a few tweaks.

First of all, could you fix your SMTP configuration so that your From:
is Tiago Brusamarello <...> rather than tiago.brusamarello ?

Quoted 5 lines · tiago.brusamarello

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.

Change-Id: Id3e701a9eb692627db42320ea7c37afbf4f712b8

This line is not needed.

Quoted 1 line

This should also be Tiago Brusamarello <....>

Quoted 6 lines
package/aer-inject/Config.in new file +0 -0
new file mode 100644
index 0000000..8856ff1

package/aer-inject/Config.in line 8

Quoted 8 lines
package/aer-inject/Config.in new file +8 -0
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_AER_INJECT
+	bool "aer-inject"
+	help
+	  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.
+
+	  Requires a new Linux kernel with PCIE AER error injection patches.

Those lines were slightly too long, so I rewrapped them.

package/aer-inject/Config.in

Quoted 7 lines
package/aer-inject/Config.in new file +7 -0
+AER_INJECT_VERSION = 9bd5e2c7886fca72f139cd8402488a2235957d41
+AER_INJECT_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git
+AER_INJECT_SITE_METHOD = git
+AER_INJECT_LICENSE = GPLv2
+AER_INJECT_LICENSE_FILES = README
+AER_INJECT_DEPENDENCIES = host-flex host-bison
+AER_INJECT_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)

This variable was not needed, you can just use TARGET_CONFIGURE_OPTS directly.

package/aer-inject/Config.in

Quoted 8 lines
package/aer-inject/Config.in new file +8 -0
+
+define AER_INJECT_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(AER_INJECT_MAKE_OPTS)
+endef
+
+define AER_INJECT_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(AER_INJECT_MAKE_OPTS) \
+	DESTDIR=$(TARGET_DIR) PREFIX=/usr/bin install

The continuation line should be indented.

package/aer-inject/Config.in

Quoted 4 lines
package/aer-inject/Config.in new file +3 -0
+endef
+
+$(eval $(generic-package))
\ No newline at end of file

There should be a newline at the end of file.

I've fixed up those minor issues and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com