* [Buildroot] [PATCH] ne10: new package
@ 2013-04-13 18:09 Thomas Petazzoni
2013-04-14 21:51 ` Peter Korsgaard
2013-04-17 6:50 ` Arnout Vandecappelle
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 18:09 UTC (permalink / raw)
To: buildroot
The Ne10 project has been set up to provide a set of common, useful
functions which have been heavily optimized for the ARM Architecture
and provide consistent well tested behavior that can be easily
incorporated into applications. C interfaces to the functions are
provided for both assembler and NEON implementations.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/ne10/Config.in | 12 ++++++++++++
package/ne10/ne10.mk | 39 +++++++++++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+)
create mode 100644 package/ne10/Config.in
create mode 100644 package/ne10/ne10.mk
diff --git a/package/Config.in b/package/Config.in
index 97ba790..f9c5fc6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -466,6 +466,7 @@ source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
source "package/libv4l/Config.in"
source "package/mtdev/Config.in"
+source "package/ne10/Config.in"
source "package/neardal/Config.in"
source "package/pcsc-lite/Config.in"
source "package/urg/Config.in"
diff --git a/package/ne10/Config.in b/package/ne10/Config.in
new file mode 100644
index 0000000..d0c4983
--- /dev/null
+++ b/package/ne10/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_NE10
+ bool "ne10"
+ depends on BR2_arm && BR2_ARM_CPU_HAS_NEON
+ help
+ The Ne10 project has been set up to provide a set of common,
+ useful functions which have been heavily optimized for the
+ ARM Architecture and provide consistent well tested behavior
+ that can be easily incorporated into applications. C
+ interfaces to the functions are provided for both assembler
+ and NEON implementations.
+
+ http://projectne10.github.io/Ne10/
diff --git a/package/ne10/ne10.mk b/package/ne10/ne10.mk
new file mode 100644
index 0000000..184f0f8
--- /dev/null
+++ b/package/ne10/ne10.mk
@@ -0,0 +1,39 @@
+#############################################################
+#
+# ne10
+#
+#############################################################
+
+# We use a Git commit ID because the last tagged version is more than
+# one year old.
+NE10_VERSION = 88c18f02199947b2c8b57796f5a3ca53160aff96
+NE10_SITE = git://github.com/projectNe10/Ne10.git
+NE10_LICENSE = BSD-3c or Apache 2.0
+NE10_LICENSE_FILES = doc/LICENSE
+
+ifeq ($(BR2_PREFER_STATIC_LIB),)
+NE10_CONF_OPT = \
+ -DNE10_BUILD_SHARED=ON
+endif
+
+# The package does not have any install target, so have to provide
+# INSTALL_STAGING_CMDS and INSTALL_TARGET_CMDS.
+
+ifeq ($(BR2_PREFER_STATIC_LIB),)
+define NE10_INSTALL_STAGING_SHARED_LIB
+ cp -dpf $(@D)/modules/libNE10*.so* $(STAGING_DIR)/usr/lib/
+endef
+endif
+
+define NE10_INSTALL_STAGING_CMDS
+ cp -dpf $(@D)/inc/NE10*h $(STAGING_DIR)/usr/include/
+ cp -dpf $(@D)/modules/libNE10.a $(STAGING_DIR)/usr/lib/
+ $(NE10_INSTALL_STAGING_SHARED_LIB)
+endef
+
+
+define NE10_INSTALL_TARGET_CMDS
+ cp -dpf $(@D)/modules/libNE10*.so* $(TARGET_DIR)/usr/lib/
+endef
+
+$(eval $(cmake-package))
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] ne10: new package
2013-04-13 18:09 [Buildroot] [PATCH] ne10: new package Thomas Petazzoni
@ 2013-04-14 21:51 ` Peter Korsgaard
2013-04-17 6:50 ` Arnout Vandecappelle
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2013-04-14 21:51 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> The Ne10 project has been set up to provide a set of common, useful
Thomas> functions which have been heavily optimized for the ARM Architecture
Thomas> and provide consistent well tested behavior that can be easily
Thomas> incorporated into applications. C interfaces to the functions are
Thomas> provided for both assembler and NEON implementations.
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] ne10: new package
2013-04-13 18:09 [Buildroot] [PATCH] ne10: new package Thomas Petazzoni
2013-04-14 21:51 ` Peter Korsgaard
@ 2013-04-17 6:50 ` Arnout Vandecappelle
2013-04-17 7:46 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2013-04-17 6:50 UTC (permalink / raw)
To: buildroot
On 13/04/13 20:09, Thomas Petazzoni wrote:
> +ifeq ($(BR2_PREFER_STATIC_LIB),)
> +define NE10_INSTALL_STAGING_SHARED_LIB
> + cp -dpf $(@D)/modules/libNE10*.so* $(STAGING_DIR)/usr/lib/
> +endef
> +endif
> +
> +define NE10_INSTALL_STAGING_CMDS
> + cp -dpf $(@D)/inc/NE10*h $(STAGING_DIR)/usr/include/
> + cp -dpf $(@D)/modules/libNE10.a $(STAGING_DIR)/usr/lib/
> + $(NE10_INSTALL_STAGING_SHARED_LIB)
> +endef
> +
> +
> +define NE10_INSTALL_TARGET_CMDS
> + cp -dpf $(@D)/modules/libNE10*.so* $(TARGET_DIR)/usr/lib/
> +endef
Shouldn't the latter one be inside an ifeq ($(BR2_PREFER_STATIC_LIB),)
as well? But then you probably need an else part as well to override the
default commands.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] ne10: new package
2013-04-17 6:50 ` Arnout Vandecappelle
@ 2013-04-17 7:46 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2013-04-17 7:46 UTC (permalink / raw)
To: buildroot
Dear Arnout Vandecappelle,
On Wed, 17 Apr 2013 08:50:19 +0200, Arnout Vandecappelle wrote:
> Shouldn't the latter one be inside an ifeq ($(BR2_PREFER_STATIC_LIB),)
> as well? But then you probably need an else part as well to override the
> default commands.
Yes, you're right. I'll send a followup patch. Thanks for noticing!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-17 7:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 18:09 [Buildroot] [PATCH] ne10: new package Thomas Petazzoni
2013-04-14 21:51 ` Peter Korsgaard
2013-04-17 6:50 ` Arnout Vandecappelle
2013-04-17 7:46 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox