Add build & install script
authorJihoon Jung <jh8801.jung@samsung.com>
Thu, 30 Nov 2017 06:27:19 +0000 (15:27 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:37 +0000 (19:38 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
README.md
material/gbs-configure/gbs.4.0.tm1.conf [new file with mode: 0755]
material/iotivity-mot-enabled/iotivity-1.2.1-9.armv7l.rpm [new file with mode: 0755]
material/iotivity-mot-enabled/iotivity-devel-1.2.1-9.armv7l.rpm [new file with mode: 0755]
material/iotivity-mot-enabled/iotivity-service-1.2.1-9.armv7l.rpm [new file with mode: 0755]
material/iotivity-mot-enabled/iotivity-test-1.2.1-9.armv7l.rpm [new file with mode: 0755]
material/script/d2d_build.sh [new file with mode: 0755]
material/script/d2d_install.sh [new file with mode: 0755]

index 7d3026a..71d5e12 100644 (file)
--- a/README.md
+++ b/README.md
@@ -19,3 +19,19 @@ After iotivity build succeeds, copy the following package to GBS-ROOT.
 \r
 iotivity-1.2.1-9.armv7l.rpm\r
 iotivity-devel-1.2.1-9.armv7l.rpm\r
+\r
+# build script\r
+\r
+If you want to build and install the d2d manager easily, use the following guide.\r
+\r
+1. modify git path variable in {git_path}/material/script/d2d_build.sh & d2d_install.sh script\r
+\r
+       ex) git_path="/data/workspace/d2d-manager"\r
+\r
+2. copy install script in /usr/bin\r
+       \r
+       ex) sudo cp d2d_install.sh /usr/bin\r
+\r
+3. execute d2d_install.sh\r
+       \r
+       ex) $ d2d_install.sh\r
diff --git a/material/gbs-configure/gbs.4.0.tm1.conf b/material/gbs-configure/gbs.4.0.tm1.conf
new file mode 100755 (executable)
index 0000000..b9d5200
--- /dev/null
@@ -0,0 +1,16 @@
+[general]
+#Current profile name which should match a profile section name
+profile = profile.TM1
+
+########################### PROFILES ############################
+[profile.TM1]
+repos = repo.4.0-base, repo.4.0-unified
+buildroot = ~/GBS-ROOT-D2D/
+
+# * 4.0 BASE
+[repo.4.0-base]
+url=http://download.tizen.org/snapshots/tizen/4.0-base/latest/repos/arm/packages/
+
+# * 4.0
+[repo.4.0-unified]
+url=http://download.tizen.org/snapshots/tizen/4.0-unified/latest/repos/standard/packages/
diff --git a/material/iotivity-mot-enabled/iotivity-1.2.1-9.armv7l.rpm b/material/iotivity-mot-enabled/iotivity-1.2.1-9.armv7l.rpm
new file mode 100755 (executable)
index 0000000..38f295d
Binary files /dev/null and b/material/iotivity-mot-enabled/iotivity-1.2.1-9.armv7l.rpm differ
diff --git a/material/iotivity-mot-enabled/iotivity-devel-1.2.1-9.armv7l.rpm b/material/iotivity-mot-enabled/iotivity-devel-1.2.1-9.armv7l.rpm
new file mode 100755 (executable)
index 0000000..18ce351
Binary files /dev/null and b/material/iotivity-mot-enabled/iotivity-devel-1.2.1-9.armv7l.rpm differ
diff --git a/material/iotivity-mot-enabled/iotivity-service-1.2.1-9.armv7l.rpm b/material/iotivity-mot-enabled/iotivity-service-1.2.1-9.armv7l.rpm
new file mode 100755 (executable)
index 0000000..30182e4
Binary files /dev/null and b/material/iotivity-mot-enabled/iotivity-service-1.2.1-9.armv7l.rpm differ
diff --git a/material/iotivity-mot-enabled/iotivity-test-1.2.1-9.armv7l.rpm b/material/iotivity-mot-enabled/iotivity-test-1.2.1-9.armv7l.rpm
new file mode 100755 (executable)
index 0000000..ccaef2e
Binary files /dev/null and b/material/iotivity-mot-enabled/iotivity-test-1.2.1-9.armv7l.rpm differ
diff --git a/material/script/d2d_build.sh b/material/script/d2d_build.sh
new file mode 100755 (executable)
index 0000000..86cfc21
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+git_path="/data/workspace/d2d-manager"
+
+mkdir -p ~/GBS-ROOT-D2D/local/repos/TM1/armv7l/RPMS
+cp $git_path/material/iotivity-mot-enabled/*.rpm ~/GBS-ROOT-D2D/local/repos/TM1/armv7l/RPMS
+
+#build TM1
+gbs -c $git_path/material/gbs-configure/gbs.4.0.tm1.conf build -A armv7l --include-all
diff --git a/material/script/d2d_install.sh b/material/script/d2d_install.sh
new file mode 100755 (executable)
index 0000000..50f0828
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+git_path="/data/workspace/d2d-manager"
+
+# build
+sh $git_path/material/script/d2d_build.sh
+
+# initialize device
+sdb root on
+sdb shell mount -o remount, rw /
+
+# Push & install rpm package TM1
+sdb push ~/GBS-ROOT-D2D/local/repos/TM1/armv7l/RPMS/*.rpm /tmp/
+sdb shell rpm -Uvh --force --nodeps /tmp/*.rpm