-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide for building DTS for local network server #1131
Comments
It seems like a Yocto recipe adding problem, not a problem related to any servers. Previously we held DTS scripts in There are two ways to handle this issue: I could help with this exact problem - help to integrate the script. In this case, I need the information, what is the script purpose, what are the dependencies, how it should be installed, etc.. Or I could add recipe integration guide similar to the one from Zarhus. |
To keep it as similar as it was previously you could:
Probably easiest and fastest change. You could even keep your Another way would be to either add your custom script to |
Our you can do it inside
λ mkdir meta-dts-distro/recipes-dts/dts-scripts/dts-scripts
λ vim meta-dts-distro/recipes-dts/dts-scripts/dts-scripts/your-script.sh
--- a/meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb
+++ b/meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb
@@ -2,13 +2,18 @@ SUMMARY = "Dasharo Tools Suite scripts."
HOMEPAGE = "https://github.com/Dasharo/dts-scripts"
SECTION = "tools"
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSES/Apache-2.0.txt;md5=c846ebb396f8b174b10ded4771514fcc"
PV = "0.1+git${SRCPV}"
-SRC_URI = "git://github.com/Dasharo/dts-scripts;protocol=https;branch=main"
+SRC_URI = " \
+ git://github.com/Dasharo/dts-scripts;protocol=https;branch=main \
+ file://your-script.sh \
+ "
SRCREV = "895365d29902aaed17ed30cba1dd2944821f7218"
S = "${WORKDIR}/git"
@@ -35,4 +40,9 @@ do_compile[noexec] = "1"
do_install () {
oe_runmake install DESTDIR="${D}"
+
+ install -d ${D}/script/destination/directory
+ install -m 755 ${WORKDIR}/your-script.sh ${D}/script/destination/directory
}
+
+FILES:${PN}:append = " /script/destination/directory"
|
@wessel-novacustom check whether these guides will help you. |
@DaniilKl mention that your way won't |
I see I missed that part, yep, my guide only for adding script into FS, not for running it on start up. |
|
@wessel-novacustom, I could do that. But I need some information:
|
I need to build DTS myself and it should check if In case it autostart.sh is available, it should execute that script. Otherwise, it should open the DTS main menu as usual. I should fill the contents of |
@wessel-novacustom, you cold do the following:
diff --git a/Makefile b/Makefile
index c11148ab0649..86c679de5eba 100644
--- a/Makefile
+++ b/Makefile
@@ -23,5 +23,7 @@ install:
install -m 0755 reports/dasharo-hcl-report $(DESTDIR)$(SBINDIR)
install -m 0755 reports/touchpad-info $(DESTDIR)$(SBINDIR)
+ install -m 0755 autostart.sh $(DESTDIR)$(SBINDIR)
+
install -d $(DESTDIR)$(SYSCONFDIR)/profile.d
install -m 0755 dts-profile.sh $(DESTDIR)$(SYSCONFDIR)/profile.d
diff --git a/scripts/dts-boot b/scripts/dts-boot
index b99d68df62f4..97d22ece86e1 100644
--- a/scripts/dts-boot
+++ b/scripts/dts-boot
@@ -25,5 +25,7 @@ source $DTS_HAL
if [ -f $FUM_EFIVAR ]; then
$SBIN_DIR/dasharo-deploy update fum
else
+ [ -f "$SBIN_DIR/autostart.sh" ] && $SBIN_DIR/autostart.sh
+
$BIN_DIR/script -c $SBIN_DIR/dts "$DTS_LOG_FILE"
fi
diff --git a/meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb b/meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb
index 6d92efeab0b2..cb3211d00fa6 100644
--- a/meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb
+++ b/meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb
@@ -7,8 +7,8 @@ LIC_FILES_CHKSUM = "file://LICENSES/Apache-2.0.txt;md5=c846ebb396f8b174b10ded477
PV = "0.1+git${SRCPV}"
-SRC_URI = "git://github.com/Dasharo/dts-scripts;protocol=https;branch=main"
-SRCREV = "e757053cae37453cbd7dfaebf0f1a1676829fb25"
+SRC_URI = "git://your/fork/url;protocol=PROTOCOL;branch=BRANCH"
+SRCREV = "COMMIT"
S = "${WORKDIR}/git" Where:
kas-container build meta-dts/kas.yml Note, if you used kas-container --ssh-dir ~/.ssh build meta-dts/kas.yml |
@DaniilKl Thank you so much! I will try in January and let you know if it worked. |
@DaniilKl The script is correctly executed at the background, thank you. I'm working around that the scripts runs at the background by using:
That works, but another problem is that the V540TU doesn't have internet access with the latest DTS version, even if the original DTS version is booted. This wasn't a problem when using |
DTS version
Question text
Forwarded request:
The text was updated successfully, but these errors were encountered: