Skip to contentSkip to conversation

am335x-pru-package: new package

PATCH Superseded Yann E. MORIN 2 participants 2 messages Oct 12, 2014

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 am335x-pru-package: new package

From: Frank Hunleth <[email protected]>

am335x-pru-package provides an assembler and program loader for Texas Instrument's AM335x programmable real-time units.

---
Changes v2 -> v3:
- add missing patch file

Changes v1 -> v2:
- build debug or release accordingly
- create a symlink for debug libraries
- do not build shared if PREFER_STATIC is et
- use the 'install' rule to install both in target and staging
- properly pass DESTDIR and PREFIX at install time
- add missing file to host-variant build (due to version bump)
- drop the host variant from the menu
- bump revision

---
 package/Config.in                                  |  1 +
 .../0000-install-does-not-build.patch              | 23 +++++++
 package/am335x-pru-package/Config.in               |  7 ++
 package/am335x-pru-package/am335x-pru-package.mk   | 74 ++++++++++++++++++++++
 4 files changed, 105 insertions(+)
 create mode 100644 package/am335x-pru-package/0000-install-does-not-build.patch
 create mode 100644 package/am335x-pru-package/Config.in
 create mode 100644 package/am335x-pru-package/am335x-pru-package.mk
package/Config.in +1 -0
index b655763..5b8ce9c 100644
@@ -281,6 +281,7 @@ menu "Firmware"
 endmenu
 	source "package/a10disp/Config.in"
 	source "package/acpid/Config.in"
+	source "package/am335x-pru-package/Config.in"
 	source "package/avrdude/Config.in"
 	source "package/bcache-tools/Config.in"
 	source "package/biosdevname/Config.in"
package/am335x-pru-package/0000-install-does-not-build.patch new file +23 -0
new file mode 100644
index 0000000..72f398a
@@ -0,0 +1,23 @@
+Makefile: do not force the release build on install
+
+If we did build any of the other targets, and are just interested
+in those and not the relase one, we still want to use the 'install'
+rule, but not build (and install) the release libraries.
+
+So, remove the dependency on the 'release' target from the 'install'
+rule.
+
+Signed-off-by: "Yann E. MORIN" <[email protected]>
+
+diff -durN am335x-pru-package-506e074859891a2b350eb4f5fcb451c4961410ea.orig/pru_sw/app_loader/interface/Makefile am335x-pru-package-506e074859891a2b350eb4f5fcb451c4961410ea/pru_sw/app_loader/interface/Makefile
+--- am335x-pru-package-506e074859891a2b350eb4f5fcb451c4961410ea.orig/pru_sw/app_loader/interface/Makefile	2014-08-18 00:24:36.000000000 +0200
++++ am335x-pru-package-506e074859891a2b350eb4f5fcb451c4961410ea/pru_sw/app_loader/interface/Makefile	2014-10-12 11:39:17.144682697 +0200
+@@ -38,7 +38,7 @@
+ 
+ all:	debug release sodebug sorelease
+ 
+-install: release
++install:
+ 	install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
+ 	install -m 0755 -d $(DESTDIR)$(PREFIX)/include
+ 	install -m 0644 $(LIBDIR)/* $(DESTDIR)$(PREFIX)/lib
package/am335x-pru-package/Config.in new file +7 -0
new file mode 100644
index 0000000..66d7773
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_AM335X_PRU_PACKAGE
+	bool "am335x-pru-package"
+	depends on BR2_arm # only relevant for TI am335x
+	help
+	  TI AM335X PRU program loader
+
+	  https://github.com/beagleboard/am335x_pru_package
package/am335x-pru-package/am335x-pru-package.mk new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 1/1 am335x-pru-package: new package

Dear Yann E. MORIN,

Quoted 1 line · Yann E. MORIN

+++ b/package/am335x-pru-package/0000-install-does-not-build.patch

Since the default behavior of git format-patch is to start numbering patches at 0001, I think we should follow this convention.

Thomas

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