secdev: Add script to update k3 secdev package
PATCH 1/1 secdev: Add script to update k3 secdev package
Signed-off-by Yogesh Siraswar <[email protected]>
--- 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
@@ -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
@@ -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
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
Signed-off-by Yogesh Siraswar <[email protected]>--- build-oesdk.sh | 3 +++ lib/oesdk/update_secdev.sh | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100755 lib/oesdk/update_secdev.shbuild-oesdk.sh +3
-0@@ -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@@ -0,0 +1,7 @@ +#!/bin/bash + +cd $TI_SECURE_DEV_PKG_K3 +git pull origin master +if [ $? != 0 ]; then + echo "Updating the secdev failed" +fiSignature · 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
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
Signed-off-by Yogesh Siraswar <[email protected]>--- build-oesdk.sh | 3 +++ lib/oesdk/update_secdev.sh | 7 +++++++ 2 files changed, 10 insertions(+)create mode 100755
lib/oesdk/update_secdev.shbuild-oesdk.sh +3
-0@@ -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@@ -0,0 +1,7 @@ +#!/bin/bash + +cd $TI_SECURE_DEV_PKG_K3 +git pull origin master +if [ $? != 0 ]; then + echo "Updating the secdev failed" +fiSignature · 1 line
2.17.1