summaryrefslogtreecommitdiffstats
path: root/external/meta-iot-cloud/recipes-connectivity/kura/files/Add-Yocto-build-profile.patch
blob: db2f2537e8c60fce21a632807e3bb8320b1691b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
From bf524fb70a22f17c4cf62133bda14924a9e2e5a3 Mon Sep 17 00:00:00 2001
From: Scott Ware <scott.r.ware@intel.com>
Date: Wed, 11 Mar 2020 19:19:41 +0000
Subject: [PATCH 2/3] Add Yocto build profile

Signed-off-by: Scott Ware <scott.r.ware@intel.com>
---
 kura/distrib/pom.xml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/kura/distrib/pom.xml b/kura/distrib/pom.xml
index b016846..3ac57cd 100644
--- a/kura/distrib/pom.xml
+++ b/kura/distrib/pom.xml
@@ -1001,5 +1001,68 @@
     </dependencies>
 
     <profiles>
+
+        <profile>
+            <id>yocto</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <resources>
+                    <resource>
+                        <directory>src/main/resources</directory>
+                        <filtering>true</filtering>
+                    </resource>
+                </resources>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>buildnumber-maven-plugin</artifactId>
+                        <version>1.0</version>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>create-timestamp</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.7</version>
+                        <executions>
+                            <execution>
+                                <id>yocto-jars</id>
+                                <phase>prepare-package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <target>
+                                        <property name="buildNumber" value="buildNumber" />
+                                        <property name="project.version" value="${project.version}" />
+                                        <property name="project.build.profile" value="${project.build.profile}" />
+                                        <property name="project.build.directory" value="${project.build.directory}" />
+                                        <property name="build.name" value="yocto" />
+                                        <property name="target.device" value="%MACHINE%" />
+                                        <property name="native.tag" value="%ARCH%" />
+                                        <property name="kura.os.version" value="%DISTRO%" />
+                                        <property name="kura.arch" value="%ARCH%" />
+                                        <property name="service.manager" value="%SERVICE_MANAGER%" />
+                                        <property name="os.base" value="yocto" />
+                                        <property name="kura.mem.size" value="%MEMSIZE%m" />
+                                        <property name="kura.install.dir" value="/opt/eclipse" />
+                                        <ant antfile="${basedir}/src/main/ant/build_equinox_distrib.xml" target="dist-linux" />
+                                    </target>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
     </profiles>
 </project>
-- 
2.7.4