* [Buildroot] [PATCH 1/1] cmocka: new package
@ 2015-07-26 4:17 Nimai Mahajan
2015-07-26 21:56 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Nimai Mahajan @ 2015-07-26 4:17 UTC (permalink / raw)
To: buildroot
From: Nimai Mahajan <nimaim@gmail.com>
Signed-off-by: Nimai Mahajan <nimaim@gmail.com>
---
package/Config.in | 1 +
package/cmocka/Config.in | 11 +++++++++++
package/cmocka/cmocka.hash | 2 ++
package/cmocka/cmocka.mk | 18 ++++++++++++++++++
4 files changed, 32 insertions(+)
create mode 100644 package/cmocka/Config.in
create mode 100644 package/cmocka/cmocka.hash
create mode 100644 package/cmocka/cmocka.mk
diff --git a/package/Config.in b/package/Config.in
index f029e1d..e0dd14e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1037,6 +1037,7 @@ menu "Other"
source "package/boost/Config.in"
source "package/clapack/Config.in"
source "package/classpath/Config.in"
+ source "package/cmocka/Config.in"
source "package/cppcms/Config.in"
source "package/ding-libs/Config.in"
source "package/eigen/Config.in"
diff --git a/package/cmocka/Config.in b/package/cmocka/Config.in
new file mode 100644
index 0000000..37064bf
--- /dev/null
+++ b/package/cmocka/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_CMOCKA
+ bool "cmocka"
+ help
+ cmocka is an elegant unit testing framework for C with support
+ for mock objects. It only requires the standard C library,
+ works on a range of computing platforms (including embedded)
+ and with different compilers. It is a fork of Google's very
+ popular cmockery unit testing framework to fix bugs and support
+ it in the future.
+
+ https://cmocka.org/
diff --git a/package/cmocka/cmocka.hash b/package/cmocka/cmocka.hash
new file mode 100644
index 0000000..96b81cb
--- /dev/null
+++ b/package/cmocka/cmocka.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 b36050d7a1224296803d216cba1a9d4c58c31bf308b2d6d6649d61aa5a36753b cmocka-1.0.1.tar.xz
diff --git a/package/cmocka/cmocka.mk b/package/cmocka/cmocka.mk
new file mode 100644
index 0000000..740ff64
--- /dev/null
+++ b/package/cmocka/cmocka.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# cmocka
+#
+################################################################################
+
+CMOCKA_VERSION = 1.0.1
+CMOCKA_SOURCE = cmocka-$(CMOCKA_VERSION).tar.xz
+CMOCKA_SITE = https://cmocka.org/files/1.0/
+CMOCKA_LICENSE = Apache-2.0
+CMOCKA_LICENSE_FILES = COPYING
+CMOCKA_DEPENDENCIES = host-cmake
+CMOCKA_INSTALL_STAGING = YES
+
+# cmocka only supports out of source builds
+CMOCKA_SUPPORTS_IN_SOURCE_BUILD = NO
+
+$(eval $(cmake-package))
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] cmocka: new package
2015-07-26 4:17 [Buildroot] [PATCH 1/1] cmocka: new package Nimai Mahajan
@ 2015-07-26 21:56 ` Baruch Siach
2015-07-26 22:26 ` Nimai Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2015-07-26 21:56 UTC (permalink / raw)
To: buildroot
Hi Nimai,
On Sun, Jul 26, 2015 at 12:17:49AM -0400, Nimai Mahajan wrote:
> From: Nimai Mahajan <nimaim@gmail.com>
>
> Signed-off-by: Nimai Mahajan <nimaim@gmail.com>
> ---
[snip]
> diff --git a/package/cmocka/cmocka.mk b/package/cmocka/cmocka.mk
> new file mode 100644
> index 0000000..740ff64
> --- /dev/null
> +++ b/package/cmocka/cmocka.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# cmocka
> +#
> +################################################################################
> +
> +CMOCKA_VERSION = 1.0.1
> +CMOCKA_SOURCE = cmocka-$(CMOCKA_VERSION).tar.xz
> +CMOCKA_SITE = https://cmocka.org/files/1.0/
> +CMOCKA_LICENSE = Apache-2.0
> +CMOCKA_LICENSE_FILES = COPYING
> +CMOCKA_DEPENDENCIES = host-cmake
The cmake infrastructure automatically adds the host-cmake dependency.
> +CMOCKA_INSTALL_STAGING = YES
> +
> +# cmocka only supports out of source builds
> +CMOCKA_SUPPORTS_IN_SOURCE_BUILD = NO
> +
> +$(eval $(cmake-package))
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] cmocka: new package
2015-07-26 21:56 ` Baruch Siach
@ 2015-07-26 22:26 ` Nimai Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Nimai Mahajan @ 2015-07-26 22:26 UTC (permalink / raw)
To: buildroot
Sorry about that, v2 on the way ...
On Sun, Jul 26, 2015 at 5:56 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Nimai,
>
> On Sun, Jul 26, 2015 at 12:17:49AM -0400, Nimai Mahajan wrote:
>> From: Nimai Mahajan <nimaim@gmail.com>
>>
>> Signed-off-by: Nimai Mahajan <nimaim@gmail.com>
>> ---
>
> [snip]
>
>> diff --git a/package/cmocka/cmocka.mk b/package/cmocka/cmocka.mk
>> new file mode 100644
>> index 0000000..740ff64
>> --- /dev/null
>> +++ b/package/cmocka/cmocka.mk
>> @@ -0,0 +1,18 @@
>> +################################################################################
>> +#
>> +# cmocka
>> +#
>> +################################################################################
>> +
>> +CMOCKA_VERSION = 1.0.1
>> +CMOCKA_SOURCE = cmocka-$(CMOCKA_VERSION).tar.xz
>> +CMOCKA_SITE = https://cmocka.org/files/1.0/
>> +CMOCKA_LICENSE = Apache-2.0
>> +CMOCKA_LICENSE_FILES = COPYING
>> +CMOCKA_DEPENDENCIES = host-cmake
>
> The cmake infrastructure automatically adds the host-cmake dependency.
>
>> +CMOCKA_INSTALL_STAGING = YES
>> +
>> +# cmocka only supports out of source builds
>> +CMOCKA_SUPPORTS_IN_SOURCE_BUILD = NO
>> +
>> +$(eval $(cmake-package))
>
> baruch
>
> --
> http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-26 22:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-26 4:17 [Buildroot] [PATCH 1/1] cmocka: new package Nimai Mahajan
2015-07-26 21:56 ` Baruch Siach
2015-07-26 22:26 ` Nimai Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox