From 179866ef234ddf709c77554eaa6a6c57fa500e6f Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 9 Oct 2024 22:17:59 +0900 Subject: [PATCH] update recipe --- .../aesd-assignments/aesd-assignments_git.bb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/meta-aesd/recipes-aesd-assignments/aesd-assignments/aesd-assignments_git.bb b/meta-aesd/recipes-aesd-assignments/aesd-assignments/aesd-assignments_git.bb index c863e94..b23aa11 100644 --- a/meta-aesd/recipes-aesd-assignments/aesd-assignments/aesd-assignments_git.bb +++ b/meta-aesd/recipes-aesd-assignments/aesd-assignments/aesd-assignments_git.bb @@ -4,11 +4,11 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda # TODO: Set this with the path to your assignments rep. Use ssh protocol and see lecture notes # about how to setup ssh-agent for passwordless access -# SRC_URI = "git://git@github.com/cu-ecen-aeld/;protocol=ssh;branch=master" +SRC_URI = "git@github.com:cu-ecen-aeld/assignments-3-and-later-hangon1234.git;protocol=ssh;branch=master" PV = "1.0+git${SRCPV}" # TODO: set to reference a specific commit hash in your assignment repo -#SRCREV = "f99b82a5d4cb2a22810104f89d4126f52f4dfaba" +SRCREV = "81c6c40c8d7d33ba4dd4e6be342da9eb5b8874d8" # This sets your staging directory based on WORKDIR, where WORKDIR is defined at # https://docs.yoctoproject.org/ref-manual/variables.html?highlight=workdir#term-WORKDIR @@ -18,13 +18,16 @@ S = "${WORKDIR}/git/server" # TODO: Add the aesdsocket application and any other files you need to install # See https://git.yoctoproject.org/poky/plain/meta/conf/bitbake.conf?h=kirkstone -#FILES:${PN} += "${bindir}/aesdsocket" +FILES:${PN} += "${bindir}/aesdsocket" # TODO: customize these as necessary for any libraries you need for your application # (and remove comment) -#TARGET_LDFLAGS += "-pthread -lrt" +TARGET_LDFLAGS += "-pthread -lrt" + +# Use initscript +INITSCRIPT_PACKAGES = ${PN} +INITSCRIPT_NAME:${PN} = "aesdsocket-start-stop" do_configure () { - : } do_compile () { @@ -39,4 +42,10 @@ do_install () { # and # https://docs.yoctoproject.org/ref-manual/variables.html?highlight=workdir#term-S # See example at https://github.com/cu-ecen-aeld/ecen5013-yocto/blob/ecen5013-hello-world/meta-ecen5013/recipes-ecen5013/ecen5013-hello-world/ecen5013-hello-world_git.bb + install -d ${D}${bindir} + install -m 0755 ${S}/aesdsocket ${D}${bindir}/ + + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${S}/aesdsocket-start-stop ${D}${sysconfdir}/init.d + }