Skip to contentSkip to conversation

secdev: Add script to update k3 secdev package

PATCH In review Yogesh Siraswar 2 participants 3 messages Dec 8, 2021 – Dec 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 secdev: Add script to update k3 secdev package

---
 build-oesdk.sh             | 3 +++
 lib/oesdk/update_secdev.sh | 7 +++++++
 2 files changed, 10 insertions(+)
 create mode 100755 lib/oesdk/update_secdev.sh
build-oesdk.sh +3 -0
index 038a7ab..3d32fb2 100755
@@ -14,6 +14,9 @@ source ./lib/oesdk/machine-specific-functions
 source ./lib/oesdk/package-sdks
 source ./lib/oesdk/generate-report
 
+# Update secdev package
+./lib/oesdk/update_secdev.sh
+
 # This variable holds the architectures that are being built based
 # on the machines.
 ARCHS=""
lib/oesdk/update_secdev.sh new file +7 -0
new file mode 100755
index 0000000..1f0a409
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cd $TI_SECURE_DEV_PKG_K3
+git pull origin master
+if [ $? != 0 ]; then
+        echo "Updating the secdev failed"
+fi
Signature · 1 line
2.17.1
#1 lore raw

tisdk-build-scripts is the wrong place to update secdev. Like toolchains, secdev package is considered an external system tool and is usually installed in a central location systemwide (e.g. /opt). It may not be writable by a regular user executing this build script.

Quoted 36 lines · Yogesh Siraswar via lists.yoctoproject.org
---
 build-oesdk.sh             | 3 +++
 lib/oesdk/update_secdev.sh | 7 +++++++
 2 files changed, 10 insertions(+)
 create mode 100755 lib/oesdk/update_secdev.sh
build-oesdk.sh +3 -0
index 038a7ab..3d32fb2 100755
@@ -14,6 +14,9 @@ source ./lib/oesdk/machine-specific-functions
 source ./lib/oesdk/package-sdks
 source ./lib/oesdk/generate-report
 
+# Update secdev package
+./lib/oesdk/update_secdev.sh
+
 # This variable holds the architectures that are being built based
 # on the machines.
 ARCHS=""
lib/oesdk/update_secdev.sh new file +7 -0
new file mode 100755
index 0000000..1f0a409
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cd $TI_SECURE_DEV_PKG_K3
+git pull origin master
+if [ $? != 0 ]; then
+        echo "Updating the secdev failed"
+fi
Signature · 1 line
2.17.1
Signature · 4 lines
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964
#2 lore raw
Quoted 5 lines · Denys Dmytriyenko

tisdk-build-scripts is the wrong place to update secdev. Like toolchains, secdev package is considered an external system tool and is usually installed in a central location systemwide (e.g. /opt). It may not be writable by a regular user executing this build script.

Agree. Will revert the patch.

Quoted 39 lines · Yogesh Siraswar via lists.yoctoproject.org
Quoted 36 lines
---
  build-oesdk.sh             | 3 +++
  lib/oesdk/update_secdev.sh | 7 +++++++
  2 files changed, 10 insertions(+)

create mode 100755 lib/oesdk/update_secdev.sh

build-oesdk.sh +3 -0
index 038a7ab..3d32fb2 100755
@@ -14,6 +14,9 @@ source ./lib/oesdk/machine-specific-functions
  source ./lib/oesdk/package-sdks
  source ./lib/oesdk/generate-report
 
+# Update secdev package
+./lib/oesdk/update_secdev.sh
+
  # This variable holds the architectures that are being built based
  # on the machines.
  ARCHS=""
lib/oesdk/update_secdev.sh new file +7 -0
new file mode 100755
index 0000000..1f0a409
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cd $TI_SECURE_DEV_PKG_K3
+git pull origin master
+if [ $? != 0 ]; then
+        echo "Updating the secdev failed"
+fi
Signature · 1 line
2.17.1